From 99bba8ca4e5731f6442fc0bf626b8ce2dd6127bb Mon Sep 17 00:00:00 2001 From: Gabe Levi Date: Tue, 8 Dec 2015 14:47:09 -0800 Subject: [PATCH] Use .flow files to tell Flow about react-native module Reviewed By: jeffmo Differential Revision: D2735788 fb-gh-sync-id: 7a15caa5effb89b902bba7e0031822f534813c52 --- Examples/Movies/MovieCell.js | 3 + Examples/Movies/MovieScreen.js | 3 + Examples/UIExplorer/NetInfoExample.js | 2 +- Libraries/react-native/react-native.js.flow | 121 ++++++++++++++++++++ 4 files changed, 128 insertions(+), 1 deletion(-) create mode 100644 Libraries/react-native/react-native.js.flow diff --git a/Examples/Movies/MovieCell.js b/Examples/Movies/MovieCell.js index 85c616d329c..62062cb2af2 100644 --- a/Examples/Movies/MovieCell.js +++ b/Examples/Movies/MovieCell.js @@ -45,6 +45,9 @@ var MovieCell = React.createClass({ onShowUnderlay={this.props.onHighlight} onHideUnderlay={this.props.onUnhighlight}> + {/* $FlowIssue #7363964 - There's a bug in Flow where you cannot + * omit a property or set it to undefined if it's inside a shape, + * even if it isn't required */} + {/* $FlowIssue #7363964 - There's a bug in Flow where you cannot + * omit a property or set it to undefined if it's inside a shape, + * even if it isn't required */}