react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

ScrollView: showsHorizontalScrollIndicator/showsVerticalScrollIndicator

Open miketheanimal opened this issue 10 years ago • 9 comments

ScrollView does not honour:

showsHorizontalScrollIndicator showsVerticalScrollIndicator

The scoll bar still appear, and generates a warning in the console:

Warning: Unknown prop showsHorizontalScrollIndicator on

tag.

OS: Linux Device: Desktop Browser: Chrome React Native for Web (version): 0.0.41 React (version): 15.3.0

Regards Mike

miketheanimal avatar Aug 09 '16 16:08 miketheanimal

Not really sure this is something web needs or could support

necolas avatar Aug 09 '16 17:08 necolas

I guess you are right; in which case, in this sort of case, could the code output a "this is not supported by react native web" message?

miketheanimal avatar Aug 10 '16 16:08 miketheanimal

Yes something like that sounds sensible. I'll take proper look within the next few days. Thanks

necolas avatar Aug 10 '16 20:08 necolas

I just got

Warning: Unknown prop `showsHorizontalScrollIndicator` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in div (at index.js:35)
    in View (at ScrollViewBase.js:94)
    in ScrollViewBase (at index.js:208)
    in ScrollView (at index.js:50)
    ...

It's because I added props when working on RN app :)

One thing we could do is just remove this prop before building the div so React don't warn on unknown props. Docs can just say "not supported", I am not sure it make sense to "pollute" the console.

MoOx avatar Oct 24 '16 11:10 MoOx

Btw, same issue with bounces.

MoOx avatar Oct 25 '16 06:10 MoOx

Fixed by abd1227a948e4680b69e937493c17d12653a6362

You'll have to filter iOS-specific props yourself for now.

necolas avatar Nov 22 '16 05:11 necolas

@necolas Is this really something that cannot be supported? It's not uncommon thing to use a scrollable div without displaying the actual scrollbar.

Elijen avatar Mar 03 '18 20:03 Elijen

Is there any solution on this issue? Or did anyone manage to hide the scrollbar in a FlatList?

yadirhb avatar Sep 13 '18 21:09 yadirhb

Is there any solution on this issue? Or did anyone manage to hide the scrollbar in a FlatList?

shrikantr-iprogrammer avatar Jun 07 '19 20:06 shrikantr-iprogrammer