首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >react本机expo fast映像不起作用

react本机expo fast映像不起作用
EN

Stack Overflow用户
提问于 2021-07-14 21:57:34
回答 1查看 650关注 0票数 2

我看到了这篇文章:

代码语言:javascript
复制
https://expo.canny.io/feature-requests/p/react-native-fast-image

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

代码语言:javascript
复制
Invariant Violation: requireNativeComponent: "FastImageView" was not found in the UIManager.

代码:

代码语言:javascript
复制
...
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>
EN

回答 1

Stack Overflow用户

发布于 2021-08-02 16:19:08

使用这个包,它非常快

expo fast image

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68379492

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档