react-native 0.81.4 → 0.81.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +38 -35
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +51 -22
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +54 -24
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +36 -33
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +5 -5
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5 -5
- package/Libraries/Renderer/shims/ReactNativeTypes.js +23 -11
- package/React/Base/RCTUtils.mm +5 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +3 -4
- package/React/Fabric/RCTSurfacePointerHandler.mm +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +1 -1
- package/React/Views/RCTSwitchManager.m +24 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
- package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
- package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
- package/package.json +10 -10
- package/scripts/codegen/generate-artifacts-executor/generateReactCodegenPodspec.js +7 -3
- package/scripts/codegen/generate-artifacts-executor/index.js +48 -22
- package/scripts/codegen/generate-artifacts-executor/utils.js +15 -3
- package/scripts/react_native_pods_utils/script_phases.sh +1 -3
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +17 -10
|
@@ -4,21 +4,28 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<7c6da9302fd3aa631167f2d5ca01e4d5>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import type { HostInstance as PublicInstance, MeasureOnSuccessCallback, PublicRootInstance, PublicTextInstance } from "react-native";
|
|
14
13
|
import * as React from "react";
|
|
14
|
+
import type { Component as ReactComponent, ElementType } from "react";
|
|
15
|
+
import type { HostInstance as PublicInstance, MeasureOnSuccessCallback, PublicRootInstance, PublicTextInstance } from "react-native";
|
|
15
16
|
export type AttributeType<T, V> = true | Readonly<{
|
|
16
17
|
diff?: (arg1: T, arg2: T) => boolean;
|
|
17
18
|
process?: (arg1: V) => T;
|
|
18
19
|
}>;
|
|
19
20
|
export type AnyAttributeType = AttributeType<any, any>;
|
|
20
21
|
export type AttributeConfiguration = Readonly<{
|
|
21
|
-
[propName: string]: AnyAttributeType
|
|
22
|
+
[propName: string]: AnyAttributeType;
|
|
23
|
+
style?: Readonly<{
|
|
24
|
+
[propName: string]: AnyAttributeType;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
export type PartialAttributeConfiguration = Readonly<{
|
|
28
|
+
[propName: string]: AnyAttributeType;
|
|
22
29
|
style?: Readonly<{
|
|
23
30
|
[propName: string]: AnyAttributeType;
|
|
24
31
|
}>;
|
|
@@ -58,12 +65,12 @@ export type PartialViewConfig = Readonly<{
|
|
|
58
65
|
directEventTypes?: ViewConfig["directEventTypes"];
|
|
59
66
|
supportsRawText?: boolean;
|
|
60
67
|
uiViewClassName: string;
|
|
61
|
-
validAttributes?:
|
|
68
|
+
validAttributes?: PartialAttributeConfiguration;
|
|
62
69
|
}>;
|
|
63
70
|
type InspectorDataProps = Readonly<{
|
|
64
71
|
[propName: string]: string;
|
|
65
72
|
}>;
|
|
66
|
-
type InspectorDataGetter = ($$PARAM_0$$: <TElementType extends
|
|
73
|
+
type InspectorDataGetter = ($$PARAM_0$$: <TElementType extends ElementType>(componentOrHandle: React.ComponentRef<TElementType> | number) => null | undefined | number) => Readonly<{
|
|
67
74
|
measure: (callback: MeasureOnSuccessCallback) => void;
|
|
68
75
|
props: InspectorDataProps;
|
|
69
76
|
}>;
|
|
@@ -94,7 +101,7 @@ export type RenderRootOptions = {
|
|
|
94
101
|
}) => void;
|
|
95
102
|
onCaughtError?: (error: unknown, errorInfo: {
|
|
96
103
|
readonly componentStack?: string | undefined;
|
|
97
|
-
readonly errorBoundary?:
|
|
104
|
+
readonly errorBoundary?: ReactComponent<any, any> | undefined;
|
|
98
105
|
}) => void;
|
|
99
106
|
onRecoverableError?: (error: unknown, errorInfo: {
|
|
100
107
|
readonly componentStack?: string | undefined;
|
|
@@ -105,8 +112,8 @@ export type RenderRootOptions = {
|
|
|
105
112
|
* Provide minimal Flow typing for the high-level RN API and call it a day.
|
|
106
113
|
*/
|
|
107
114
|
export type ReactNativeType = {
|
|
108
|
-
findHostInstance_DEPRECATED<TElementType extends
|
|
109
|
-
findNodeHandle<TElementType extends
|
|
115
|
+
findHostInstance_DEPRECATED<TElementType extends ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): PublicInstance | undefined;
|
|
116
|
+
findNodeHandle<TElementType extends ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): number | undefined;
|
|
110
117
|
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean;
|
|
111
118
|
dispatchCommand(handle: PublicInstance, command: string, args: Array<unknown>): void;
|
|
112
119
|
sendAccessibilityEvent(handle: PublicInstance, eventType: string): void;
|
|
@@ -122,8 +129,8 @@ export declare type InternalInstanceHandle = symbol & {
|
|
|
122
129
|
__InternalInstanceHandle__: string;
|
|
123
130
|
};
|
|
124
131
|
export type ReactFabricType = {
|
|
125
|
-
findHostInstance_DEPRECATED<TElementType extends
|
|
126
|
-
findNodeHandle<TElementType extends
|
|
132
|
+
findHostInstance_DEPRECATED<TElementType extends ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): PublicInstance | undefined;
|
|
133
|
+
findNodeHandle<TElementType extends ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): number | undefined;
|
|
127
134
|
dispatchCommand(handle: PublicInstance, command: string, args: Array<unknown>): void;
|
|
128
135
|
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean;
|
|
129
136
|
sendAccessibilityEvent(handle: PublicInstance, eventType: string): void;
|