question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Warning: Native component for "FastImageView" does not exist [SOLVED]

See original GitHub issue

I found myself with this issue and I was able to fix it for iOS as it’s explained in #51 However, I didn’t find anything for Android… so I had to fix it myself. I’m writing down here what was the solution for me in order to help others with the same issue. It seems that react-native link does not do his work properly sometimes, so there was a missed line in android/app/src/main/java/com/PROJECT_FOLDER/MainApplication.java you must add

return Arrays.<ReactPackage>asList( (.... all your packages list) new FastImageViewPackage()

Be sure that previously you have imported the library at the top of the file import com.dylanvann.fastimage.FastImageViewPackage;

In case this solution doesn’t work for you, these are the files you must check:

At android/settings.gradle add include ':react-native-fast-image' project(':react-native-fast-image').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fast-image/android')

At android/app/build.gradle add dependencies { compile project(':react-native-fast-image') (...all your dependencies)

Hope it helps!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
chinavanecommented, Jun 20, 2019
"react-native": "0.59.9",
"react-native-fast-image": "6.0.3",

same problem

0reactions
Jalpesh-induscommented, Feb 13, 2019

@iqqmuT Can you show me your versions and the code where you are using fastimage?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image/Fast Image in React Native app not working on iOS 14 ...
This is a problem with react-native <= 0.63.1 and iOS 14. This issue is fixed and merged to react native latest version.
Read more >
could not determine the dependencies of task ':react-native ...
Configure project :expo-background-fetch WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0.
Read more >
Awesome React Native components, news, tools, and ...
react-native-app-intro is a react native component implementing a parallax ... android. react-native-fast-image. 4066. FastImage, performant React Native ...
Read more >
Image Caching in React Native - Rangle.io
FastImage. To solve these issues, I developed a new image component for React Native. FastImage is a performant replacement for React Native's ......
Read more >
react-native some images are loaded, other not-React Native
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@drawable/spenden,@drawable/angebote" />.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found