在React Native Android中添加了ScrollView组件,当你向上或向下滚动到底部时,会显示一种过度滚动效果。如何去掉这个效果?
overScrollMode
属性来设置超滚动模式:
https://facebook.github.io/react-native/docs/scrollview.html#overscrollmode在此选项添加之前,我必须使用styles.xml为整个应用程序进行操作:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:overScrollMode">never</item>
</style>