Skip to content

Commit 59257d6

Browse files
jeffmofacebook-github-bot
authored andcommitted
fbobjc
Reviewed By: gabelevi Differential Revision: D4652687 fbshipit-source-id: 6069c8bc24f0b88da3537ada877cdb7d1d4eccfd
1 parent e3ef695 commit 59257d6

File tree

24 files changed

+53
-8
lines changed

24 files changed

+53
-8
lines changed

.flowconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ suppress_type=$FlowIssue
4141
suppress_type=$FlowFixMe
4242
suppress_type=$FixMe
4343

44-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
45-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
44+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-1]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
45+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-1]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
4646
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
4747
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
4848

4949
unsafe.enable_getters_and_setters=true
5050

5151
[version]
52-
^0.40.0
52+
^0.41.0

Examples/UIExplorer/js/CameraRollView.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ var propTypes = {
8181
};
8282

8383
var CameraRollView = React.createClass({
84+
// $FlowFixMe(>=0.41.0)
8485
propTypes: propTypes,
8586

8687
getDefaultProps: function(): Object {
@@ -123,6 +124,7 @@ var CameraRollView = React.createClass({
123124
rendererChanged: function() {
124125
var ds = new ListView.DataSource({rowHasChanged: this._rowHasChanged});
125126
this.state.dataSource = ds.cloneWithRows(
127+
// $FlowFixMe(>=0.41.0)
126128
groupByEveryN(this.state.assets, this.props.imagesPerRow)
127129
);
128130
},
@@ -209,6 +211,7 @@ var CameraRollView = React.createClass({
209211
if (image === null) {
210212
return null;
211213
}
214+
// $FlowFixMe(>=0.41.0)
212215
return this.props.renderImage(image);
213216
});
214217

@@ -231,6 +234,7 @@ var CameraRollView = React.createClass({
231234
newState.lastCursor = data.page_info.end_cursor;
232235
newState.assets = this.state.assets.concat(assets);
233236
newState.dataSource = this.state.dataSource.cloneWithRows(
237+
// $FlowFixMe(>=0.41.0)
234238
groupByEveryN(newState.assets, this.props.imagesPerRow)
235239
);
236240
}

Libraries/CameraRoll/CameraRoll.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ var getPhotosParamChecker = createStrictShapeTypeChecker({
8181
* Shape of the return value of the `getPhotos` function.
8282
*/
8383
var getPhotosReturnChecker = createStrictShapeTypeChecker({
84+
// $FlowFixMe(>=0.41.0)
8485
edges: ReactPropTypes.arrayOf(createStrictShapeTypeChecker({
8586
node: createStrictShapeTypeChecker({
8687
type: ReactPropTypes.string.isRequired,

Libraries/Components/DatePicker/DatePickerIOS.ios.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type Event = Object;
3535
* the user's change will be reverted immediately to reflect `props.date` as the
3636
* source of truth.
3737
*/
38+
// $FlowFixMe(>=0.41.0)
3839
const DatePickerIOS = React.createClass({
3940
// TOOD: Put a better type for _picker
4041
_picker: (undefined: ?$FlowFixMe),
@@ -102,6 +103,7 @@ const DatePickerIOS = React.createClass({
102103
this.props.onDateChange && this.props.onDateChange(
103104
new Date(nativeTimeStamp)
104105
);
106+
// $FlowFixMe(>=0.41.0)
105107
this.props.onChange && this.props.onChange(event);
106108

107109
// We expect the onChange* handlers to be in charge of updating our `date`

Libraries/Components/Keyboard/KeyboardAvoidingView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const viewRef = 'VIEW';
5252
* It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard.
5353
* It can automatically adjust either its position or bottom padding based on the position of the keyboard.
5454
*/
55+
// $FlowFixMe(>=0.41.0)
5556
const KeyboardAvoidingView = React.createClass({
5657
mixins: [TimerMixin],
5758

@@ -153,6 +154,7 @@ const KeyboardAvoidingView = React.createClass({
153154
},
154155

155156
render(): React.Element<any> {
157+
// $FlowFixMe(>=0.41.0)
156158
const {behavior, children, style, ...props} = this.props;
157159

158160
switch (behavior) {

Libraries/Components/MapView/MapView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export type AnnotationDragState = $Enum<{
8484
*
8585
*/
8686

87+
// $FlowFixMe(>=0.41.0)
8788
const MapView = React.createClass({
8889

8990
mixins: [NativeMethodsMixin],
@@ -519,6 +520,7 @@ const MapView = React.createClass({
519520

520521
// followUserLocation defaults to true if showUserLocation is set
521522
if (followUserLocation === undefined) {
523+
// $FlowFixMe(>=0.41.0)
522524
followUserLocation = this.props.showUserLocation;
523525
}
524526

Libraries/Components/Navigation/NavigatorIOS.ios.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ var NavigatorIOS = React.createClass({
884884
<NavigatorTransitionerIOS
885885
ref={TRANSITIONER_REF}
886886
style={styles.transitioner}
887+
// $FlowFixMe(>=0.41.0)
887888
vertical={this.props.vertical}
888889
requestedTopOfStack={this.state.requestedTopOfStack}
889890
onNavigationComplete={this._handleNavigationComplete}
@@ -914,6 +915,7 @@ var NavigatorIOS = React.createClass({
914915

915916
render: function() {
916917
return (
918+
// $FlowFixMe(>=0.41.0)
917919
<View style={this.props.style}>
918920
{this._renderNavigationStackItems()}
919921
</View>

Libraries/Components/Picker/Picker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class Picker extends React.Component {
6969
mode: MODE_DIALOG,
7070
};
7171

72+
// $FlowFixMe(>=0.41.0)
7273
static propTypes = {
7374
...View.propTypes,
7475
style: pickerStyleType,

Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var PropTypes = React.PropTypes;
2424
/**
2525
* Use `ProgressViewIOS` to render a UIProgressView on iOS.
2626
*/
27+
// $FlowFixMe(>=0.41.0)
2728
var ProgressViewIOS = React.createClass({
2829
mixins: [NativeMethodsMixin],
2930

Libraries/Components/RefreshControl/RefreshControl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ if (Platform.OS === 'android') {
7070
* __Note:__ `refreshing` is a controlled prop, this is why it needs to be set to true
7171
* in the `onRefresh` function otherwise the refresh indicator will stop immediately.
7272
*/
73+
// $FlowFixMe(>=0.41.0)
7374
const RefreshControl = React.createClass({
7475
statics: {
7576
SIZE: RefreshLayoutConsts.SIZE,

0 commit comments

Comments
 (0)