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

Unexpected error on render <CachedImage />

Open joaom182 opened this issue 6 years ago • 8 comments

Error in callNativeModules();
Malformed calls from JS: fields sizes are different.

screen shot 2018-07-19 at 03 14 04

joaom182 avatar Jul 19 '18 06:07 joaom182

This issue is caused by the latest version is using react-native-fetch-blob instead of using rn-fetch-blob.

@fungilation makes a fork that's correct the dependency, so i sugest to use this fork.

  • npm uninstall react-native-cached-image --save
  • Check if the folder react-native-cached-image still on node_modules and remove completely.
  • npm uninstall react-native-fetch-blob --save
  • react-native unlink react-native-fetch-blob
  • npm install rn-fetch-blob --save
  • react-native link rn-fetch-blob
  • npm install fungilation/react-native-cached-image --save
  • ❤️

joaom182 avatar Jul 19 '18 06:07 joaom182

If react-native-fetch-blob changed their name to rn-fetch-blob should we just merge @fungilation's fork and merge it into master?

The library react-native-cached-image is completely broken right now on latest versions of react-native.

react-native-fetch-blob is officially discontinued in favor of rn-fetch-blob

JensDebergh avatar Nov 22 '18 13:11 JensDebergh

@JensDebergh yes please - this is causing all sorts of issues, including breaking release builds for Android

ARMATAV avatar Nov 27 '18 03:11 ARMATAV

The project according to the contributors charts and the last commits seem rather dead,so unfortunately i have the feeling the PR is not going to be merged any soon.

https://github.com/kfiroo/react-native-cached-image/graphs/contributors

@kfiroo Would be great if the README could mention to use fungilation/react-native-cached-image or any more popular fork you'll recommend. All the failed installs are consuming a lot of power energy and we are killing polar bears by giving outdated code without warnings.

cyqui avatar Feb 26 '19 10:02 cyqui

@joaom182 Great, been trying to debug it all day you just made my day

venux92 avatar Mar 16 '19 10:03 venux92

netinfo package is needed now. https://github.com/fungilation/react-native-cached-image/commit/363dea9b4e37a605faa15c5ea4dd502f98736831

andho avatar Apr 20 '19 11:04 andho

I know. See my last commit on my fork, tested to work with up to RN 0.59.5: https://github.com/fungilation/react-native-cached-image/commits/master

fungilation avatar Apr 20 '19 16:04 fungilation

On topic of maintenance and forking: https://github.com/kfiroo/react-native-cached-image/issues/160

fungilation avatar Apr 20 '19 16:04 fungilation