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!