diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 0cdfdd439..a79324fbf 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -22,9 +22,6 @@ const StyleSheet = require('StyleSheet'); const Text = require('Text'); const TextAncestor = require('TextAncestor'); const TextInputState = require('TextInputState'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const TimerMixin = require('react-timer-mixin'); const TouchableWithoutFeedback = require('TouchableWithoutFeedback'); const UIManager = require('UIManager'); @@ -33,9 +30,6 @@ const ViewPropTypes = require('ViewPropTypes'); const emptyFunction = require('fbjs/lib/emptyFunction'); const invariant = require('fbjs/lib/invariant'); const requireNativeComponent = require('requireNativeComponent'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const warning = require('fbjs/lib/warning'); let AndroidTextInput; @@ -399,6 +393,7 @@ const TextInput = createReactClass({ * Only called for multiline text inputs. */ onContentSizeChange: PropTypes.func, + onTextInput: PropTypes.func, /** * Callback that is called when text input ends. */ @@ -1040,7 +1035,6 @@ const TextInput = createReactClass({ }, _onTextInput: function(event: Event) { - // $FlowFixMe Invalid prop usage this.props.onTextInput && this.props.onTextInput(event); },