Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29532

How to add setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_LEFT) to react-native ScrollView in android?

$
0
0

I want to change the position of the scroll-bar in react-native to be in the left side (for RTL language), when using VERTICALScrollView/FlatList.

Since I didn't find any prop that allow to do so, I'm trying to add a native code to change it

setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_LEFT)

in node_modules\react-native\ReactAndroid\src\main\java\com\facebook\react\views\scroll\ReactScrollViewManager.java.

Just for testing, I tried to add this code in setScrollEnabled function (with some logs).See Here

But, unfortunately, It seems like this code doesn't affect the app. (even after removing and restarting the app).I cannot see the logs nor the affect of the scrollbar position :(

Any ideas how can I do it?

react-native version: 0.62.2

Thank a lot!


Viewing all articles
Browse latest Browse all 29532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>