nestedScrollEnabled prop not working in ScrollView (Android) with horizontal direction
背景:react-native开发中,使用到了ScrollView(横向)嵌套ScrollView(横向),测试发现ios滑动是正常的,但是安卓手机子层的ScrollView滑动是失效的,以下是我尝试的几种解决方案:
方案一:
引用react-native-gesture-handler
import {
ScrollView } from 'react-native'
import {
ScrollView as GestureHandlerScrollView } from 'react-native-gesture-handler'
<ScrollView horizontal>
<GestureHandlerScrollView horizontal />
</ScrollVIew>
注意: 经本人实践,这个方法可以解决