文章详情页
javascript - react native使用第三方开源插件的时候报错解析不了模块
浏览:52日期:2023-02-08 18:44:51
问题描述
在使用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使用本地的路径,不知道哪里出问题了,求解?
问题解答
回答1:据我所知 cnpm 安装rn的依赖时会出问题,现在不知道解决了没有,试试npm 或yarn
标签:
JavaScript
相关文章:
排行榜
