美文网首页
RN遇到的bug 随手记录

RN遇到的bug 随手记录

作者: 小新拉噗噗 | 来源:发表于2020-07-16 17:18 被阅读0次

1.You specified `onScroll` on a <ScrollView> but not `scrollEventThrottle`. You will only receive one event. Using `16` you get all the events but be aware that it may cause frame drops, use a bigger number if you don't need as much precision.

该问题是由于用到react-native-looped-carousel 组件导致

解决方法: 在项目的node_modules找到react-native-looped-carousel源码 index.js

如图添加这句即可。

2.React Native 编译报错 'config.h' file not found

解决方法:

第一步:cd node_modules/react-native/third-party/glog-0.3.5    //找到路径进入项目glog

第二步   ../../scripts/ios-configure-glog.sh  

重新编译即可

相关文章

网友评论

      本文标题:RN遇到的bug 随手记录

      本文链接:https://www.haomeiwen.com/subject/utcmhktx.html