react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

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

Open tarbundiyahitesh21 opened this issue 4 years ago • 23 comments

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.

tarbundiyahitesh21 avatar Jun 12 '20 03:06 tarbundiyahitesh21

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

guhungry avatar Jun 21 '20 08:06 guhungry

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

bmuthoga avatar Jun 21 '20 13:06 bmuthoga

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

nachozullo avatar Aug 07 '20 23:08 nachozullo

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

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

nachozullo avatar Aug 07 '20 23:08 nachozullo

same for me

ahmedsafadii avatar Aug 14 '20 15:08 ahmedsafadii

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

take-o20 avatar Aug 20 '20 13:08 take-o20

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

resolved by re-building app

take-o20 avatar Aug 21 '20 01:08 take-o20

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

diegoaraujo85 avatar Dec 08 '20 17:12 diegoaraujo85

make sure you reinstall podfile in ios folder

venxik avatar Dec 15 '20 14:12 venxik

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";
        }
      };
})

jay-chaturvedi avatar Mar 03 '21 14:03 jay-chaturvedi

Same problem here, using expo bare workflow

robertohein avatar May 17 '21 14:05 robertohein

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

pavantamidala avatar Aug 28 '21 06:08 pavantamidala

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

vikrrantshah avatar Sep 03 '21 11:09 vikrrantshah

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

johndimm avatar Feb 16 '22 20:02 johndimm

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.

ovidiuch avatar Mar 04 '22 10:03 ovidiuch

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?

mchambaud avatar Apr 06 '22 13:04 mchambaud

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

TaiTrien avatar May 05 '22 03:05 TaiTrien

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.

dutchkillscreative avatar Jun 09 '22 17:06 dutchkillscreative

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.

MouraVocal avatar Oct 03 '22 22:10 MouraVocal

for me, solved by pod repo update and pod install

cheuchheang avatar Nov 17 '22 17:11 cheuchheang

Any alternatives?

GitHubKaan avatar Mar 29 '24 17:03 GitHubKaan