You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to dismiss the keyboard when scrolling to another page. It seems that setting the keyboardDismissMode prop to 'on-drag', for the ScrollView, doesn't do anything. Using onScrollEnd prop is not what we want, because we allow other components to focus after using the scrollToPage(page) method - onScrollEnd={() => Keyboard.dismiss()} results in unwanted behavior.
Edit: Using react-native 0.60.5
The text was updated successfully, but these errors were encountered:
A simple solution that I can think of would be to allow hooks to the onScrollBeginDrag() method (and to other ScrollView props that are defined) by allowing the user to set their own onScrollBeginDrag prop and calling like so:
Thanks for issue! Looks like keyboardDismissMode is not working on Android at all for this moment, as described in facebook/react-native#23364. I've added onScrollStart callback and released it in 0.9.0.
We want to dismiss the keyboard when scrolling to another page. It seems that setting the
keyboardDismissMode
prop to'on-drag'
, for theScrollView
, doesn't do anything. UsingonScrollEnd
prop is not what we want, because we allow other components to focus after using thescrollToPage(page)
method -onScrollEnd={() => Keyboard.dismiss()}
results in unwanted behavior.Edit: Using react-native 0.60.5
The text was updated successfully, but these errors were encountered: