Skip to content
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

RN 0.60 support #168

Open
uc-asa opened this issue Aug 21, 2019 · 4 comments
Open

RN 0.60 support #168

uc-asa opened this issue Aug 21, 2019 · 4 comments

Comments

@uc-asa
Copy link

uc-asa commented Aug 21, 2019

Please add support for RN version 0.60. They deprecated NetInfo from react-native.

It was showing an error.

@bogeresiraje
Copy link

bogeresiraje commented Aug 26, 2019

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.

  1. Delete { NetInfo } that is destructured from ReactNative
  2. Then import NetInfo from "@react-native-community/react-native-netinfo".

It worked for me

@ThomasFindlay
Copy link

@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.

@ElvisChiang
Copy link

@ThomasFindlay use patch-package to do the dirty thing

@changweining
Copy link

Bro,Change to another repo。

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

No branches or pull requests

5 participants