DylanVann / react-native-fast-image

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

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

Open tarbundiyahitesh21 opened 4 years ago

tarbundiyahitesh21 commented 4 years ago

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 commented 4 years ago

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

bmuthoga commented 4 years ago

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

nachozullo commented 4 years ago

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

nachozullo commented 4 years ago

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

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

ahmedsafadii commented 4 years ago

same for me

take-o20 commented 4 years ago

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

take-o20 commented 4 years ago

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

resolved by re-building app

diegoaraujo85 commented 3 years ago

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

venxik commented 3 years ago

make sure you reinstall podfile in ios folder

jay-chaturvedi commented 3 years ago

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 commented 3 years ago

Same problem here, using expo bare workflow

pavantamidala commented 3 years ago

if you are using it in expo managed workflow it won't work. chek this solution https://github.com/DylanVann/react-native-fast-image/issues/704#issuecomment-656370679

vikrrantshah commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

dutchkillscreative commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

for me, solved by pod repo update and pod install

GitHubKaan commented 7 months ago

Any alternatives?

maksudkhan7706 commented 4 months ago

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 commented 4 months ago

Same problem here