反应本机博览会快速图像不起作用

时间:2021-07-14 13:57:33

标签: react-native expo

我看到了这篇文章:

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

我安装了 expo react native 快速镜像。所以我想使用它,但我收到此错误消息:

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

代码:

...
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>

1 个答案:

答案 0 :(得分:0)

使用这个包超级快

expo fast image