diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index a6780fabd572c3..296b6ec72dc029 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -782,6 +782,15 @@ const TextInput = createReactClass({ */ inlineImagePadding: PropTypes.number, + /** + * If `true`, allows TextInput to pass touch events to the parent component. + * This allows components such as SwipeableListView to be swipeable from the TextInput on iOS, + * as is the case on Android by default. + * If `false`, TextInput always asks to handle the input (except when disabled). + * @platform ios + */ + rejectResponderTermination: PropTypes.bool, + /** * Determines the types of data converted to clickable URLs in the text input. * Only valid if `multiline={true}` and `editable={false}`. @@ -859,6 +868,7 @@ const TextInput = createReactClass({ getDefaultProps() { return { allowFontScaling: true, + rejectResponderTermination: true, underlineColorAndroid: 'transparent', }; }, @@ -1079,7 +1089,7 @@ const TextInput = createReactClass({