recyclerlistview icon indicating copy to clipboard operation
recyclerlistview copied to clipboard

how to disable scrolling in recyclerlistview

Open devshivamthakur opened this issue 4 years ago • 7 comments

devshivamthakur avatar May 12 '21 10:05 devshivamthakur

you can add scrollEnabled: false in the scrollViewProps

<RecyclerLitstView
   ...
   scrollViewProps={{
     scrollEnabled: false
   }}
/>

timurridjanovic avatar Jul 06 '21 22:07 timurridjanovic

not working

devshivamthakur avatar Jul 07 '21 11:07 devshivamthakur

What do you mean it's not working.. It works for me..

timurridjanovic avatar Jul 14 '21 03:07 timurridjanovic

use ref,

 myRef.current.setNativeProps({
                                    scrollEnabled: false
                                });

Only-IceSoul avatar Nov 06 '21 05:11 Only-IceSoul

you can add scrollEnabled: false in the scrollViewProps

<RecyclerLitstView
   ...
   scrollViewProps={{
     scrollEnabled: false
   }}
/>

Working for me.

rassemdev avatar Dec 18 '21 18:12 rassemdev

<RecyclerListView scrollViewProps={{ showsHorizontalScrollIndicator: false, showsVerticalScrollIndicator: false, }} ... />

Vahabov avatar Feb 11 '22 08:02 Vahabov

myRef.current?._scrollComponent?._scrollViewRef?.setNativeProps

zhangwen9229 avatar Sep 13 '22 09:09 zhangwen9229