React Native: How to disable scrolling in ListView?
React NativeReact Native Problem Overview
Is it possible to disable scrolling of ListView? I've tried noScroll
:
<ListView noScroll={true}>
</ListView>
But it doesn't seem to make any difference.
React Native Solutions
Solution 1 - React Native
i think it should be
scrollEnabled={false}
http://facebook.github.io/react-native/docs/scrollview.html#props
Solution 2 - React Native
Sometimes scrolling is disabled only by applying both scrollEnabled
and nestedScrollEnabled
:
<ScrollView
scrollEnabled={false}
nestedScrollEnabled={false}
>
{children}
</ScrollView>