Browse files

Identify keyboardDismissMode platform-specific options

Similar to `TextInput`'s `returnKeyType`, comments allow to see at a glance which options are cross-platform and which are not.

Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos!

Please read the Contribution Guidelines at to learn more about contributing to React Native.

Happy contributing!
Closes #14780

Differential Revision: D5480895

Pulled By: hramos

fbshipit-source-id: c38337def920678d29c8322e52b54f57e80cb95b
  • Loading branch information...
jkdf2 authored and facebook-github-bot committed Jul 24, 2017
1 parent 879d2e3 commit 64899c08f382ce64fd694a890ccc0f5ff7b8d75c
Showing with 7 additions and 2 deletions.
  1. +7 −2 Libraries/Components/ScrollView/ScrollView.js
@@ -201,16 +201,21 @@ const ScrollView = createReactClass({
* Determines whether the keyboard gets dismissed in response to a drag.
* *Cross platform*
* - `'none'` (the default), drags do not dismiss the keyboard.
* - `'on-drag'`, the keyboard is dismissed when a drag begins.
* *iOS Only*
* - `'interactive'`, the keyboard is dismissed interactively with the drag and moves in
* synchrony with the touch; dragging upwards cancels the dismissal.
* On android this is not supported and it will have the same behavior as 'none'.
keyboardDismissMode: PropTypes.oneOf([
'none', // default
'on-drag', // Cross-platform
'interactive', // iOS-only
* Determines when the keyboard should stay visible after a tap.

0 comments on commit 64899c0

Please sign in to comment.