mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deploy 0.186.0 to xplat
Summary: Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D39185318 fbshipit-source-id: ca154a5c43eef3e30d5eab382947eedf30e9e850
This commit is contained in:
committed by
Facebook GitHub Bot
parent
afad68f1a8
commit
3db19b464d
+1
-1
@@ -74,4 +74,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.185.1
|
||||
^0.186.0
|
||||
|
||||
+1
-1
@@ -74,4 +74,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.185.1
|
||||
^0.186.0
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -1030,6 +1030,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
||||
);
|
||||
return (
|
||||
// $FlowFixMe[prop-missing] Invalid prop usage
|
||||
// $FlowFixMe[incompatible-use]
|
||||
<ScrollView
|
||||
{...props}
|
||||
refreshControl={
|
||||
@@ -1048,6 +1049,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
||||
);
|
||||
} else {
|
||||
// $FlowFixMe[prop-missing] Invalid prop usage
|
||||
// $FlowFixMe[incompatible-use]
|
||||
return <ScrollView {...props} />;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1226,6 +1226,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
|
||||
);
|
||||
return (
|
||||
// $FlowFixMe[prop-missing] Invalid prop usage
|
||||
// $FlowFixMe[incompatible-use]
|
||||
<ScrollView
|
||||
{...props}
|
||||
refreshControl={
|
||||
@@ -1244,6 +1245,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
|
||||
);
|
||||
} else {
|
||||
// $FlowFixMe[prop-missing] Invalid prop usage
|
||||
// $FlowFixMe[incompatible-use]
|
||||
return <ScrollView {...props} />;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -68,6 +68,7 @@ const RCTNetworking = {
|
||||
listener: (...$ElementType<RCTNetworkingEventDefinitions, K>) => mixed,
|
||||
context?: mixed,
|
||||
): EventSubscription {
|
||||
// $FlowFixMe[incompatible-call]
|
||||
return RCTDeviceEventEmitter.addListener(eventType, listener, context);
|
||||
},
|
||||
|
||||
|
||||
@@ -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]
|
||||
@@ -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 =>
|
||||
|
||||
@@ -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]
|
||||
@@ -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;
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -63,4 +63,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.185.1
|
||||
^0.186.0
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user