Skip to content

Commit 2fd8fd6

Browse files
SamChou19815meta-codesync[bot]
authored andcommitted
Upgrade Flow in fbsource (#59212)
Summary: Pull Request resolved: #59212 Upgrade Flow. Changelog: [Internal] ___ landed-with-radar-review Differential Revision: D126215247 fbshipit-source-id: ab17a6108eb2e815b69e7295b724479914bff652
1 parent f1f516e commit 2fd8fd6

6 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/react-native/Libraries/Animated/animations/DecayAnimation.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export default class DecayAnimation extends Animation {
110110
this._lastValue = value;
111111
if (this.__active) {
112112
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
113+
// $FlowFixMe[invalid-tuple-arity]
113114
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
114115
}
115116
}

‎packages/react-native/Libraries/Animated/animations/SpringAnimation.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ export default class SpringAnimation extends Animation {
361361
return;
362362
}
363363
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
364+
// $FlowFixMe[invalid-tuple-arity]
364365
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
365366
}
366367

‎packages/react-native/Libraries/Animated/animations/TimingAnimation.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export default class TimingAnimation extends Animation {
171171
);
172172
if (this.__active) {
173173
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
174+
// $FlowFixMe[invalid-tuple-arity]
174175
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
175176
}
176177
}

‎packages/rn-tester/js/examples/RootViewSizeFlexibilityExample/RootViewSizeFlexibilityExampleApp.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class RootViewSizeFlexibilityExampleApp extends React.Component<
3333

3434
return (
3535
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
36+
// $FlowFixMe[invalid-tuple-arity]
3637
<TouchableHighlight onPress={this._onPressButton.bind(this)}>
3738
<View style={viewStyle}>
3839
<View style={styles.center}>

‎packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ class SelectionExample extends React.Component<
505505
</RNTesterText>
506506
{/* $FlowFixMe[method-unbinding] added when improving typing for this
507507
* parameters */}
508+
{/* $FlowFixMe[invalid-tuple-arity] */}
508509
<RNTesterText onPress={this.placeAtRandom.bind(this)}>
509510
Place at Random
510511
</RNTesterText>
@@ -516,6 +517,7 @@ class SelectionExample extends React.Component<
516517
</RNTesterText>
517518
{/* $FlowFixMe[method-unbinding] added when improving typing for this
518519
* parameters */}
520+
{/* $FlowFixMe[invalid-tuple-arity] */}
519521
<RNTesterText onPress={this.selectRandom.bind(this)}>
520522
Select Random
521523
</RNTesterText>

‎packages/rn-tester/js/examples/XHR/XHRExampleOnTimeOut.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class XHRExampleOnTimeOut extends React.Component<any, any> {
7171
<TouchableHighlight
7272
style={styles.wrapper}
7373
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
74+
// $FlowFixMe[invalid-tuple-arity]
7475
onPress={this.loadTimeOutRequest.bind(this)}>
7576
<View style={styles.button}>
7677
<Text>Make Time Out Request</Text>

0 commit comments

Comments
 (0)