Merge pull request #1034 from gabelevi/flow

Clean the errors that Flow v0.10.0 finds
This commit is contained in:
Gabe Levi 2015-04-27 13:10:29 -04:00
commit 3383d1cf15
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];