diff --git a/package.json b/package.json index e5e8fa3..521d6df 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ }, "homepage": "https://github.com/inProgress-team/react-native-meteor#readme", "dependencies": { + "@react-native-community/netinfo": "^3.2.1", "base-64": "^0.1.0", "crypto-js": "^3.1.6", "ejson": "^2.1.2", diff --git a/src/Meteor.js b/src/Meteor.js index 20be280..50c3f23 100644 --- a/src/Meteor.js +++ b/src/Meteor.js @@ -1,4 +1,5 @@ -import { NetInfo, Platform, View } from 'react-native'; +import { Platform, View } from 'react-native'; +import NetInfo from '@react-native-community/netinfo'; import reactMixin from 'react-mixin'; import Trackr from 'trackr'; diff --git a/yarn.lock b/yarn.lock index 4ba03f2..941a870 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,6 +16,11 @@ esutils "^2.0.2" js-tokens "^3.0.0" +"@react-native-community/netinfo@^3.2.1": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-3.2.1.tgz#cd073b81a4b978f7f55f1a960a0b56c462813e02" + integrity sha512-A2qANOnlRDVe+8kMbKMwy3/0bOlOA2+y8DyWg2Rv2KHICIfin+oxixbG0ewAOLQdLkSEyyumZXRmIVl7VI/KJg== + "@samverschueren/stream-to-observable@^0.3.0": version "0.3.0" resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"