Skip to content

Commit 04dfadf

Browse files
authored
Upgrade Flow in fbsource
Changelog: [Internal] Differential Revision: D133463507 Pull Request resolved: #60182
1 parent 05c0d3d commit 04dfadf

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ type ____FlattenStyleProp_Helper<
11781178
: TStyleProp extends ReadonlyArray<infer V>
11791179
? ____FlattenStyleProp_Helper<
11801180
V,
1181+
// $FlowFixMe[incompatible-use]
11811182
Depth extends number ? FlattenDepthLimiter[Depth] : 0,
11821183
>
11831184
: TStyleProp;

‎packages/rn-tester/js/examples/Image/ImageExample.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ class NetworkImageExample extends React.Component<
284284
<Image
285285
{...this.props}
286286
style={[styles.base, styles.visibleOverflow]}
287+
// $FlowFixMe[missing-local-annot]
287288
onLoadStart={e => this.setState({loading: true})}
288289
onError={e =>
289290
this.setState({error: e.nativeEvent.error, loading: false})

‎packages/rn-tester/js/examples/Layout/LayoutAnimationExample.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class AddRemoveExample extends React.Component<{...}, AddRemoveExampleState> {
6464
update: {type: 'easeInEaseOut', property: 'opacity'},
6565
delete: {type: 'easeInEaseOut', property: 'opacity'},
6666
},
67+
// $FlowFixMe[missing-local-annot]
6768
args => console.log('AddRemoveExample completed', args),
6869
);
6970
}
@@ -171,6 +172,7 @@ class ReparentingExample extends React.Component<
171172
update: {type: 'easeInEaseOut', property: 'opacity'},
172173
delete: {type: 'easeInEaseOut', property: 'opacity', duration: 1000},
173174
},
175+
// $FlowFixMe[missing-local-annot]
174176
args => console.log('ReparentingExample completed', args),
175177
);
176178
this._onPressToggle();
@@ -229,6 +231,7 @@ class CrossFadeExample extends React.Component<{...}, CrossFadeExampleState> {
229231
};
230232

231233
_onPressToggle = () => {
234+
// $FlowFixMe[missing-local-annot]
232235
LayoutAnimation.easeInEaseOut(args =>
233236
console.log('CrossFadeExample completed', args),
234237
);
@@ -289,6 +292,7 @@ class LayoutUpdateExample extends React.Component<
289292
type: LayoutAnimation.Types.linear,
290293
},
291294
},
295+
// $FlowFixMe[missing-local-annot]
292296
args => console.log('LayoutUpdateExample completed', args),
293297
);
294298

‎packages/virtualized-lists/Lists/VirtualizedList.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,7 @@ class VirtualizedList extends StateSafePureComponent<
16521652
this._notifyCrossOrientationChildren();
16531653
}
16541654
},
1655+
// $FlowFixMe[missing-local-annot]
16551656
error => {
16561657
console.warn(
16571658
"VirtualizedList: Encountered an error while measuring a list's" +

0 commit comments

Comments
 (0)