react-native-expo-image-cache
react-native-expo-image-cache copied to clipboard
Unhandled Rejection (Error): The method or property expo-file-system.getInfoAsync is not available on web, are you sure you've linked all the native dependencies properly?
Would it be possible to add fallback to react-native's native Image component if the platform is web?
Right now I'm doing this as a workaround:
...
import * as Cached from 'react-native-expo-image-cache';
import { Image, Platform } from 'react-native'
const Img = Platform.OS === 'web' ? Image : Cached.Image;
However, this isn't exactly ideal. I'm using it with expo web, and getting this error:
Unhandled Rejection (Error): The method or property expo-file-system.getInfoAsync is not available on web, are you sure you've linked all the native dependencies properly?
Thanks so much!
I have the same error just after I have imported a wrong module, it break my app and I am unable to repair, any idea why?
I also have this problem after installing redux-persist-expo-filesystem