[Flow] Fix or suppress last minute errors for 0.12.0
This commit is contained in:
parent
c87158d5ee
commit
66c7511f73
|
@ -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={{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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={{
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue