Skip to content

Commit

Permalink
Deploy 0.186.0 to xplat
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: SamChou19815

Differential Revision: D39185318

fbshipit-source-id: ca154a5c43eef3e30d5eab382947eedf30e9e850
  • Loading branch information
pieterv authored and facebook-github-bot committed Aug 31, 2022
1 parent afad68f commit 3db19b4
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ untyped-import
untyped-type-import

[version]
^0.185.1
^0.186.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ untyped-import
untyped-type-import

[version]
^0.185.1
^0.186.0
1 change: 1 addition & 0 deletions Libraries/Animated/nodes/AnimatedValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class AnimatedValue extends AnimatedWithChildren {
_animation: ?Animation;
_tracking: ?AnimatedTracking;

// $FlowFixMe[missing-local-annot]
constructor(value: number, config?: ?AnimatedValueConfig) {
super();
if (typeof value !== 'number') {
Expand Down
1 change: 1 addition & 0 deletions Libraries/Blob/URL.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export class URL {
// Do nothing.
}

// $FlowFixMe[missing-local-annot]
constructor(url: string, base: string | URL) {
let baseUrl = null;
if (!base || validateBaseUrl(url)) {
Expand Down
3 changes: 2 additions & 1 deletion Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ const AccessibilityInfo: AccessibilityInfoType = {
const deviceEventName = EventNames.get(eventName);
return deviceEventName == null
? {remove(): void {}}
: RCTDeviceEventEmitter.addListener(deviceEventName, handler);
: // $FlowFixMe[incompatible-call]
RCTDeviceEventEmitter.addListener(deviceEventName, handler);
},

/**
Expand Down
2 changes: 2 additions & 0 deletions Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
);
return (
// $FlowFixMe[prop-missing] Invalid prop usage
// $FlowFixMe[incompatible-use]
<ScrollView
{...props}
refreshControl={
Expand All @@ -1048,6 +1049,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
);
} else {
// $FlowFixMe[prop-missing] Invalid prop usage
// $FlowFixMe[incompatible-use]
return <ScrollView {...props} />;
}
};
Expand Down
2 changes: 2 additions & 0 deletions Libraries/Lists/VirtualizedList_EXPERIMENTAL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
);
return (
// $FlowFixMe[prop-missing] Invalid prop usage
// $FlowFixMe[incompatible-use]
<ScrollView
{...props}
refreshControl={
Expand All @@ -1244,6 +1245,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
);
} else {
// $FlowFixMe[prop-missing] Invalid prop usage
// $FlowFixMe[incompatible-use]
return <ScrollView {...props} />;
}
};
Expand Down
1 change: 1 addition & 0 deletions Libraries/Network/RCTNetworking.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const RCTNetworking = {
listener: (...$ElementType<RCTNetworkingEventDefinitions, K>) => mixed,
context?: mixed,
): EventSubscription {
// $FlowFixMe[incompatible-call]
return RCTDeviceEventEmitter.addListener(eventType, listener, context);
},

Expand Down
6 changes: 6 additions & 0 deletions Libraries/Utilities/Platform.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Platform = {
OS: 'android',
// $FlowFixMe[unsafe-getters-setters]
get Version(): number {
// $FlowFixMe[object-this-reference]
return this.constants.Version;
},
// $FlowFixMe[unsafe-getters-setters]
Expand All @@ -43,20 +44,25 @@ const Platform = {
Brand: string,
Manufacturer: string,
|} {
// $FlowFixMe[object-this-reference]
if (this.__constants == null) {
// $FlowFixMe[object-this-reference]
this.__constants = NativePlatformConstantsAndroid.getConstants();
}
// $FlowFixMe[object-this-reference]
return this.__constants;
},
// $FlowFixMe[unsafe-getters-setters]
get isTesting(): boolean {
if (__DEV__) {
// $FlowFixMe[object-this-reference]
return this.constants.isTesting;
}
return false;
},
// $FlowFixMe[unsafe-getters-setters]
get isTV(): boolean {
// $FlowFixMe[object-this-reference]
return this.constants.uiMode === 'tv';
},
select: <A, N, D>(spec: PlatformSelectSpec<A, N, D>): A | N | D =>
Expand Down
7 changes: 7 additions & 0 deletions Libraries/Utilities/Platform.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Platform = {
OS: 'ios',
// $FlowFixMe[unsafe-getters-setters]
get Version(): string {
// $FlowFixMe[object-this-reference]
return this.constants.osVersion;
},
// $FlowFixMe[unsafe-getters-setters]
Expand All @@ -38,22 +39,28 @@ const Platform = {
|},
systemName: string,
|} {
// $FlowFixMe[object-this-reference]
if (this.__constants == null) {
// $FlowFixMe[object-this-reference]
this.__constants = NativePlatformConstantsIOS.getConstants();
}
// $FlowFixMe[object-this-reference]
return this.__constants;
},
// $FlowFixMe[unsafe-getters-setters]
get isPad(): boolean {
// $FlowFixMe[object-this-reference]
return this.constants.interfaceIdiom === 'pad';
},
// $FlowFixMe[unsafe-getters-setters]
get isTV(): boolean {
// $FlowFixMe[object-this-reference]
return this.constants.interfaceIdiom === 'tv';
},
// $FlowFixMe[unsafe-getters-setters]
get isTesting(): boolean {
if (__DEV__) {
// $FlowFixMe[object-this-reference]
return this.constants.isTesting;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"ws": "^6.1.4"
},
"devDependencies": {
"flow-bin": "^0.185.1",
"flow-bin": "^0.186.0",
"hermes-eslint": "0.8.0",
"react": "18.2.0",
"react-test-renderer": "^18.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class IncorrectlyParameterizedFlowGenericParserError extends ParserError {
+genericName: string;
+numTypeParameters: number;

// $FlowFixMe[missing-local-annot]
constructor(hasteModuleName: string, genericTypeAnnotation: $FlowFixMe) {
if (genericTypeAnnotation.typeParameters == null) {
super(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class IncorrectlyParameterizedTypeScriptGenericParserError extends ParserError {
+genericName: string;
+numTypeParameters: number;

// $FlowFixMe[missing-local-annot]
constructor(hasteModuleName: string, genericTypeAnnotation: $FlowFixMe) {
if (genericTypeAnnotation.typeParameters == null) {
super(
Expand Down
2 changes: 1 addition & 1 deletion repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.0.0",
"eslint-plugin-relay": "^1.8.3",
"flow-bin": "^0.185.1",
"flow-bin": "^0.186.0",
"inquirer": "^7.1.0",
"jest": "^26.6.3",
"jest-junit": "^10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ untyped-import
untyped-type-import

[version]
^0.185.1
^0.186.0
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3252,10 +3252,10 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.2.tgz#64bfed5cb68fe3ca78b3eb214ad97b63bedce561"
integrity sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==

flow-bin@^0.185.1:
version "0.185.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.185.1.tgz#dbd3728405ff5aefd147e6c30a27381e9926ffb1"
integrity sha512-TUDZmyXpyKZin3oYtPke1wS5mT2ErCXEPuPsX1s6GgWhP7H7Z/qj6pg7CPcCYt5yNn2Im6k5VWx6J7/5a2stXA==
flow-bin@^0.186.0:
version "0.186.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.186.0.tgz#b60b720dea977516db8e77fdd3911f66e86c6378"
integrity sha512-p5g03TsAipO6Wu22rpphRZQ9EYuhVWANN698MRLWRyP7ZtkEyCpFHDfmzRHM4Ym/tbCQCMdLJ9JX/GmuiDsB2w==

flow-parser@0.*:
version "0.163.0"
Expand Down

0 comments on commit 3db19b4

Please sign in to comment.