I have a flat list in react native and I want to keep it always visible. Right now, I can see it whenever I start scrolling but I want the user to be able to see it from the moment they open the screen. Any ideas?
Asked
Active
Viewed 7,166 times
4

Supriya Kalghatgi
- 1,155
- 9
- 10

carloscc
- 779
- 3
- 14
- 20
-
1not sure about any prop available for flatlist, but for scrollView you can use `showsHorizontalScrollIndicator={true}` – Aravind S Jul 02 '18 at 09:58
-
@AravindS But does that one show it all the time? Or only after the user starts scrolling? – carloscc Jul 02 '18 at 10:10
-
I believe all time, could you please try once ? – Aravind S Jul 02 '18 at 10:15
-
@AravindS I did and it doesn't seem to change anything vs nothing on that field. I used vertical though – carloscc Jul 02 '18 at 10:43
-
try removeClippedSubviews={false} – Manjeet Singh Jul 02 '18 at 11:14
-
@ManjeetSingh doesn't work – carloscc Jul 02 '18 at 21:54
-
This is not related to native-base – Supriya Kalghatgi Jul 03 '18 at 04:25
-
Similar question for ScrollView https://stackoverflow.com/questions/47038519/permanently-visible-scroll-bar-for-scrollview-react-native. See the selected answer's comments. – akhil xavier Jul 03 '18 at 06:48
3 Answers
0
<Flatlist persistentScrollbar/>

Sukshith S
- 413
- 6
- 6
-
Why would this help the OP? Please add some clarification around the answer. Thanks! – 10 Rep Feb 02 '21 at 17:20
-
2
-5
Try this
showsHorizontalScrollIndicator={true}

Roshana Pitigala
- 8,437
- 8
- 49
- 80

abhinandan sharma
- 853
- 6
- 12
-
This will not show the scroll bar EVERYTIME but only when user starts scrolling. – salvi shahzad Feb 17 '20 at 11:04