React-native-fast-image: ANDROID Invariant Violation: requireNativeComponent: "FastImageView" was not found in the UIManager.

Created on 8 Jul 2019  Â·  27Comments  Â·  Source: DylanVann/react-native-fast-image

Invariant Violation: requireNativeComponent: "FastImageView" was not found in the UIManager.

Dependency versions :

bug

Most helpful comment

Upgraded today and still see this error happening on iOS and Android:
react-native: 0.60.4
react-native-fast-image: 7.0.2
react: 16.8.6

All 27 comments

what was causing the issue?

Having the same issue, just imported it in project and used

import Image from 'react-native-fast-image'

<Image
            resizeMode={Image.resizeMode.contain}
            source={require('js/resources/img/logo.png')}
            style={styles.logo}
          />

I have to same issue +1 @Villar74 your solutions not working for me

@brkrtp that was not a solution) it was explaining how i get that error)

Fixed with init new project, carefully move there my files and added last version of react-native-fast-image

+1

Upgraded today and still see this error happening on iOS and Android:
react-native: 0.60.4
react-native-fast-image: 7.0.2
react: 16.8.6

Still having the same issue on android.
react-native:0.59.5
react-native-fast-image: ^7.0.2
react: 16.8.3

Not having that issue with auto-linking on 0.60.4

I have upgrade the leaste version 7.0.2
but I also have the problem, who can help me?

I have the same issue when i use react-native 0.60.
Works after input those:
<<
react-native link react-native-fast-image
react-native run-android

>

It looks like that React Native CLI uses autolinking for native dependencies not works,
we have to link by ourself. Maybe i'm wrong, but can have a try.

Have anyone found solution ?

for iOS: In my case of CocoaPods in project it was fixed by:

cd ~/[your_project_folder]; 
sudo rm -rf node_modules; 
npm install; 
cd ios/; 
rm -rf Pods; 
rm Podfile.lock; 
pod install; 
cd ../ ; 
rm -rf ios/build ; 
sudo rm -rf ~/Library/Developer/Xcode/DerivedData

I had same issue on iOS - pod install resolved it.

@sobhan-shahamatnia WTF was this closed!? It's clearly not resolved. If it is in fact resolved, can you share the solution?

Also @valeriik / @latovicalmin , irrelevant. Question is about Android not iOS.

Android app build success, but crash straight away when the app start.
iOS working fine after running "pod install" command in the ios folder.

Following @wvalen answer, android version worked after running "react-native link react-native-fast-image".

I thought react native document state that native modules are autolinked after > 0.60 version. But the autolinked doesn't work in this package. Maybe this solution should be included in the documentation

react-native: 0.60.4
react-native-fast-image: 7.0.2
react: 16.8.6

I have the same issue when i use react-native 0.60.
Works after input those:
<<
react-native link react-native-fast-image
react-native run-android

>

It looks like that React Native CLI uses autolinking for native dependencies not works,
we have to link by ourself. Maybe i'm wrong, but can have a try.

Any ideas? Also weird folks would talk about iOS, title's first word is Android.

Same issue for me. Any solution to this problem?

I just re run react-native run-android and all works fine

I've just realized that I had not properly linked (aka manually) the library.

I'm at RN 0.59.10. and [email protected]

https://github.com/DylanVann/react-native-fast-image/blob/4fa62bb09f65d967977f25ef87eda5f8b7c18cd6/docs/installation-manual.md

I had same issue on iOS - pod install resolved it.

yes. Pod installed solved the problem for ios.
but having trouble with android.

For me (using 0.59.9 on ios), what did it was adding the library manually, as described in https://github.com/DylanVann/react-native-fast-image/blob/4fa62bb09f65d967977f25ef87eda5f8b7c18cd6/docs/installation-manual.md#ios

After manual link also still showing the same issue

Invariant Violation: requireNativeComponent: "FastImageView" was not found in the UIManager.

Properly linked manually, cleaned gradlew , still same issue. not sure what is the reason

I'm also having the same issue.
"react-native-fast-image": "^8.3.1"

I'm also having the same issue.
"react-native-fast-image": "^8.3.1"

let me know if you find solution. as of now i removed this and working on other features without wasting time

manual link on android did work for me

on

I have done manual link only. I lest using auto linking since there were many issues with auto linking

Was this page helpful?
0 / 5 - 0 ratings