React-native-keyboard-aware-scroll-view: Don't allow user to scroll the view on static view

Created on 31 Oct 2016  Â·  2Comments  Â·  Source: APSL/react-native-keyboard-aware-scroll-view

I have a static view that I would usually just use <View> for, but I need the view to scroll to show some text inputs near the bottom of the window. Is there a way to stop the user dragging the view around ie. make the view act like a <View> but programmatically scroll as if it were a <ScrollView> as this makes it look odd when the view can be scrolled with no need for scrolling

Most helpful comment

I actually found scrollEnabled={false} works for me. Thanks for pointing me in the right direction though 😄

All 2 comments

Have you tried to disable the vertical bounce? Maybe that solves your issue!

Enviado desde mi iPhone

El 31 oct 2016, a las 18:32, Rob Calcroft [email protected] escribió:

I have a static view that I would usually just use for, but I need the view to scroll to show some text inputs near the bottom of the window. Is there a way to stop the user dragging the view around ie. make the view act like a but programmatically scroll as if it were a as this makes it look odd when the view can be scrolled with no need for scrolling

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I actually found scrollEnabled={false} works for me. Thanks for pointing me in the right direction though 😄

Was this page helpful?
0 / 5 - 0 ratings