Clean the errors that Flow v0.10.0 finds

This commit is contained in:
Gabe Levi 2015-04-26 18:23:40 -04:00
parent 89495635da
commit 70c9f5140d
3 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ var ToggleAnimatingActivityIndicator = React.createClass({
}
});
exports.displayName = (undefined: ?string);
exports.framework = 'React';
exports.title = '<ActivityIndicatorIOS>';
exports.description = 'Animated loading indicators.';

View File

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

View File

@ -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];