[Android] Nested ScrollView won't scroll
Hi team, it seems that a nested ScrollView won't scroll when running on Android but is able to scroll on iOS. On android it seems only possible to scroll the outer scrollview at the moment.
KP, @krzysztof had some ideas about how this can be done.
ScrollView in JS just maps to a regular scroll view android component. Android by default doesn't support that. If you'd like to use that you'd need to wrap another android component that is capable of doing so: https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.html Here are some instructions on how to wrap custom components on android: http://facebook.github.io/react-native/docs/native-components-android.html#content
Thanks, I will use a wrapped NestedScrollView then as suggested.
to @kmagiera, @mattds : Could you please provide some example code for implementing NestedScrollView to react-native?
Because i'm not java/android programmer. For me, the solution is using this package https://www.npmjs.com/package/react-native-nested-scroll-view and the example https://github.com/cesardeazevedo/react-native-collapsing-toolbar