Check for ScrollView
ancestor in KeyboardAwareScrollView
#336
Labels
🐛 bug
Something isn't working
📚 components
Anything related to the exported components of this library
KeyboardAwareScrollView 📜
Anything related to KeyboardAwareScrollView component
Describe the bug
Right now if
TextInput
is not a child ofKeyboardAwareScrollView
and you touch it ->KeyboardAwareScrollView
still will be scrolled 😲Code snippet
You can use example app and just add a new
TextInput
belowKeyboardAwareScrollView
in hierarchy.Repo for reproducing
You can use example app.
To Reproduce
Steps to reproduce the behavior:
TextInput
(shouldn't be a child ofScrollView
) inKeyboardAwareScrollView
exampleTextInput
ScrollView
gets scrolledExpected behavior
ScrollView
shouldn't be scrolled.Smartphone (please complete the following information):
Additional context
I think
useReanimatedFocusedInput
should return additional field likeparentScrollViewTarget
, and inmaybeScroll
we can compare, thatparentScrollViewTarget===scrollViewTarget
and do scroll only in this case.The text was updated successfully, but these errors were encountered: