I got an error when I used FastImage component below.
error message is "Invariant Violation: View config not found for name FastImageView"
<FastImage
style={styles.image}
resizeMode={FastImage.resizeMode.cover}
source={{uri: item.image}}
/>
Does someone know how to solve this problem?
I've tried https://github.com/DylanVann/react-native-fast-image/blob/master/docs/installation-cocoapods.md and https://github.com/DylanVann/react-native-fast-image/blob/master/docs/installation-manual.md , but it doesn't work well on iOS
I think usage doesn't have problem because it worked successfully on android.
made progress....
error message has changed to "Invariant Violation: Native component for "FastImageView" does not exist" on only iOS. it worked successfully on android.
I installed manually or not manually 6 times but can't get it to work on iOS....
I've tried all way that is mentioned in other issue of this library.
You should link manually. It will work.
@melihmucuk
yeah, I've done it several times...but I'll try it again..
I figured out the cause of this error. it's because of using react-native-firebase-starter-kit.
I could get fastimage work successfully without react-native-firebase-starter-kit.
I think these libraries have some conflicts, but I couldn't identify it.
I'm experiencing the same issue. I cannot remove RNFB though. I'm not sure how to debug this. Any tips are most welcome.
Same problem here, also tried manual installation and rebuilding the project.
Same. I went ahead and filed an issue on react-native-firebase-starter about this.
I'm getting this on iOS as well. Using latest version. Tried manually linking as well, didn't work.
same , react-native-fast-image": "^5.1.1".
Does it help if you clean gradle files?
cd android && ./gradlew cleannpm run androidIf there is someone facing this issue again follow this instruction:
https://github.com/DylanVann/react-native-fast-image/blob/3e8d0e6882/docs/installation-manual.md
Ps: Remember to repeat step 2 in iOS for every flavor/target you have
The link posted above is not working because the file was removed from this repo, so we have to access an old commit.
It worked for me: