更新:关于ScrollView在iphoneXR有安全区域类手机中,滚动条位置显示不对的问题,目前发现两种解决方案:
1、增加属性设置 scrollIndicatorInsets={{ right: 1 }}
2、增加样式,marginBotttom: 安全区域高度
场景
软件版本 ios 13.3
在ScrollView组件下,原本在最右侧的滚动条跑到了屏幕中间或者左边。
解决方法
给ScrollView加 scrollIndicatorInsets属性
<ScrollView scrollIndicatorInsets={{ right: 1 }}>
...
</ScrollView>
所有评论(0)