Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit ab7f70a

Browse files
Merge pull request #123 from evollu/patch-2
update ScrollView Proptype
2 parents 273a775 + 77c21b6 commit ab7f70a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/components/ScrollView.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,18 @@ const ScrollView = React.createClass({
144144
'on-drag',
145145
]),
146146
/**
147-
* When false, tapping outside of the focused text input when the keyboard
148-
* is up dismisses the keyboard. When true, the scroll view will not catch
149-
* taps, and the keyboard will not dismiss automatically. The default value
150-
* is false.
151-
*/
152-
keyboardShouldPersistTaps: PropTypes.bool,
147+
* Determines when the keyboard should stay visible after a tap.
148+
*
149+
* - 'never' (the default), tapping outside of the focused text input when the keyboard
150+
* is up dismisses the keyboard. When this happens, children won't receive the tap.
151+
* - 'always', the keyboard will not dismiss automatically, and the scroll view will not
152+
* catch taps, but children of the scroll view can catch taps.
153+
* - 'handled', the keyboard will not dismiss automatically when the tap was handled by
154+
* a children, (or captured by an ancestor).
155+
* - false, deprecated, use 'never' instead
156+
* - true, deprecated, use 'always' instead
157+
*/
158+
keyboardShouldPersistTaps: PropTypes.oneOf(['always', 'never', 'handled', false, true]),
153159
/**
154160
* The maximum allowed zoom scale. The default value is 1.0.
155161
* @platform ios

0 commit comments

Comments
 (0)