Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Android: how to remove "overscroll effect" of ScrollView

Added ScrollView Component in React Native Android, and when you scroll down or up all the way, it show an overscroll effect. How do you remove this?

like image 518
david72 Avatar asked Feb 02 '26 09:02

david72


2 Answers

As of React Native 0.42, an overScrollMode prop is available to set the overscroll mode for each ScrollView:

https://facebook.github.io/react-native/docs/scrollview.html#overscrollmode

like image 131
JustWonder Avatar answered Feb 04 '26 00:02

JustWonder


Until this option is added, I have to do it for the whole app using styles.xml:

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="android:overScrollMode">never</item>
</style>
like image 39
david72 Avatar answered Feb 03 '26 23:02

david72



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!