react-native-cached-image icon indicating copy to clipboard operation
react-native-cached-image copied to clipboard

RN 0.60 support

Open uc-asa opened this issue 5 years ago • 4 comments

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

It was showing an error.

uc-asa avatar Aug 21 '19 07:08 uc-asa

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

bogeresiraje avatar Aug 26 '19 15:08 bogeresiraje

@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 avatar Aug 30 '19 18:08 ThomasFindlay

@ThomasFindlay use patch-package to do the dirty thing

ElvisChiang avatar Sep 20 '19 07:09 ElvisChiang

Bro,Change to another repo。

changweining avatar Jun 06 '20 12:06 changweining