react-native-fast-image: Warning: Native component for "FastImageView" does not exist
Thank you for the great work! I cannot wait to see it work on my end (^ ^)/
Here is my basic information: MacOS Sierra Expo 20.0.0 React Native 0.47.2
I installed the package following the instruction:
- yarn add
react-native-fast-image - react-native link
But when I use it, the terminal gives me this warning Warning: Native component for "FastImageView" does not exist, and NO image was shown, only red boxes. But if I change to React Native’s Image component, things work as expected.
I wonder if it is because I am using expo? But I tried eject expo, and link again, but the warning persists, and no image was showing up. 😦
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 11
- Comments: 28 (3 by maintainers)
Seems the
react-native link react-native-fast-imagemissed the step 2 described here https://facebook.github.io/react-native/docs/linking-libraries-ios.html. It worked after doing the step 2 manually.Basically, I just added the
libFastImage.ato the Linked Libraries section in the Build Phases.it looks like
react-native-linkadds a line to the pod file if you use cocoa pods, so just runpod installin ios folderI don’t use expo but have the same error. However, my app is not ejected - does this mean I should eject my app to use a library? Thanks!
Manual linking instructions have been added here: https://github.com/DylanVann/react-native-fast-image/blob/master/docs/installation-manual.md
CocoaPods is also now supported.