Skip to content

Conversation

julitroalves
Copy link

Added some fixes to support latest version of @react-native-community/netinfo
Updates:

  • Fix undefined property from NetInfo.isConnect;
  • update handleConnectivityChange callback;
  • added unsubscribable to remove listener at componentWillUnmount;

Added some fixes to support latest version of @react-native-community/netinfo
Updates:
- Fix undefined property from NetInfo.isConnect;
- update handleConnectivityChange callback;
- added unsubscribable to remove listener at componentWillUnmount;
@akunal1
Copy link

akunal1 commented Jan 20, 2021

Please update package.json with @react-native-community/netinfo


const ImageCacheManager = require('./ImageCacheManager');

const NetInfo = require('@react-native-community/netinfo');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update package.json for the same pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants