Skip to content

Commit 74d5d03

Browse files
Daniel Sainatifacebook-github-bot
Daniel Sainati
authored andcommittedJun 1, 2021
pre-suppress Flow errors in xplat ahead of 153 release
Summary: This pre-suppresses the 153 error diff ahead of its release, since it is large. Changelog: [Internal] Reviewed By: mroch Differential Revision: D28754374 fbshipit-source-id: 1806f53bc7d804644d434583a2dcd6da63d00328
1 parent d1ab032 commit 74d5d03

35 files changed

+101
-0
lines changed
 

‎IntegrationTests/TimersTest.js

+13
Original file line numberDiff line numberDiff line change
@@ -97,36 +97,46 @@ class TimersTest extends React.Component<Props, State> {
9797
}
9898

9999
componentDidMount() {
100+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
100101
this.setTimeout(this.testSetTimeout0, 1000);
101102
}
102103

103104
testSetTimeout0() {
105+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
104106
this.setTimeout(this.testSetTimeout1, 0);
105107
}
106108

107109
testSetTimeout1() {
110+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
108111
this.setTimeout(this.testSetTimeout50, 1);
109112
}
110113

111114
testSetTimeout50() {
115+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
112116
this.setTimeout(this.testRequestAnimationFrame, 50);
113117
}
114118

115119
testRequestAnimationFrame() {
120+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
116121
this.requestAnimationFrame(this.testSetInterval0);
117122
}
118123

119124
testSetInterval0() {
125+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
120126
this._nextTest = this.testSetInterval20;
127+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
121128
this._interval = this.setInterval(this._incrementInterval, 0);
122129
}
123130

124131
testSetInterval20() {
132+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
125133
this._nextTest = this.testSetImmediate;
134+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
126135
this._interval = this.setInterval(this._incrementInterval, 20);
127136
}
128137

129138
testSetImmediate() {
139+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
130140
this.setImmediate(this.testClearTimeout0);
131141
}
132142

@@ -139,6 +149,7 @@ class TimersTest extends React.Component<Props, State> {
139149
testClearTimeout30() {
140150
const timeout = this.setTimeout(() => this._fail('testClearTimeout30'), 30);
141151
this.clearTimeout(timeout);
152+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
142153
this.setTimeout(this.testClearMulti, 50);
143154
}
144155

@@ -156,6 +167,7 @@ class TimersTest extends React.Component<Props, State> {
156167
fails.forEach(timeout => this.clearTimeout(timeout));
157168
this.setTimeout(() => this.clearTimeout(delayClear), 20);
158169

170+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
159171
this.setTimeout(this.testOrdering, 50);
160172
}
161173

@@ -191,6 +203,7 @@ class TimersTest extends React.Component<Props, State> {
191203
),
192204
25,
193205
);
206+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
194207
this.setTimeout(this.done, 50);
195208
}
196209

‎Libraries/Animated/animations/Animation.js

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class Animation {
7171
this.__nativeId,
7272
animatedValue.__getNativeTag(),
7373
this.__getNativeAnimationConfig(),
74+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
7475
this.__debouncedOnEnd.bind(this),
7576
);
7677
} catch (e) {

‎Libraries/Animated/animations/DecayAnimation.js

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class DecayAnimation extends Animation {
8484
if (this._useNativeDriver) {
8585
this.__startNativeAnimation(animatedValue);
8686
} else {
87+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
8788
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
8889
}
8990
}
@@ -105,6 +106,7 @@ class DecayAnimation extends Animation {
105106

106107
this._lastValue = value;
107108
if (this.__active) {
109+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
108110
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
109111
}
110112
}

‎Libraries/Animated/animations/SpringAnimation.js

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ class SpringAnimation extends Animation {
344344
this.__debouncedOnEnd({finished: true});
345345
return;
346346
}
347+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
347348
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
348349
}
349350

‎Libraries/Animated/animations/TimingAnimation.js

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class TimingAnimation extends Animation {
117117
this.__startNativeAnimation(animatedValue);
118118
} else {
119119
this._animationFrame = requestAnimationFrame(
120+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
120121
this.onUpdate.bind(this),
121122
);
122123
}
@@ -149,6 +150,7 @@ class TimingAnimation extends Animation {
149150
(this._toValue - this._fromValue),
150151
);
151152
if (this.__active) {
153+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
152154
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
153155
}
154156
}

‎Libraries/Animated/nodes/AnimatedWithChildren.js

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class AnimatedWithChildren extends AnimatedNode {
7676
super.__callListeners(value);
7777
if (!this.__isNative) {
7878
for (const child of this._children) {
79+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
7980
if (child.__getValue) {
8081
child.__callListeners(child.__getValue());
8182
}

‎Libraries/BatchedBridge/MessageQueue.js

+5
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,16 @@ class MessageQueue {
7272
}
7373

7474
// $FlowFixMe[cannot-write]
75+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
7576
this.callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue.bind(
7677
this,
7778
);
7879
// $FlowFixMe[cannot-write]
80+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
7981
this.flushedQueue = this.flushedQueue.bind(this);
8082

8183
// $FlowFixMe[cannot-write]
84+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
8285
this.invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue.bind(
8386
this,
8487
);
@@ -153,6 +156,8 @@ class MessageQueue {
153156
module = getValue();
154157
getValue = null;
155158
}
159+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
160+
* this parameters */
156161
return module;
157162
};
158163
}

‎Libraries/BatchedBridge/NativeModules.js

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ function genMethod(moduleID: number, methodID: number, type: MethodType) {
101101
if (type === 'promise') {
102102
fn = function promiseMethodWrapper(...args: Array<mixed>) {
103103
// In case we reject, capture a useful stack trace here.
104+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
105+
* this parameters */
104106
const enqueueingFrameError: ExtendedError = new Error();
105107
return new Promise((resolve, reject) => {
106108
BatchedBridge.enqueueNativeCall(
@@ -166,6 +168,8 @@ function updateErrorWithErrorData(
166168
errorData: {message: string, ...},
167169
error: ExtendedError,
168170
): ExtendedError {
171+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
172+
* parameters */
169173
return Object.assign(error, errorData || {});
170174
}
171175

‎Libraries/Components/ScrollView/ScrollView.js

+2
Original file line numberDiff line numberDiff line change
@@ -988,13 +988,15 @@ class ScrollView extends React.Component<Props, State> {
988988
UIManager.measureLayout(
989989
nodeHandle,
990990
ReactNative.findNodeHandle(this),
991+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
991992
this._textInputFocusError,
992993
this._inputMeasureAndScrollToKeyboard,
993994
);
994995
} else {
995996
nodeHandle.measureLayout(
996997
this._innerViewRef,
997998
this._inputMeasureAndScrollToKeyboard,
999+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
9981000
this._textInputFocusError,
9991001
);
10001002
}

‎Libraries/Core/ExceptionsManager.js

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ function handleException(e: mixed, isFatal: boolean) {
171171
}
172172
try {
173173
inExceptionHandler = true;
174+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
175+
* parameters */
174176
reportException(error, isFatal, /*reportToConsole*/ true);
175177
} finally {
176178
inExceptionHandler = false;
@@ -238,6 +240,8 @@ function reactConsoleErrorHandler(...args) {
238240
}
239241

240242
reportException(
243+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
244+
* parameters */
241245
error,
242246
false, // isFatal
243247
false, // reportToConsole

‎Libraries/Core/ReactFiberErrorDialog.js

+6
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ const ReactFiberErrorDialog = {
3030
// Typically, `errorValue` should be an error. However, other values such as
3131
// strings (or even null) are sometimes thrown.
3232
if (errorValue instanceof Error) {
33+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
34+
* this parameters */
3335
error = (errorValue: ExtendedError);
3436
} else if (typeof errorValue === 'string') {
37+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
38+
* this parameters */
3539
error = (new SyntheticError(errorValue): ExtendedError);
3640
} else {
41+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
42+
* this parameters */
3743
error = (new SyntheticError('Unspecified error'): ExtendedError);
3844
}
3945
try {

‎Libraries/EventEmitter/NativeEventEmitter.js

+2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ export default class NativeEventEmitter<TEventToArgsMap: {...}>
4848
}
4949

5050
const hasAddListener =
51+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
5152
!!nativeModule && typeof nativeModule.addListener === 'function';
5253
const hasRemoveListeners =
54+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
5355
!!nativeModule && typeof nativeModule.removeListeners === 'function';
5456

5557
if (nativeModule && hasAddListener && hasRemoveListeners) {

‎Libraries/Inspector/Inspector.js

+6
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ class Inspector extends React.Component<
307307
{this.state.inspecting && (
308308
<InspectorOverlay
309309
inspected={this.state.inspected}
310+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
310311
onTouchPoint={this.onTouchPoint.bind(this)}
311312
/>
312313
)}
@@ -315,15 +316,20 @@ class Inspector extends React.Component<
315316
devtoolsIsOpen={!!this.state.devtoolsAgent}
316317
inspecting={this.state.inspecting}
317318
perfing={this.state.perfing}
319+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
318320
setPerfing={this.setPerfing.bind(this)}
321+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
319322
setInspecting={this.setInspecting.bind(this)}
320323
inspected={this.state.inspected}
321324
hierarchy={this.state.hierarchy}
322325
selection={this.state.selection}
326+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
323327
setSelection={this.setSelection.bind(this)}
324328
touchTargeting={PressabilityDebug.isEnabled()}
329+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
325330
setTouchTargeting={this.setTouchTargeting.bind(this)}
326331
networking={this.state.networking}
332+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
327333
setNetworking={this.setNetworking.bind(this)}
328334
/>
329335
</View>

‎Libraries/Interaction/InteractionManager.js

+3
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ const InteractionManager = {
110110
_taskQueue.enqueueTasks(tasks);
111111
});
112112
return {
113+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
113114
then: promise.then.bind(promise),
114115
done: (...args) => {
116+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
115117
if (promise.done) {
116118
return promise.done(...args);
117119
} else {
@@ -148,6 +150,7 @@ const InteractionManager = {
148150
_deleteInteractionSet.add(handle);
149151
},
150152

153+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
151154
addListener: (_emitter.addListener.bind(_emitter): $FlowFixMe),
152155

153156
/**

‎Libraries/Lists/VirtualizedSectionList.js

+2
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@ function ItemWithSeparator(props: ItemWithSeparatorProps): React.Node {
603603
);
604604
}
605605

606+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
607+
* parameters */
606608
module.exports = (VirtualizedSectionList: React.AbstractComponent<
607609
React.ElementConfig<typeof VirtualizedSectionList>,
608610
$ReadOnly<{

‎Libraries/LogBox/Data/LogBoxData.js

+2
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ export function withSubscription(
407407
}
408408

409409
componentDidCatch(err: Error, errorInfo: {componentStack: string, ...}) {
410+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
411+
* this parameters */
410412
reportLogBoxError(err, errorInfo.componentStack);
411413
}
412414

‎Libraries/LogBox/Data/__tests__/LogBoxData-test.js

+6
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ describe('LogBoxData', () => {
648648

649649
it('reportLogBoxError creates a native redbox with a componentStack', () => {
650650
LogBoxData.reportLogBoxError(
651+
/* $FlowFixMe[class-object-subtyping] added when improving typing for
652+
* this parameters */
651653
new Error('Simulated Error'),
652654
' in Component (file.js:1)',
653655
);
@@ -661,6 +663,8 @@ describe('LogBoxData', () => {
661663
});
662664

663665
it('reportLogBoxError creates a native redbox without a componentStack', () => {
666+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
667+
* parameters */
664668
LogBoxData.reportLogBoxError(new Error('Simulated Error'));
665669

666670
const receivedError = ExceptionsManager.handleException.mock.calls[0][0];
@@ -672,6 +676,8 @@ describe('LogBoxData', () => {
672676
});
673677

674678
it('reportLogBoxError creates an error message that is also ignored', () => {
679+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
680+
* parameters */
675681
LogBoxData.reportLogBoxError(new Error('Simulated Error'));
676682

677683
const receivedErrorMessage =

‎Libraries/Modal/Modal.js

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ class Modal extends React.Component<Props> {
261261
statusBarTranslucent={this.props.statusBarTranslucent}
262262
identifier={this._identifier}
263263
style={styles.modal}
264+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
264265
onStartShouldSetResponder={this._shouldSetResponder}
265266
supportedOrientations={this.props.supportedOrientations}
266267
onOrientationChange={this.props.onOrientationChange}>

‎Libraries/Network/XMLHttpRequest.js

+1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ class XMLHttpRequest extends (EventTarget(...XHR_EVENTS): any) {
551551
nativeResponseType,
552552
incrementalEvents,
553553
this.timeout,
554+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
554555
this.__didCreateRequest.bind(this),
555556
this.withCredentials,
556557
);

‎Libraries/Utilities/HMRClient.js

+2
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ function showCompileError() {
323323
const message = currentCompileErrorMessage;
324324
currentCompileErrorMessage = null;
325325

326+
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
327+
* parameters */
326328
const error: ExtendedError = new Error(message);
327329
// Symbolicating compile errors is wasted effort
328330
// because the stack trace is meaningless:

‎Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function deepFreezeAndThrowOnMutationInDev<T: {...} | Array<mixed>>(
4242

4343
// $FlowFixMe[not-an-object] `object` can be an array, but Object.keys works with arrays too
4444
const keys = Object.keys((object: {...} | Array<mixed>));
45+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
4546
const hasOwnProperty = Object.prototype.hasOwnProperty;
4647

4748
for (let i = 0; i < keys.length; i++) {

‎Libraries/YellowBox/__tests__/YellowBoxDeprecated-test.js

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('YellowBox', () => {
2525
.mockImplementation(() => {});
2626
YellowBox.ignoreWarnings(['foo']);
2727

28+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
2829
expect(LogBox.ignoreLogs).toBeCalledWith(['foo']);
2930
expect(consoleWarn).toBeCalledWith(
3031
'YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.',
@@ -38,6 +39,7 @@ describe('YellowBox', () => {
3839
.mockImplementation(() => {});
3940
YellowBox.install();
4041

42+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
4143
expect(LogBox.install).toBeCalled();
4244
expect(consoleWarn).toBeCalledWith(
4345
'YellowBox has been replaced with LogBox. Please call LogBox.install() instead.',
@@ -51,6 +53,7 @@ describe('YellowBox', () => {
5153
.mockImplementation(() => {});
5254
YellowBox.uninstall();
5355

56+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
5457
expect(LogBox.uninstall).toBeCalled();
5558
expect(consoleWarn).toBeCalledWith(
5659
'YellowBox has been replaced with LogBox. Please call LogBox.uninstall() instead.',

‎Libraries/promiseRejectionTrackingOptions.js

+2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ let rejectionTrackingOptions: $Call<ExtractOptionsType, enable> = {
1818
let message: string;
1919
let stack: ?string;
2020

21+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
2122
const stringValue = Object.prototype.toString.call(rejection);
2223
if (stringValue === '[object Error]') {
24+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
2325
message = Error.prototype.toString.call(rejection);
2426
const error: Error = (rejection: $FlowFixMe);
2527
stack = error.stack;

‎packages/react-native-codegen/src/generators/components/CppHelpers.js

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function getImports(
9393

9494
if (typeAnnotation.type === 'ObjectTypeAnnotation') {
9595
const objectImports = getImports(typeAnnotation.properties);
96+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
9697
objectImports.forEach(imports.add, imports);
9798
}
9899
});

‎packages/react-native-codegen/src/generators/components/GeneratePropsCpp.js

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ module.exports = {
122122
const extendString = getClassExtendString(component);
123123

124124
const imports = getImports(component.props);
125+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
125126
imports.forEach(allImports.add, allImports);
126127

127128
const replacedTemplate = componentTemplate

‎packages/react-native-codegen/src/generators/components/GeneratePropsH.js

+6
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,19 @@ function getLocalImports(
535535
const objectProps = typeAnnotation.elementType.properties;
536536
const objectImports = getImports(objectProps);
537537
const localImports = getLocalImports(objectProps);
538+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
538539
objectImports.forEach(imports.add, imports);
540+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
539541
localImports.forEach(imports.add, imports);
540542
}
541543

542544
if (typeAnnotation.type === 'ObjectTypeAnnotation') {
543545
imports.add('#include <react/renderer/core/propsConversions.h>');
544546
const objectImports = getImports(typeAnnotation.properties);
545547
const localImports = getLocalImports(typeAnnotation.properties);
548+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
546549
objectImports.forEach(imports.add, imports);
550+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
547551
localImports.forEach(imports.add, imports);
548552
}
549553
});
@@ -796,7 +800,9 @@ module.exports = {
796800
const extendsImports = getExtendsImports(component.extendsProps);
797801
const imports = getLocalImports(component.props);
798802

803+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
799804
extendsImports.forEach(allImports.add, allImports);
805+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
800806
imports.forEach(allImports.add, allImports);
801807

802808
const replacedTemplate = classTemplate

‎packages/react-native-codegen/src/generators/components/GenerateTests.js

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ module.exports = {
167167
const name = `${componentName}Props`;
168168

169169
const imports = getImports(component.props);
170+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
170171
imports.forEach(allImports.add, allImports);
171172

172173
return generateTestsString(name, component);

‎packages/rn-tester/js/examples/Alert/AlertIOSExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class PromptOptions extends React.Component<Props, State> {
3434

3535
/* $FlowFixMe[cannot-write] this seems to be a Flow bug, `saveResponse` is
3636
* defined below */
37+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
3738
this.saveResponse = this.saveResponse.bind(this);
3839

3940
this.customButtons = [
@@ -62,6 +63,7 @@ class PromptOptions extends React.Component<Props, State> {
6263

6364
<TouchableHighlight
6465
style={styles.wrapper}
66+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
6567
onPress={() => Alert.prompt('Type a value', null, this.saveResponse)}>
6668
<View style={styles.button}>
6769
<Text>prompt with title & callback</Text>
@@ -101,6 +103,7 @@ class PromptOptions extends React.Component<Props, State> {
101103
Alert.prompt(
102104
'Type a value',
103105
null,
106+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
104107
this.saveResponse,
105108
undefined,
106109
'Default value',

‎packages/rn-tester/js/examples/Animated/AnimatedGratuitousApp/AnExApp.js

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ class AnExApp extends React.Component<any, any> {
256256
openVal={this.state.openVal}
257257
onLayout={onLayout}
258258
restLayout={this.state.restLayouts[idx]}
259+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
259260
onActivate={this.setState.bind(this, {
260261
activeKey: key,
261262
activeInitialLayout: this.state.restLayouts[idx],

‎packages/rn-tester/js/examples/MultiColumn/MultiColumnExample.js

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class MultiColumnExample extends React.PureComponent<
107107
ListFooterComponent={FooterComponent}
108108
ListHeaderComponent={HeaderComponent}
109109
getItemLayout={
110+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
110111
this.state.fixedHeight ? this._getItemLayout : undefined
111112
}
112113
data={filteredData}

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

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class RootViewSizeFlexibilityExampleApp extends React.Component<
3333
: styles.smallContainer;
3434

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

‎packages/rn-tester/js/examples/SectionList/SectionListExample.js

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ function SectionListExample(Props: {...}): React.Element<typeof RNTesterPage> {
187187

188188
const ref = React.useRef<?React.ElementRef<typeof SectionList>>(null);
189189
const scrollToLocation = (sectionIndex, itemIndex) => {
190+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
190191
if (ref != null && ref.current?.scrollToLocation != null) {
191192
ref.current.scrollToLocation({sectionIndex, itemIndex});
192193
}

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

+8
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ class SelectionExample extends React.Component<
427427
testID={`${this.props.testID}-text-input`}
428428
multiline={this.props.multiline}
429429
onChangeText={value => this.setState({value})}
430+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
430431
onSelectionChange={this.onSelectionChange.bind(this)}
431432
ref={textInput => (this._textInput = textInput)}
432433
selection={this.state.selection}
@@ -441,20 +442,27 @@ class SelectionExample extends React.Component<
441442
</Text>
442443
<Text
443444
testID={`${this.props.testID}-cursor-start`}
445+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
444446
onPress={this.placeAt.bind(this, 0)}>
445447
Place at Start (0, 0)
446448
</Text>
447449
<Text
448450
testID={`${this.props.testID}-cursor-end`}
451+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
449452
onPress={this.placeAt.bind(this, length)}>
450453
Place at End ({length}, {length})
451454
</Text>
455+
{/* $FlowFixMe[method-unbinding] added when improving typing for this
456+
* parameters */}
452457
<Text onPress={this.placeAtRandom.bind(this)}>Place at Random</Text>
453458
<Text
454459
testID={`${this.props.testID}-select-all`}
460+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
455461
onPress={this.select.bind(this, 0, length)}>
456462
Select All
457463
</Text>
464+
{/* $FlowFixMe[method-unbinding] added when improving typing for this
465+
* parameters */}
458466
<Text onPress={this.selectRandom.bind(this)}>Select Random</Text>
459467
</View>
460468
</View>

‎packages/rn-tester/js/examples/Timer/TimerExample.js

+4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ class RequestIdleCallbackTester extends React.Component<
4444
render() {
4545
return (
4646
<View>
47+
{/* $FlowFixMe[method-unbinding] added when improving typing for this
48+
* parameters */}
4749
<RNTesterButton onPress={this._run.bind(this, false)}>
4850
Run requestIdleCallback
4951
</RNTesterButton>
5052

53+
{/* $FlowFixMe[method-unbinding] added when improving typing for this
54+
* parameters */}
5155
<RNTesterButton onPress={this._run.bind(this, true)}>
5256
Burn CPU inside of requestIdleCallback
5357
</RNTesterButton>

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

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class XHRExampleOnTimeOut extends React.Component<any, any> {
6969
) : (
7070
<TouchableHighlight
7171
style={styles.wrapper}
72+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
7273
onPress={this.loadTimeOutRequest.bind(this)}>
7374
<View style={styles.button}>
7475
<Text>Make Time Out Request</Text>

0 commit comments

Comments
 (0)
Please sign in to comment.