DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.15k stars 1.5k forks source link

FastImageViewNativeModule.preload #677

Open Razorholt opened 4 years ago

Razorholt commented 4 years ago

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!

staghouse commented 3 years ago

+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

vasylnahuliak commented 2 years ago

For Expo need to use EAS Build

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

jfalih commented 2 years ago

Run cd ios && pod install