Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requireNativeComponent: "FastImageView" was not found in the UIManager. #692

Open
tarbundiyahitesh21 opened this issue Jun 12, 2020 · 23 comments
Labels

Comments

@tarbundiyahitesh21
Copy link

tarbundiyahitesh21 commented Jun 12, 2020

I am using react-native 0.62.2 ,
and it's

pod 'RNFastImage', :path => '../node_modules/react-native-fast-image'

also available in podlist file

but getting this issue.

@guhungry
Copy link
Contributor

RN 0.62 has autolink functionality so you don't need add entry in pod

@bmuthoga
Copy link

Came across the same working on the iOS Simulator. Running pod install and rebuilding the app fixed it for me.

@nachozullo
Copy link

Having the same issue, in Android 9 with Expo 38 and RN 38

@nachozullo
Copy link

I found that this package is not available in expo yet :(

https://expo.canny.io/feature-requests/p/add-react-native-fast-image

@ahmedsafadii
Copy link

same for me

@take-o20
Copy link

having the same issue on android, I'm not using Expo.

@take-o20
Copy link

having the same issue on android, I'm not using Expo.

resolved by re-building app

@diegoaraujo85
Copy link

I have the same issue here, I1m using Expo Bare Workflow.

@venxik
Copy link

venxik commented Dec 15, 2020

make sure you reinstall podfile in ios folder

@jay-chaturvedi
Copy link

I'm also facing same issue,
tried everything
./MainApplication.java

import com.dylanvann.fastimage.FastImageViewPackage;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost =
      new ReactNativeHost(this) {
        @Override
        public boolean getUseDeveloperSupport() {
          return BuildConfig.DEBUG;
        }

        @Override
        protected List<ReactPackage> getPackages() {
          @SuppressWarnings("UnnecessaryLocalVariable")
          List<ReactPackage> packages = new PackageList(this).getPackages();
          // Packages that cannot be autolinked yet can be added manually here, for example:
          // packages.add(new MyReactNativePackage());
          packages.add(new YellowMessengerModulePackage());
          packages.add(new FastImageViewPackage())
          return packages;
        }

        @Override
        protected String getJSMainModuleName() {
          return "index";
        }
      };
})
@robertohein
Copy link

Same problem here, using expo bare workflow

@pavantamidala
Copy link

if you are using it in expo managed workflow it won't work. chek this solution #704 (comment)

@vikrant0526
Copy link

having the same issue on android, I'm not using Expo.

resolved by re-building app

Tried npm start -c to clear expo cache and restarted the expo go app but still the same issue

@johndimm
Copy link

johndimm commented Feb 16, 2022

same issue on a new test project

$ expo init fastimage-test
   selected blank template
$ cd fastimage-test
$ expo install react-native-fast-image

Added a FastImage to App.js:

import FastImage from 'react-native-fast-image'
...
    <View style={styles.container}>
      <Text>Open up App.js to start working on your app!</Text>
      <FastImage source={{uri:'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'}} style={{width:100,height:100}}/>
      <StatusBar style="auto" />
    </View>

Dependencies in package.json:

  "dependencies": {
    "expo": "~44.0.0",
    "expo-status-bar": "~1.2.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-fast-image": "^8.5.11",
    "react-native-web": "0.17.1"
  },

Error:

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

This error is located at:
    in FastImageView (created by FastImageBase)
  ...

You can see the same issue in expo snack here.

https://snack.expo.dev/@johndimm/react-native-fast-image-test

Similar errors on iOS and Android.

Screen Shot 2022-02-16 at 1 01 26 PM

@ovidiuch
Copy link

ovidiuch commented Mar 4, 2022

FastImage can only be used in Expo with a custom development client. See the pinned response. You have to do some reading to understand how it works but after you get your dev client built with Expo EAS FastImage works out of the box.

@mchambaud
Copy link

Since I upgraded to latest Mac OS and XCODE (13.3) my app is complaining with this error but I can still build using Expo AES. Any ideas?

@TaiTrien
Copy link

TaiTrien commented May 5, 2022

For me, I just re-build the app using Xcode. Remember to clean cache, some weird settings

@dutchkillscreative
Copy link

It would be nice if expo and rn had some way of delineating code for dev enviroment and code for production so you could build FastImage right next to all your native Image elements and during production it would just toss the native element. Bit frustrating because I can't debug the fast image package while developing and I have to wait until it's built to test it out.

@MouraVocal
Copy link

I resolved rebuilding app, I'm using react-native CLI and testing in a real tablet via cable, i used the command "yarn start --reset-cache" and "yarn android" and everything works fine.

@cheuchheang
Copy link

for me, solved by pod repo update and pod install

@GitHubKaan
Copy link

Any alternatives?

@maksudkhan7706
Copy link

maksudkhan7706 commented Jun 13, 2024

Any Solution this error?

**

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

**

React Native 0.68.2

pod install succes
npm install succes

@PsyBrainy
Copy link

Same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment