React Native Android:如何删除 "overscroll effect" 的 ScrollView
React Native Android: how to remove "overscroll effect" of ScrollView
在React Native中添加了ScrollView组件Android,当你一直向下或向上滚动时,它会显示一个过度滚动的效果。你如何删除它?
在添加此选项之前,我必须使用 styles.xml:
对整个应用程序执行此操作
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:overScrollMode">never</item>
</style>
从 React Native 0.42 开始,overScrollMode
道具可用于为每个 ScrollView 设置过度滚动模式:
https://facebook.github.io/react-native/docs/scrollview.html#overscrollmode
在React Native中添加了ScrollView组件Android,当你一直向下或向上滚动时,它会显示一个过度滚动的效果。你如何删除它?
在添加此选项之前,我必须使用 styles.xml:
对整个应用程序执行此操作<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:overScrollMode">never</item>
</style>
从 React Native 0.42 开始,overScrollMode
道具可用于为每个 ScrollView 设置过度滚动模式:
https://facebook.github.io/react-native/docs/scrollview.html#overscrollmode