From b6e6dae6ba3395d6aa062f3a69ad01fca048b849 Mon Sep 17 00:00:00 2001 From: Gabe Levi Date: Mon, 27 Apr 2015 15:18:37 -0700 Subject: [PATCH] [Flow] Properly fix new errors as of Flow v0.10. --- Examples/UIExplorer/ActivityIndicatorIOSExample.js | 1 + Examples/UIExplorer/UIExplorerList.js | 2 +- Libraries/Components/TabBarIOS/TabBarItemIOS.ios.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/Examples/UIExplorer/UIExplorerList.js b/Examples/UIExplorer/UIExplorerList.js index df3c9bc7d..730106177 100644 --- a/Examples/UIExplorer/UIExplorerList.js +++ b/Examples/UIExplorer/UIExplorerList.js @@ -11,7 +11,7 @@ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * - * --flow disabled-- + * @flow */ 'use strict'; diff --git a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js index bb2a8e991..b27e22d4b 100644 --- a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js +++ b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js @@ -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}); }