react-native-cached-image
react-native-cached-image copied to clipboard
RN 0.60 support
Please add support for RN version 0.60. They deprecated NetInfo from react-native.
It was showing an error.
yeah. But one can currently first install "@react-native-community/react-native-netinfo", then browse >[your-project]>node_modules>react-native-cached-image>CachedImage.js.
- Delete { NetInfo } that is destructured from ReactNative
- Then import NetInfo from "@react-native-community/react-native-netinfo".
It worked for me
@bogeresiraje it did work, but no one obviously should be modifying node_modules like that as everything will be lost on new install. This would require running a script after every install to replace this line.
@ThomasFindlay use patch-package to do the dirty thing
Bro,Change to another repo。