React Native: How to disable scrolling in ListView?

React Native

React 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>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionskyline75489View Question on Stackoverflow
Solution 1 - React NativeboredgamesView Answer on Stackoverflow
Solution 2 - React NativeRomanView Answer on Stackoverflow