Use .flow files to tell Flow about react-native module

Reviewed By: jeffmo

Differential Revision: D2735788

fb-gh-sync-id: 7a15caa5effb89b902bba7e0031822f534813c52
This commit is contained in:
Gabe Levi
2015-12-08 14:47:09 -08:00
committed by facebook-github-bot-7
parent fe69ac95bd
commit 99bba8ca4e
4 changed files with 128 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ var MovieCell = React.createClass({
onShowUnderlay={this.props.onHighlight}
onHideUnderlay={this.props.onUnhighlight}>
<View style={styles.row}>
{/* $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 */}
<Image
source={getImageSource(this.props.movie, 'det')}
style={styles.cellImage}

View File

@@ -34,6 +34,9 @@ var MovieScreen = React.createClass({
return (
<ScrollView contentContainerStyle={styles.contentContainer}>
<View style={styles.mainSection}>
{/* $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 */}
<Image
source={getImageSource(this.props.movie, 'det')}
style={styles.detailsImage}

View File

@@ -130,7 +130,7 @@ const IsConnected = React.createClass({
const IsConnectionExpensive = React.createClass({
getInitialState() {
return {
isConnectionExpensive: null,
isConnectionExpensive: (null : ?boolean),
};
},
_checkIfExpensive() {