mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[Flow] Properly fix new errors as of Flow v0.10.
This commit is contained in:
@@ -89,7 +89,7 @@ var TabBarItemIOS = React.createClass({
|
||||
}
|
||||
},
|
||||
|
||||
componentWillReceiveProps: function(nextProps: { selected: any /* workaround for flow bug */ }) {
|
||||
componentWillReceiveProps: function(nextProps: { selected?: boolean }) {
|
||||
if (this.state.hasBeenSelected || nextProps.selected) {
|
||||
this.setState({hasBeenSelected: true});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user