[Flow] Fix or suppress last minute errors for 0.12.0

This commit is contained in:
Gabe Levi 2015-06-11 18:39:46 -07:00
parent c87158d5ee
commit 66c7511f73
5 changed files with 20 additions and 19 deletions

View File

@ -28,9 +28,6 @@ var SearchScreen = require('./SearchScreen');
var MoviesApp = React.createClass({
render: function() {
return (
/* $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 */
<NavigatorIOS
style={styles.container}
initialRoute={{

View File

@ -16,26 +16,36 @@
'use strict';
declare module 'image!story-background' {
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
* into a proptype shape */
declare var uri: string;
declare var isStatic: boolean;
}
declare module 'image!uie_comment_highlighted' {
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
* into a proptype shape */
declare var uri: string;
declare var isStatic: boolean;
}
declare module 'image!uie_comment_normal' {
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
* into a proptype shape */
declare var uri: string;
declare var isStatic: boolean;
}
declare module 'image!uie_thumb_normal' {
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
* into a proptype shape */
declare var uri: string;
declare var isStatic: boolean;
}
declare module 'image!uie_thumb_selected' {
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
* into a proptype shape */
declare var uri: string;
declare var isStatic: boolean;
}

View File

@ -159,9 +159,6 @@ var MapViewExample = React.createClass({
render() {
return (
<View>
{/* $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 */}
<MapView
style={styles.map}
onRegionChange={this._onRegionChange}

View File

@ -44,9 +44,6 @@ var UIExplorerApp = React.createClass({
);
}
return (
/* $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 */
<NavigatorIOS
style={styles.container}
initialRoute={{

View File

@ -83,16 +83,16 @@ var NavigatorTransitionerIOS = React.createClass({
type Route = {
component: Function;
title: string;
passProps: Object;
backButtonTitle: string;
backButtonIcon: Object;
leftButtonTitle: string;
leftButtonIcon: Object;
onLeftButtonPress: Function;
rightButtonTitle: string;
rightButtonIcon: Object;
onRightButtonPress: Function;
wrapperStyle: any;
passProps?: Object;
backButtonTitle?: string;
backButtonIcon?: Object;
leftButtonTitle?: string;
leftButtonIcon?: Object;
onLeftButtonPress?: Function;
rightButtonTitle?: string;
rightButtonIcon?: Object;
onRightButtonPress?: Function;
wrapperStyle?: any;
};
type State = {