react-native

Permanently visible Scroll Bar for ScrollView (React Native)


I just found that there is no permanent Scroll bar for ScrollView. I went through all the documentation and google but I don't think it actually exists.

How do we implement permanent Scroll Bar for <ScrollView>? How do we keep Scroll Bar visible?


Solution

  • ScrollView has a prop called persistentScrollbar.

    You can set the boolean to be true by adding persistentScrollbar={true} to make scrollbars visible permanently, even when they are not in use.

    This only works for Android.

    React Native's Official Documentation