-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetInfo is deprecated from react-native use from @community #174
Comments
'use strict'; const _ = require('lodash'); const PropTypes = require('prop-types'); const ImageCacheManagerOptionsPropTypes = require('./ImageCacheManagerOptionsPropTypes'); const flattenStyle = ReactNative.StyleSheet.flatten; const ImageCacheManager = require('./ImageCacheManager'); const { import NetInfo from "@react-native-community/netinfo"; const styles = StyleSheet.create({ function getImageProps(props) { const CACHED_IMAGE_REF = 'cachedImage'; class CachedImage extends React.Component {
} module.exports = CachedImage; |
+1 |
Using and working in my fork with latest RN 0.61.2 in my app. Just haven't had time to bring back to this repo |
@fungilation I've got this error when using your fork `Error: @react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps: • Run
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo |
Have you done what the error suggests? |
It's fixed. |
This is a major problem in using the module. NetInfo is no longer imported from |
@Shivendra30 |
Hi, Developer NetInfo is no longer available for version < 0.60.0 please use it from @community. Please change the CachedImage.js file from my file.
The text was updated successfully, but these errors were encountered: