Clean the errors that Flow v0.10.0 finds
This commit is contained in:
parent
89495635da
commit
70c9f5140d
|
@ -57,6 +57,7 @@ var ToggleAnimatingActivityIndicator = React.createClass({
|
|||
}
|
||||
});
|
||||
|
||||
exports.displayName = (undefined: ?string);
|
||||
exports.framework = 'React';
|
||||
exports.title = '<ActivityIndicatorIOS>';
|
||||
exports.description = 'Animated loading indicators.';
|
||||
|
|
|
@ -86,7 +86,7 @@ var TabBarItemIOS = React.createClass({
|
|||
}
|
||||
},
|
||||
|
||||
componentWillReceiveProps: function(nextProps: { selected: boolean }) {
|
||||
componentWillReceiveProps: function(nextProps: { selected?: boolean }) {
|
||||
if (this.state.hasBeenSelected || nextProps.selected) {
|
||||
this.setState({hasBeenSelected: true});
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ var ReactIOSMount = {
|
|||
unmountComponentAtNode: function(containerTag: number): bool {
|
||||
if (!ReactIOSTagHandles.reactTagIsNativeTopRootID(containerTag)) {
|
||||
console.error('You cannot render into anything but a top root');
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
var containerID = ReactIOSTagHandles.tagToRootNodeID[containerTag];
|
||||
|
|
Loading…
Reference in New Issue