首页  >  问答  >  正文

javascript - react native使用第三方开源插件的时候报错解析不了模块

在使用react-native-swiper插件的时候也按照它的使用方法去使用:
https://github.com/leecade/re...

运行:react-native run-android,报错:"message":"Unable to resolve module react-native-swiper

也尝试过其他的插件同样报错解析不了, 安装时:用cnpm安装,gradle里面的gradle-wrapper.properties文件里面的distributionUrl使用本地的路径,不知道哪里出问题了,求解?

怪我咯怪我咯2663 天前1066

全部回复(1)我来回复

  • 黄舟

    黄舟2017-07-05 11:10:54

    据我所知 cnpm 安装rn的依赖时会出问题,现在不知道解决了没有,试试npm 或yarn

    回复
    0
  • 取消回复