mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This is an example from RNTester. I added a button in the ScrollView which can eat taps. This allows us to test the `keyboardShouldPersistTap` prop values for `ScrollView`, since there was no way to differentiate between "handled" and "always". Expected behavior for each value of `keyboardShouldPersistTaps`: * `"handled"` - The keyboard should dismiss if the ScrollView is tapped, but pressable components like buttons can eat taps (and not dismiss the keyboard) * `"never"` - The keyboard should always dismiss when anything in the ScrollView is tapped. Buttons won't be pressed - the keyboard will dismiss instead. * `"always"` - The keyboard should never dismiss. Buttons and other content in the ScrollView can be tapped. Reviewed By: lunaleaps, nadiia Differential Revision: D26228852 fbshipit-source-id: 1df78f0be10e2f2cc81e95548a6a6f7cab07894f