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.
該問(wèn)題是由于用到react-native-looped-carousel 組件導(dǎo)致
解決方法: 在項(xiàng)目的node_modules找到react-native-looped-carousel源碼 index.js
如圖添加這句即可缰盏。
2.React Native 編譯報(bào)錯(cuò) 'config.h' file not found
解決方法:
第一步:cd node_modules/react-native/third-party/glog-0.3.5? ? //找到路徑進(jìn)入項(xiàng)目glog
第二步? ?../../scripts/ios-configure-glog.sh??
重新編譯即可