mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +08:00
Fix React Native open source
Reviewed By: hramos, TheSavior Differential Revision: D5728356 fbshipit-source-id: fb751d67c16ba9273de93d9b6d5acd65b1555dca
This commit is contained in:
committed by
Facebook Github Bot
parent
2d0fe109d7
commit
63f990121a
@@ -734,9 +734,9 @@ const TextInput = createReactClass({
|
||||
}
|
||||
props.autoCapitalize =
|
||||
UIManager.AndroidTextInput.Constants.AutoCapitalizationType[this.props.autoCapitalize];
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.53 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment
|
||||
* suppresses an error when upgrading Flow's support for React. To see the
|
||||
* error delete this comment and run Flow. */
|
||||
var children = this.props.children;
|
||||
var childCount = 0;
|
||||
React.Children.forEach(children, () => ++childCount);
|
||||
@@ -897,9 +897,9 @@ const TextInput = createReactClass({
|
||||
},
|
||||
|
||||
_onTextInput: function(event: Event) {
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.53 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment
|
||||
* suppresses an error when upgrading Flow's support for React. To see the
|
||||
* error delete this comment and run Flow. */
|
||||
this.props.onTextInput && this.props.onTextInput(event);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user