[Flow] Properly fix new errors as of Flow v0.10.

This commit is contained in:
Gabe Levi
2015-04-27 15:18:37 -07:00
parent dd56ccb9c7
commit b6e6dae6ba
3 changed files with 3 additions and 2 deletions

View File

@@ -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});
}