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

FastImageViewNativeModule.preload

Open Razorholt opened this issue 5 years ago • 3 comments

I'm on Expo SDK 37, iOS 13.5

useEffect(() => {
    FastImage.preload([
{ uri: "https://www.image.com/1.png" },
{ uri: "https://www.image.com/2.png" },
    ]);
  }, []);

That code above returns this error: null is not an object (evaluating 'FastImageViewNativeModule.preload')

Thanks for your help!

Razorholt avatar May 01 '20 05:05 Razorholt

+1 Using Expo:

Expo CLI 4.3.0 environment info: System: OS: macOS 11.2.3 Shell: 5.8 - /bin/zsh Binaries: Node: 12.21.0 - /usr/local/bin/node Yarn: 1.22.5 - /usr/local/bin/yarn npm: 7.6.3 - ~/.npm-packages/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 28 Build Tools: 28.0.3 IDEs: Android Studio: 4.1 AI-201.8743.12.41.6858069 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: expo: ~40.0.1 => 40.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 npmGlobalPackages: expo-cli: 4.3.0 Expo Workflow: managed

staghouse avatar Mar 29 '21 14:03 staghouse

For Expo need to use EAS Build

https://expo.canny.io/feature-requests/p/react-native-fast-image

vasylnahuliak avatar Dec 25 '21 10:12 vasylnahuliak

Run cd ios && pod install

jfalih avatar Aug 09 '22 17:08 jfalih