kfiroo / react-native-cached-image

CachedImage component for react-native
MIT License
940 stars 468 forks source link

Not working on the snack.expo.io platform #162

Open Angelk90 opened 5 years ago

Angelk90 commented 5 years ago

Hi @kfiroo , I wanted to use the module but it looks like it doesn't work on expo.

Error:

Device: (1053:881) undefined is not an object (evaluating 'M.DocumentDir')
  Evaluating module://react-native-cached-image.js
  Evaluating module://App.js.js
  Loading module://App.js

Link: https://snack.expo.io/SyA7hOW24

P.s. Is it possible to use it as a video .mp4 cache?

hustlercoder commented 5 years ago

I think this can be related to the fact that the fetch-blob library is not supported anymore by the official react native but it became part of the comunity ...so maybe the api has changed and the library try to call the old one. https://github.com/joltup/rn-fetch-blob you can try install this and link it to the project and try again maybe with the jetifier if you have the androidx support