RN遇到的bug 随手记录

1.You specified `onScroll` on a 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 随手记录)