我看到了这篇文章:
https://expo.canny.io/feature-requests/p/react-native-fast-image我安装了expo react原生快速镜像。所以我想使用它,但我收到了这个错误消息:
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>发布于 2021-08-02 16:19:08
使用这个包,它非常快
https://stackoverflow.com/questions/68379492
复制相似问题