Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react native expo fast image is not working

I saw this article:

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

I install expo react native fast image. So I want to use it but I get this err message:

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

Code:

...
import FastImage from 'react-native-fast-image';
...
      { /* Modal Shipping */ }
      <Modal 
        isVisible={modalView}
        swipeDirection="down"
        swipeThreshold={20}
        propagateSwipe={true}
        backdropTransitionOutTiming={0}
      >
          <View style={{ justifyContent: 'center', padding: 12, alignItems: 'center', backgroundColor: '#fff', borderRadius: 12, padding: 12, borderWidth: 4, borderColor: '#ac67f9'}}>
            <FastImage source={{uri: 'https://i.ebayimg.com/thumbs/images/g/QSIAAOSw3gNggE1r/s-l225.webp'}} resizeMode="contain" />
          </View>
      </Modal>
like image 642
Datastores11 Avatar asked Mar 05 '26 01:03

Datastores11


1 Answers

I've managed to install react-native-fast-image to my expo project. Here is what I've done:

  • Make sure you run the eas build -p all --profile development Ensure eas-cli is installed prior to run this script.
  • After running it, you will have an eas.json file in the root dir of the project.
  • The next step is to run expo run:ios or expo run:android, then you will notice the generated native folders (android, ios) in the root dir again...

All should work just fine after these steps.

like image 189
Tarik Avatar answered Mar 07 '26 22:03

Tarik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!