Android 上的ScrollView 拉到尽头时会有阴影效果,需求要求去除该效果。
看了看React Native上ScrollView的文档,发现bounce这类有点关系的属性都是ios的,没有android上相关的设置。
在StackOverFlow找到了解决的办法。因为RN是调用的原生的控件,所以在android文件中设置scrollView相关属性就能起作用了。具体为在styles.xml中添加overScrollMode设置
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:overScrollMode">never</item>
</style>