react-native-expo-image-cache icon indicating copy to clipboard operation
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?

Open nandorojo opened this issue 6 years ago • 2 comments

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!

nandorojo avatar Jun 28 '19 15:06 nandorojo

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?

kopax avatar Mar 27 '20 14:03 kopax

I also have this problem after installing redux-persist-expo-filesystem

tabaktoni avatar Mar 20 '21 21:03 tabaktoni