Skip to content

Commit 1295c00

Browse files
gabelevisahrens
authored andcommitted
[Flow] Fix or suppress last minute errors for 0.12.0
1 parent c3cad0a commit 1295c00

5 files changed

Lines changed: 20 additions & 19 deletions

File tree

Examples/Movies/MoviesApp.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ var SearchScreen = require('./SearchScreen');
2828
var MoviesApp = React.createClass({
2929
render: function() {
3030
return (
31-
/* $FlowIssue #7363964 - There's a bug in Flow where you cannot
32-
* omit a property or set it to undefined if it's inside a shape,
33-
* even if it isn't required */
3431
<NavigatorIOS
3532
style={styles.container}
3633
initialRoute={{

Examples/UIExplorer/ImageMocks.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,36 @@
1616
'use strict';
1717

1818
declare module 'image!story-background' {
19+
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
20+
* into a proptype shape */
1921
declare var uri: string;
2022
declare var isStatic: boolean;
2123
}
2224

2325
declare module 'image!uie_comment_highlighted' {
26+
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
27+
* into a proptype shape */
2428
declare var uri: string;
2529
declare var isStatic: boolean;
2630
}
2731

2832
declare module 'image!uie_comment_normal' {
33+
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
34+
* into a proptype shape */
2935
declare var uri: string;
3036
declare var isStatic: boolean;
3137
}
3238

3339
declare module 'image!uie_thumb_normal' {
40+
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
41+
* into a proptype shape */
3442
declare var uri: string;
3543
declare var isStatic: boolean;
3644
}
3745

3846
declare module 'image!uie_thumb_selected' {
47+
/* $FlowIssue #7387208 - There's a flow bug preventing this type from flowing
48+
* into a proptype shape */
3949
declare var uri: string;
4050
declare var isStatic: boolean;
4151
}

Examples/UIExplorer/MapViewExample.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ var MapViewExample = React.createClass({
159159
render() {
160160
return (
161161
<View>
162-
{/* $FlowIssue #7363964 - There's a bug in Flow where you cannot
163-
* omit a property or set it to undefined if it's inside a shape,
164-
* even if it isn't required */}
165162
<MapView
166163
style={styles.map}
167164
onRegionChange={this._onRegionChange}

Examples/UIExplorer/UIExplorerApp.ios.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ var UIExplorerApp = React.createClass({
4444
);
4545
}
4646
return (
47-
/* $FlowIssue #7363964 - There's a bug in Flow where you cannot
48-
* omit a property or set it to undefined if it's inside a shape,
49-
* even if it isn't required */
5047
<NavigatorIOS
5148
style={styles.container}
5249
initialRoute={{

Libraries/Components/Navigation/NavigatorIOS.ios.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ var NavigatorTransitionerIOS = React.createClass({
8383
type Route = {
8484
component: Function;
8585
title: string;
86-
passProps: Object;
87-
backButtonTitle: string;
88-
backButtonIcon: Object;
89-
leftButtonTitle: string;
90-
leftButtonIcon: Object;
91-
onLeftButtonPress: Function;
92-
rightButtonTitle: string;
93-
rightButtonIcon: Object;
94-
onRightButtonPress: Function;
95-
wrapperStyle: any;
86+
passProps?: Object;
87+
backButtonTitle?: string;
88+
backButtonIcon?: Object;
89+
leftButtonTitle?: string;
90+
leftButtonIcon?: Object;
91+
onLeftButtonPress?: Function;
92+
rightButtonTitle?: string;
93+
rightButtonIcon?: Object;
94+
onRightButtonPress?: Function;
95+
wrapperStyle?: any;
9696
};
9797

9898
type State = {

0 commit comments

Comments
 (0)