From 70c9f5140d6e82f58e26b9e529de49c2cd5a0e2b Mon Sep 17 00:00:00 2001 From: Gabe Levi Date: Sun, 26 Apr 2015 18:23:40 -0400 Subject: [PATCH] Clean the errors that Flow v0.10.0 finds --- Examples/UIExplorer/ActivityIndicatorIOSExample.js | 1 + Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js | 2 +- Libraries/ReactIOS/ReactIOSMount.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Examples/UIExplorer/ActivityIndicatorIOSExample.js b/Examples/UIExplorer/ActivityIndicatorIOSExample.js index 4151609e0..9655d680c 100644 --- a/Examples/UIExplorer/ActivityIndicatorIOSExample.js +++ b/Examples/UIExplorer/ActivityIndicatorIOSExample.js @@ -57,6 +57,7 @@ var ToggleAnimatingActivityIndicator = React.createClass({ } }); +exports.displayName = (undefined: ?string); exports.framework = 'React'; exports.title = ''; exports.description = 'Animated loading indicators.'; diff --git a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js index 32945c434..2baaee21b 100644 --- a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js +++ b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js @@ -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}); } diff --git a/Libraries/ReactIOS/ReactIOSMount.js b/Libraries/ReactIOS/ReactIOSMount.js index 730031672..ab46d6fe9 100644 --- a/Libraries/ReactIOS/ReactIOSMount.js +++ b/Libraries/ReactIOS/ReactIOSMount.js @@ -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];