DylanVann / react-native-fast-image

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

Invariant Violation: View config not found for name FastImageView #258

Open shoki2shoki opened 6 years ago

shoki2shoki commented 6 years ago

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?

shoki2shoki commented 6 years ago

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.

shoki2shoki commented 6 years ago

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.

melihmucuk commented 6 years ago

You should link manually. It will work.

shoki2shoki commented 6 years ago

@melihmucuk yeah, I've done it several times...but I'll try it again..

shoki2shoki commented 6 years ago

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.

pribeh commented 6 years ago

I'm experiencing the same issue. I cannot remove RNFB though. I'm not sure how to debug this. Any tips are most welcome.

alexandrecanuto commented 5 years ago

Same problem here, also tried manual installation and rebuilding the project.

snobear commented 5 years ago

Same. I went ahead and filed an issue on react-native-firebase-starter about this.

varqasim commented 5 years ago

I'm getting this on iOS as well. Using latest version. Tried manually linking as well, didn't work.

hufans commented 5 years ago

same , react-native-fast-image": "^5.1.1".

iqqmuT commented 5 years ago

Does it help if you clean gradle files?

  1. cd android && ./gradlew clean
  2. npm run android
hfsaito commented 5 years ago

If 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: