react-native 0.81.5 → 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/RCTVersion.m +1 -1
- package/React/Fabric/RCTSurfacePointerHandler.mm +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +1 -1
- package/ReactAndroid/gradle.properties +1 -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/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- 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/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +17 -10
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<0a9190c24f2d3b192c825b739cc40628>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -410,7 +410,7 @@ __DEV__ &&
|
|
|
410
410
|
prevPrepareStackTrace = error.indexOf("\n");
|
|
411
411
|
-1 !== prevPrepareStackTrace &&
|
|
412
412
|
(error = error.slice(prevPrepareStackTrace + 1));
|
|
413
|
-
prevPrepareStackTrace = error.indexOf("
|
|
413
|
+
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
|
|
414
414
|
-1 !== prevPrepareStackTrace &&
|
|
415
415
|
(prevPrepareStackTrace = error.lastIndexOf(
|
|
416
416
|
"\n",
|
|
@@ -8990,12 +8990,10 @@ __DEV__ &&
|
|
|
8990
8990
|
function updateHostContainer(current, workInProgress) {
|
|
8991
8991
|
if (doesRequireClone(current, workInProgress)) {
|
|
8992
8992
|
current = workInProgress.stateNode;
|
|
8993
|
-
var
|
|
8994
|
-
newChildSet = createChildNodeSet();
|
|
8993
|
+
var newChildSet = createChildNodeSet();
|
|
8995
8994
|
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
8996
8995
|
current.pendingChildren = newChildSet;
|
|
8997
8996
|
workInProgress.flags |= 4;
|
|
8998
|
-
completeRoot(container.containerTag, newChildSet);
|
|
8999
8997
|
}
|
|
9000
8998
|
}
|
|
9001
8999
|
function scheduleRetryEffect(workInProgress, retryQueue) {
|
|
@@ -13805,7 +13803,9 @@ __DEV__ &&
|
|
|
13805
13803
|
canonical: instance.canonical
|
|
13806
13804
|
};
|
|
13807
13805
|
}
|
|
13808
|
-
function replaceContainerChildren() {
|
|
13806
|
+
function replaceContainerChildren(container, newChildren) {
|
|
13807
|
+
completeRoot(container.containerTag, newChildren);
|
|
13808
|
+
}
|
|
13809
13809
|
function nativeOnUncaughtError(error, errorInfo) {
|
|
13810
13810
|
!1 !==
|
|
13811
13811
|
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
@@ -15880,7 +15880,7 @@ __DEV__ &&
|
|
|
15880
15880
|
}
|
|
15881
15881
|
};
|
|
15882
15882
|
var callComponent = {
|
|
15883
|
-
|
|
15883
|
+
react_stack_bottom_frame: function (Component, props, secondArg) {
|
|
15884
15884
|
var wasRendering = isRendering;
|
|
15885
15885
|
isRendering = !0;
|
|
15886
15886
|
try {
|
|
@@ -15891,9 +15891,9 @@ __DEV__ &&
|
|
|
15891
15891
|
}
|
|
15892
15892
|
},
|
|
15893
15893
|
callComponentInDEV =
|
|
15894
|
-
callComponent
|
|
15894
|
+
callComponent.react_stack_bottom_frame.bind(callComponent),
|
|
15895
15895
|
callRender = {
|
|
15896
|
-
|
|
15896
|
+
react_stack_bottom_frame: function (instance) {
|
|
15897
15897
|
var wasRendering = isRendering;
|
|
15898
15898
|
isRendering = !0;
|
|
15899
15899
|
try {
|
|
@@ -15903,9 +15903,9 @@ __DEV__ &&
|
|
|
15903
15903
|
}
|
|
15904
15904
|
}
|
|
15905
15905
|
},
|
|
15906
|
-
callRenderInDEV = callRender
|
|
15906
|
+
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
|
|
15907
15907
|
callComponentDidMount = {
|
|
15908
|
-
|
|
15908
|
+
react_stack_bottom_frame: function (finishedWork, instance) {
|
|
15909
15909
|
try {
|
|
15910
15910
|
instance.componentDidMount();
|
|
15911
15911
|
} catch (error) {
|
|
@@ -15913,11 +15913,12 @@ __DEV__ &&
|
|
|
15913
15913
|
}
|
|
15914
15914
|
}
|
|
15915
15915
|
},
|
|
15916
|
-
callComponentDidMountInDEV =
|
|
15917
|
-
|
|
15918
|
-
|
|
15916
|
+
callComponentDidMountInDEV =
|
|
15917
|
+
callComponentDidMount.react_stack_bottom_frame.bind(
|
|
15918
|
+
callComponentDidMount
|
|
15919
|
+
),
|
|
15919
15920
|
callComponentDidUpdate = {
|
|
15920
|
-
|
|
15921
|
+
react_stack_bottom_frame: function (
|
|
15921
15922
|
finishedWork,
|
|
15922
15923
|
instance,
|
|
15923
15924
|
prevProps,
|
|
@@ -15931,22 +15932,24 @@ __DEV__ &&
|
|
|
15931
15932
|
}
|
|
15932
15933
|
}
|
|
15933
15934
|
},
|
|
15934
|
-
callComponentDidUpdateInDEV =
|
|
15935
|
-
|
|
15936
|
-
|
|
15935
|
+
callComponentDidUpdateInDEV =
|
|
15936
|
+
callComponentDidUpdate.react_stack_bottom_frame.bind(
|
|
15937
|
+
callComponentDidUpdate
|
|
15938
|
+
),
|
|
15937
15939
|
callComponentDidCatch = {
|
|
15938
|
-
|
|
15940
|
+
react_stack_bottom_frame: function (instance, errorInfo) {
|
|
15939
15941
|
var stack = errorInfo.stack;
|
|
15940
15942
|
instance.componentDidCatch(errorInfo.value, {
|
|
15941
15943
|
componentStack: null !== stack ? stack : ""
|
|
15942
15944
|
});
|
|
15943
15945
|
}
|
|
15944
15946
|
},
|
|
15945
|
-
callComponentDidCatchInDEV =
|
|
15946
|
-
|
|
15947
|
-
|
|
15947
|
+
callComponentDidCatchInDEV =
|
|
15948
|
+
callComponentDidCatch.react_stack_bottom_frame.bind(
|
|
15949
|
+
callComponentDidCatch
|
|
15950
|
+
),
|
|
15948
15951
|
callComponentWillUnmount = {
|
|
15949
|
-
|
|
15952
|
+
react_stack_bottom_frame: function (
|
|
15950
15953
|
current,
|
|
15951
15954
|
nearestMountedAncestor,
|
|
15952
15955
|
instance
|
|
@@ -15958,11 +15961,12 @@ __DEV__ &&
|
|
|
15958
15961
|
}
|
|
15959
15962
|
}
|
|
15960
15963
|
},
|
|
15961
|
-
callComponentWillUnmountInDEV =
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
+
callComponentWillUnmountInDEV =
|
|
15965
|
+
callComponentWillUnmount.react_stack_bottom_frame.bind(
|
|
15966
|
+
callComponentWillUnmount
|
|
15967
|
+
),
|
|
15964
15968
|
callCreate = {
|
|
15965
|
-
|
|
15969
|
+
react_stack_bottom_frame: function (effect) {
|
|
15966
15970
|
null != effect.resourceKind &&
|
|
15967
15971
|
console.error(
|
|
15968
15972
|
"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",
|
|
@@ -15974,9 +15978,9 @@ __DEV__ &&
|
|
|
15974
15978
|
return (effect.destroy = create);
|
|
15975
15979
|
}
|
|
15976
15980
|
},
|
|
15977
|
-
callCreateInDEV = callCreate
|
|
15981
|
+
callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate),
|
|
15978
15982
|
callDestroy = {
|
|
15979
|
-
|
|
15983
|
+
react_stack_bottom_frame: function (
|
|
15980
15984
|
current,
|
|
15981
15985
|
nearestMountedAncestor,
|
|
15982
15986
|
destroy
|
|
@@ -15988,16 +15992,15 @@ __DEV__ &&
|
|
|
15988
15992
|
}
|
|
15989
15993
|
}
|
|
15990
15994
|
},
|
|
15991
|
-
callDestroyInDEV =
|
|
15992
|
-
callDestroy["react-stack-bottom-frame"].bind(callDestroy),
|
|
15995
|
+
callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy),
|
|
15993
15996
|
callLazyInit = {
|
|
15994
|
-
|
|
15997
|
+
react_stack_bottom_frame: function (lazy) {
|
|
15995
15998
|
var init = lazy._init;
|
|
15996
15999
|
return init(lazy._payload);
|
|
15997
16000
|
}
|
|
15998
16001
|
},
|
|
15999
16002
|
callLazyInitInDEV =
|
|
16000
|
-
callLazyInit
|
|
16003
|
+
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
|
|
16001
16004
|
thenableState = null,
|
|
16002
16005
|
thenableIndexCounter = 0,
|
|
16003
16006
|
currentDebugInfo = null,
|
|
@@ -16616,10 +16619,10 @@ __DEV__ &&
|
|
|
16616
16619
|
(function () {
|
|
16617
16620
|
var internals = {
|
|
16618
16621
|
bundleType: 1,
|
|
16619
|
-
version: "19.1.
|
|
16622
|
+
version: "19.1.4",
|
|
16620
16623
|
rendererPackageName: "react-native-renderer",
|
|
16621
16624
|
currentDispatcherRef: ReactSharedInternals,
|
|
16622
|
-
reconcilerVersion: "19.1.
|
|
16625
|
+
reconcilerVersion: "19.1.4"
|
|
16623
16626
|
};
|
|
16624
16627
|
null !== extraDevToolsConfig &&
|
|
16625
16628
|
(internals.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<2f18cb243e8359f63183cac5a14f5f9c>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -7013,12 +7013,10 @@ function appendAllChildrenToContainer(
|
|
|
7013
7013
|
function updateHostContainer(current, workInProgress) {
|
|
7014
7014
|
if (doesRequireClone(current, workInProgress)) {
|
|
7015
7015
|
current = workInProgress.stateNode;
|
|
7016
|
-
var
|
|
7017
|
-
newChildSet = createChildNodeSet();
|
|
7016
|
+
var newChildSet = createChildNodeSet();
|
|
7018
7017
|
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
7019
7018
|
current.pendingChildren = newChildSet;
|
|
7020
7019
|
workInProgress.flags |= 4;
|
|
7021
|
-
completeRoot(container.containerTag, newChildSet);
|
|
7022
7020
|
}
|
|
7023
7021
|
}
|
|
7024
7022
|
function scheduleRetryEffect(workInProgress, retryQueue) {
|
|
@@ -7679,6 +7677,18 @@ function commitHostMount(finishedWork) {
|
|
|
7679
7677
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
7680
7678
|
}
|
|
7681
7679
|
}
|
|
7680
|
+
function commitHostPortalContainerChildren(
|
|
7681
|
+
portal,
|
|
7682
|
+
finishedWork,
|
|
7683
|
+
pendingChildren
|
|
7684
|
+
) {
|
|
7685
|
+
portal = portal.containerInfo;
|
|
7686
|
+
try {
|
|
7687
|
+
completeRoot(portal.containerTag, pendingChildren);
|
|
7688
|
+
} catch (error) {
|
|
7689
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
7690
|
+
}
|
|
7691
|
+
}
|
|
7682
7692
|
var offscreenSubtreeIsHidden = !1,
|
|
7683
7693
|
offscreenSubtreeWasHidden = !1,
|
|
7684
7694
|
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
|
@@ -7917,7 +7927,11 @@ function commitDeletionEffectsOnFiber(
|
|
|
7917
7927
|
case 18:
|
|
7918
7928
|
break;
|
|
7919
7929
|
case 4:
|
|
7920
|
-
|
|
7930
|
+
commitHostPortalContainerChildren(
|
|
7931
|
+
deletedFiber.stateNode,
|
|
7932
|
+
deletedFiber,
|
|
7933
|
+
createChildNodeSet()
|
|
7934
|
+
);
|
|
7921
7935
|
recursivelyTraverseDeletionEffects(
|
|
7922
7936
|
finishedRoot,
|
|
7923
7937
|
nearestMountedAncestor,
|
|
@@ -8062,9 +8076,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8062
8076
|
null !== finishedWork &&
|
|
8063
8077
|
((flags = finishedWork.callbacks),
|
|
8064
8078
|
null !== flags &&
|
|
8065
|
-
((
|
|
8079
|
+
((root = finishedWork.shared.hiddenCallbacks),
|
|
8066
8080
|
(finishedWork.shared.hiddenCallbacks =
|
|
8067
|
-
null ===
|
|
8081
|
+
null === root ? flags : root.concat(flags)))));
|
|
8068
8082
|
break;
|
|
8069
8083
|
case 26:
|
|
8070
8084
|
case 27:
|
|
@@ -8085,10 +8099,25 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8085
8099
|
case 3:
|
|
8086
8100
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8087
8101
|
commitReconciliationEffects(finishedWork);
|
|
8102
|
+
if (flags & 4) {
|
|
8103
|
+
flags = root.containerInfo;
|
|
8104
|
+
root = root.pendingChildren;
|
|
8105
|
+
try {
|
|
8106
|
+
completeRoot(flags.containerTag, root);
|
|
8107
|
+
} catch (error) {
|
|
8108
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8109
|
+
}
|
|
8110
|
+
}
|
|
8088
8111
|
break;
|
|
8089
8112
|
case 4:
|
|
8090
8113
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8091
8114
|
commitReconciliationEffects(finishedWork);
|
|
8115
|
+
flags & 4 &&
|
|
8116
|
+
commitHostPortalContainerChildren(
|
|
8117
|
+
finishedWork.stateNode,
|
|
8118
|
+
finishedWork,
|
|
8119
|
+
finishedWork.stateNode.pendingChildren
|
|
8120
|
+
);
|
|
8092
8121
|
break;
|
|
8093
8122
|
case 12:
|
|
8094
8123
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
@@ -8098,9 +8127,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8098
8127
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8099
8128
|
commitReconciliationEffects(finishedWork);
|
|
8100
8129
|
finishedWork.child.flags & 8192 &&
|
|
8101
|
-
((
|
|
8130
|
+
((root = null !== current && null !== current.memoizedState),
|
|
8102
8131
|
null === finishedWork.memoizedState ||
|
|
8103
|
-
|
|
8132
|
+
root ||
|
|
8104
8133
|
(globalMostRecentFallbackTime = now()));
|
|
8105
8134
|
flags & 4 &&
|
|
8106
8135
|
((flags = finishedWork.updateQueue),
|
|
@@ -8136,10 +8165,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8136
8165
|
flags & 4 &&
|
|
8137
8166
|
((flags = finishedWork.updateQueue),
|
|
8138
8167
|
null !== flags &&
|
|
8139
|
-
((
|
|
8140
|
-
null !==
|
|
8168
|
+
((root = flags.retryQueue),
|
|
8169
|
+
null !== root &&
|
|
8141
8170
|
((flags.retryQueue = null),
|
|
8142
|
-
attachSuspenseRetryListeners(finishedWork,
|
|
8171
|
+
attachSuspenseRetryListeners(finishedWork, root))));
|
|
8143
8172
|
break;
|
|
8144
8173
|
case 19:
|
|
8145
8174
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
@@ -10415,26 +10444,26 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
10415
10444
|
}
|
|
10416
10445
|
};
|
|
10417
10446
|
var roots = new Map(),
|
|
10418
|
-
internals$jscomp$
|
|
10447
|
+
internals$jscomp$inline_1203 = {
|
|
10419
10448
|
bundleType: 0,
|
|
10420
|
-
version: "19.1.
|
|
10449
|
+
version: "19.1.4",
|
|
10421
10450
|
rendererPackageName: "react-native-renderer",
|
|
10422
10451
|
currentDispatcherRef: ReactSharedInternals,
|
|
10423
|
-
reconcilerVersion: "19.1.
|
|
10452
|
+
reconcilerVersion: "19.1.4"
|
|
10424
10453
|
};
|
|
10425
10454
|
null !== extraDevToolsConfig &&
|
|
10426
|
-
(internals$jscomp$
|
|
10455
|
+
(internals$jscomp$inline_1203.rendererConfig = extraDevToolsConfig);
|
|
10427
10456
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
10428
|
-
var hook$jscomp$
|
|
10457
|
+
var hook$jscomp$inline_1515 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
10429
10458
|
if (
|
|
10430
|
-
!hook$jscomp$
|
|
10431
|
-
hook$jscomp$
|
|
10459
|
+
!hook$jscomp$inline_1515.isDisabled &&
|
|
10460
|
+
hook$jscomp$inline_1515.supportsFiber
|
|
10432
10461
|
)
|
|
10433
10462
|
try {
|
|
10434
|
-
(rendererID = hook$jscomp$
|
|
10435
|
-
internals$jscomp$
|
|
10463
|
+
(rendererID = hook$jscomp$inline_1515.inject(
|
|
10464
|
+
internals$jscomp$inline_1203
|
|
10436
10465
|
)),
|
|
10437
|
-
(injectedHook = hook$jscomp$
|
|
10466
|
+
(injectedHook = hook$jscomp$inline_1515);
|
|
10438
10467
|
} catch (err) {}
|
|
10439
10468
|
}
|
|
10440
10469
|
exports.createPortal = function (children, containerTag) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<2ca775899397e07eec3078bd4d07ae93>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -7194,12 +7194,10 @@ function appendAllChildrenToContainer(
|
|
|
7194
7194
|
function updateHostContainer(current, workInProgress) {
|
|
7195
7195
|
if (doesRequireClone(current, workInProgress)) {
|
|
7196
7196
|
current = workInProgress.stateNode;
|
|
7197
|
-
var
|
|
7198
|
-
newChildSet = createChildNodeSet();
|
|
7197
|
+
var newChildSet = createChildNodeSet();
|
|
7199
7198
|
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
7200
7199
|
current.pendingChildren = newChildSet;
|
|
7201
7200
|
workInProgress.flags |= 4;
|
|
7202
|
-
completeRoot(container.containerTag, newChildSet);
|
|
7203
7201
|
}
|
|
7204
7202
|
}
|
|
7205
7203
|
function scheduleRetryEffect(workInProgress, retryQueue) {
|
|
@@ -8083,6 +8081,18 @@ function commitHostMount(finishedWork) {
|
|
|
8083
8081
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8084
8082
|
}
|
|
8085
8083
|
}
|
|
8084
|
+
function commitHostPortalContainerChildren(
|
|
8085
|
+
portal,
|
|
8086
|
+
finishedWork,
|
|
8087
|
+
pendingChildren
|
|
8088
|
+
) {
|
|
8089
|
+
portal = portal.containerInfo;
|
|
8090
|
+
try {
|
|
8091
|
+
completeRoot(portal.containerTag, pendingChildren);
|
|
8092
|
+
} catch (error) {
|
|
8093
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8094
|
+
}
|
|
8095
|
+
}
|
|
8086
8096
|
var offscreenSubtreeIsHidden = !1,
|
|
8087
8097
|
offscreenSubtreeWasHidden = !1,
|
|
8088
8098
|
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
|
@@ -8363,7 +8373,11 @@ function commitDeletionEffectsOnFiber(
|
|
|
8363
8373
|
case 18:
|
|
8364
8374
|
break;
|
|
8365
8375
|
case 4:
|
|
8366
|
-
|
|
8376
|
+
commitHostPortalContainerChildren(
|
|
8377
|
+
deletedFiber.stateNode,
|
|
8378
|
+
deletedFiber,
|
|
8379
|
+
createChildNodeSet()
|
|
8380
|
+
);
|
|
8367
8381
|
recursivelyTraverseDeletionEffects(
|
|
8368
8382
|
finishedRoot,
|
|
8369
8383
|
nearestMountedAncestor,
|
|
@@ -8538,14 +8552,29 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8538
8552
|
commitReconciliationEffects(finishedWork);
|
|
8539
8553
|
break;
|
|
8540
8554
|
case 3:
|
|
8541
|
-
|
|
8555
|
+
current = pushNestedEffectDurations();
|
|
8542
8556
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8543
8557
|
commitReconciliationEffects(finishedWork);
|
|
8544
|
-
|
|
8558
|
+
if (flags & 4) {
|
|
8559
|
+
flags = root.containerInfo;
|
|
8560
|
+
var pendingChildren = root.pendingChildren;
|
|
8561
|
+
try {
|
|
8562
|
+
completeRoot(flags.containerTag, pendingChildren);
|
|
8563
|
+
} catch (error) {
|
|
8564
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8565
|
+
}
|
|
8566
|
+
}
|
|
8567
|
+
root.effectDuration += popNestedEffectDurations(current);
|
|
8545
8568
|
break;
|
|
8546
8569
|
case 4:
|
|
8547
8570
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8548
8571
|
commitReconciliationEffects(finishedWork);
|
|
8572
|
+
flags & 4 &&
|
|
8573
|
+
commitHostPortalContainerChildren(
|
|
8574
|
+
finishedWork.stateNode,
|
|
8575
|
+
finishedWork,
|
|
8576
|
+
finishedWork.stateNode.pendingChildren
|
|
8577
|
+
);
|
|
8549
8578
|
break;
|
|
8550
8579
|
case 12:
|
|
8551
8580
|
flags = pushNestedEffectDurations();
|
|
@@ -8569,12 +8598,13 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8569
8598
|
attachSuspenseRetryListeners(finishedWork, root)));
|
|
8570
8599
|
break;
|
|
8571
8600
|
case 22:
|
|
8572
|
-
|
|
8573
|
-
|
|
8601
|
+
pendingChildren = null !== finishedWork.memoizedState;
|
|
8602
|
+
var wasHidden = null !== current && null !== current.memoizedState;
|
|
8574
8603
|
if (finishedWork.mode & 1) {
|
|
8575
8604
|
var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,
|
|
8576
8605
|
prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
|
|
8577
|
-
offscreenSubtreeIsHidden =
|
|
8606
|
+
offscreenSubtreeIsHidden =
|
|
8607
|
+
prevOffscreenSubtreeIsHidden || pendingChildren;
|
|
8578
8608
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden;
|
|
8579
8609
|
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8580
8610
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
|
|
@@ -8583,10 +8613,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8583
8613
|
commitReconciliationEffects(finishedWork);
|
|
8584
8614
|
flags & 8192 &&
|
|
8585
8615
|
((root = finishedWork.stateNode),
|
|
8586
|
-
(root._visibility =
|
|
8616
|
+
(root._visibility = pendingChildren
|
|
8587
8617
|
? root._visibility & -2
|
|
8588
8618
|
: root._visibility | 1),
|
|
8589
|
-
|
|
8619
|
+
pendingChildren &&
|
|
8590
8620
|
(null === current ||
|
|
8591
8621
|
wasHidden ||
|
|
8592
8622
|
offscreenSubtreeIsHidden ||
|
|
@@ -11055,16 +11085,16 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
11055
11085
|
}
|
|
11056
11086
|
};
|
|
11057
11087
|
var roots = new Map(),
|
|
11058
|
-
internals$jscomp$
|
|
11088
|
+
internals$jscomp$inline_1296 = {
|
|
11059
11089
|
bundleType: 0,
|
|
11060
|
-
version: "19.1.
|
|
11090
|
+
version: "19.1.4",
|
|
11061
11091
|
rendererPackageName: "react-native-renderer",
|
|
11062
11092
|
currentDispatcherRef: ReactSharedInternals,
|
|
11063
|
-
reconcilerVersion: "19.1.
|
|
11093
|
+
reconcilerVersion: "19.1.4"
|
|
11064
11094
|
};
|
|
11065
11095
|
null !== extraDevToolsConfig &&
|
|
11066
|
-
(internals$jscomp$
|
|
11067
|
-
internals$jscomp$
|
|
11096
|
+
(internals$jscomp$inline_1296.rendererConfig = extraDevToolsConfig);
|
|
11097
|
+
internals$jscomp$inline_1296.getLaneLabelMap = function () {
|
|
11068
11098
|
for (
|
|
11069
11099
|
var map = new Map(), lane = 1, index$152 = 0;
|
|
11070
11100
|
31 > index$152;
|
|
@@ -11076,20 +11106,20 @@ internals$jscomp$inline_1299.getLaneLabelMap = function () {
|
|
|
11076
11106
|
}
|
|
11077
11107
|
return map;
|
|
11078
11108
|
};
|
|
11079
|
-
internals$jscomp$
|
|
11109
|
+
internals$jscomp$inline_1296.injectProfilingHooks = function (profilingHooks) {
|
|
11080
11110
|
injectedProfilingHooks = profilingHooks;
|
|
11081
11111
|
};
|
|
11082
11112
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
11083
|
-
var hook$jscomp$
|
|
11113
|
+
var hook$jscomp$inline_1574 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
11084
11114
|
if (
|
|
11085
|
-
!hook$jscomp$
|
|
11086
|
-
hook$jscomp$
|
|
11115
|
+
!hook$jscomp$inline_1574.isDisabled &&
|
|
11116
|
+
hook$jscomp$inline_1574.supportsFiber
|
|
11087
11117
|
)
|
|
11088
11118
|
try {
|
|
11089
|
-
(rendererID = hook$jscomp$
|
|
11090
|
-
internals$jscomp$
|
|
11119
|
+
(rendererID = hook$jscomp$inline_1574.inject(
|
|
11120
|
+
internals$jscomp$inline_1296
|
|
11091
11121
|
)),
|
|
11092
|
-
(injectedHook = hook$jscomp$
|
|
11122
|
+
(injectedHook = hook$jscomp$inline_1574);
|
|
11093
11123
|
} catch (err) {}
|
|
11094
11124
|
}
|
|
11095
11125
|
exports.createPortal = function (children, containerTag) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<918f2971ff54304721b755a22da3df6d>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -405,7 +405,7 @@ __DEV__ &&
|
|
|
405
405
|
prevPrepareStackTrace = error.indexOf("\n");
|
|
406
406
|
-1 !== prevPrepareStackTrace &&
|
|
407
407
|
(error = error.slice(prevPrepareStackTrace + 1));
|
|
408
|
-
prevPrepareStackTrace = error.indexOf("
|
|
408
|
+
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
|
|
409
409
|
-1 !== prevPrepareStackTrace &&
|
|
410
410
|
(prevPrepareStackTrace = error.lastIndexOf(
|
|
411
411
|
"\n",
|
|
@@ -16385,7 +16385,7 @@ __DEV__ &&
|
|
|
16385
16385
|
}
|
|
16386
16386
|
};
|
|
16387
16387
|
var callComponent = {
|
|
16388
|
-
|
|
16388
|
+
react_stack_bottom_frame: function (Component, props, secondArg) {
|
|
16389
16389
|
var wasRendering = isRendering;
|
|
16390
16390
|
isRendering = !0;
|
|
16391
16391
|
try {
|
|
@@ -16396,9 +16396,9 @@ __DEV__ &&
|
|
|
16396
16396
|
}
|
|
16397
16397
|
},
|
|
16398
16398
|
callComponentInDEV =
|
|
16399
|
-
callComponent
|
|
16399
|
+
callComponent.react_stack_bottom_frame.bind(callComponent),
|
|
16400
16400
|
callRender = {
|
|
16401
|
-
|
|
16401
|
+
react_stack_bottom_frame: function (instance) {
|
|
16402
16402
|
var wasRendering = isRendering;
|
|
16403
16403
|
isRendering = !0;
|
|
16404
16404
|
try {
|
|
@@ -16408,9 +16408,9 @@ __DEV__ &&
|
|
|
16408
16408
|
}
|
|
16409
16409
|
}
|
|
16410
16410
|
},
|
|
16411
|
-
callRenderInDEV = callRender
|
|
16411
|
+
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
|
|
16412
16412
|
callComponentDidMount = {
|
|
16413
|
-
|
|
16413
|
+
react_stack_bottom_frame: function (finishedWork, instance) {
|
|
16414
16414
|
try {
|
|
16415
16415
|
instance.componentDidMount();
|
|
16416
16416
|
} catch (error) {
|
|
@@ -16418,11 +16418,12 @@ __DEV__ &&
|
|
|
16418
16418
|
}
|
|
16419
16419
|
}
|
|
16420
16420
|
},
|
|
16421
|
-
callComponentDidMountInDEV =
|
|
16422
|
-
|
|
16423
|
-
|
|
16421
|
+
callComponentDidMountInDEV =
|
|
16422
|
+
callComponentDidMount.react_stack_bottom_frame.bind(
|
|
16423
|
+
callComponentDidMount
|
|
16424
|
+
),
|
|
16424
16425
|
callComponentDidUpdate = {
|
|
16425
|
-
|
|
16426
|
+
react_stack_bottom_frame: function (
|
|
16426
16427
|
finishedWork,
|
|
16427
16428
|
instance,
|
|
16428
16429
|
prevProps,
|
|
@@ -16436,22 +16437,24 @@ __DEV__ &&
|
|
|
16436
16437
|
}
|
|
16437
16438
|
}
|
|
16438
16439
|
},
|
|
16439
|
-
callComponentDidUpdateInDEV =
|
|
16440
|
-
|
|
16441
|
-
|
|
16440
|
+
callComponentDidUpdateInDEV =
|
|
16441
|
+
callComponentDidUpdate.react_stack_bottom_frame.bind(
|
|
16442
|
+
callComponentDidUpdate
|
|
16443
|
+
),
|
|
16442
16444
|
callComponentDidCatch = {
|
|
16443
|
-
|
|
16445
|
+
react_stack_bottom_frame: function (instance, errorInfo) {
|
|
16444
16446
|
var stack = errorInfo.stack;
|
|
16445
16447
|
instance.componentDidCatch(errorInfo.value, {
|
|
16446
16448
|
componentStack: null !== stack ? stack : ""
|
|
16447
16449
|
});
|
|
16448
16450
|
}
|
|
16449
16451
|
},
|
|
16450
|
-
callComponentDidCatchInDEV =
|
|
16451
|
-
|
|
16452
|
-
|
|
16452
|
+
callComponentDidCatchInDEV =
|
|
16453
|
+
callComponentDidCatch.react_stack_bottom_frame.bind(
|
|
16454
|
+
callComponentDidCatch
|
|
16455
|
+
),
|
|
16453
16456
|
callComponentWillUnmount = {
|
|
16454
|
-
|
|
16457
|
+
react_stack_bottom_frame: function (
|
|
16455
16458
|
current,
|
|
16456
16459
|
nearestMountedAncestor,
|
|
16457
16460
|
instance
|
|
@@ -16463,11 +16466,12 @@ __DEV__ &&
|
|
|
16463
16466
|
}
|
|
16464
16467
|
}
|
|
16465
16468
|
},
|
|
16466
|
-
callComponentWillUnmountInDEV =
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
+
callComponentWillUnmountInDEV =
|
|
16470
|
+
callComponentWillUnmount.react_stack_bottom_frame.bind(
|
|
16471
|
+
callComponentWillUnmount
|
|
16472
|
+
),
|
|
16469
16473
|
callCreate = {
|
|
16470
|
-
|
|
16474
|
+
react_stack_bottom_frame: function (effect) {
|
|
16471
16475
|
null != effect.resourceKind &&
|
|
16472
16476
|
console.error(
|
|
16473
16477
|
"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",
|
|
@@ -16479,9 +16483,9 @@ __DEV__ &&
|
|
|
16479
16483
|
return (effect.destroy = create);
|
|
16480
16484
|
}
|
|
16481
16485
|
},
|
|
16482
|
-
callCreateInDEV = callCreate
|
|
16486
|
+
callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate),
|
|
16483
16487
|
callDestroy = {
|
|
16484
|
-
|
|
16488
|
+
react_stack_bottom_frame: function (
|
|
16485
16489
|
current,
|
|
16486
16490
|
nearestMountedAncestor,
|
|
16487
16491
|
destroy
|
|
@@ -16493,16 +16497,15 @@ __DEV__ &&
|
|
|
16493
16497
|
}
|
|
16494
16498
|
}
|
|
16495
16499
|
},
|
|
16496
|
-
callDestroyInDEV =
|
|
16497
|
-
callDestroy["react-stack-bottom-frame"].bind(callDestroy),
|
|
16500
|
+
callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy),
|
|
16498
16501
|
callLazyInit = {
|
|
16499
|
-
|
|
16502
|
+
react_stack_bottom_frame: function (lazy) {
|
|
16500
16503
|
var init = lazy._init;
|
|
16501
16504
|
return init(lazy._payload);
|
|
16502
16505
|
}
|
|
16503
16506
|
},
|
|
16504
16507
|
callLazyInitInDEV =
|
|
16505
|
-
callLazyInit
|
|
16508
|
+
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
|
|
16506
16509
|
thenableState = null,
|
|
16507
16510
|
thenableIndexCounter = 0,
|
|
16508
16511
|
currentDebugInfo = null,
|
|
@@ -16868,11 +16871,11 @@ __DEV__ &&
|
|
|
16868
16871
|
shouldSuspendImpl = newShouldSuspendImpl;
|
|
16869
16872
|
};
|
|
16870
16873
|
var isomorphicReactPackageVersion = React.version;
|
|
16871
|
-
if ("19.1.
|
|
16874
|
+
if ("19.1.4" !== isomorphicReactPackageVersion)
|
|
16872
16875
|
throw Error(
|
|
16873
16876
|
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
|
16874
16877
|
(isomorphicReactPackageVersion +
|
|
16875
|
-
"\n - react-native-renderer: 19.1.
|
|
16878
|
+
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
16876
16879
|
);
|
|
16877
16880
|
if (
|
|
16878
16881
|
"function" !==
|
|
@@ -16898,10 +16901,10 @@ __DEV__ &&
|
|
|
16898
16901
|
(function () {
|
|
16899
16902
|
var internals = {
|
|
16900
16903
|
bundleType: 1,
|
|
16901
|
-
version: "19.1.
|
|
16904
|
+
version: "19.1.4",
|
|
16902
16905
|
rendererPackageName: "react-native-renderer",
|
|
16903
16906
|
currentDispatcherRef: ReactSharedInternals,
|
|
16904
|
-
reconcilerVersion: "19.1.
|
|
16907
|
+
reconcilerVersion: "19.1.4"
|
|
16905
16908
|
};
|
|
16906
16909
|
null !== extraDevToolsConfig &&
|
|
16907
16910
|
(internals.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<0129ab1b7de2122366e60b1d68de6e4a>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -10603,11 +10603,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
10603
10603
|
return lane;
|
|
10604
10604
|
}
|
|
10605
10605
|
var isomorphicReactPackageVersion = React.version;
|
|
10606
|
-
if ("19.1.
|
|
10606
|
+
if ("19.1.4" !== isomorphicReactPackageVersion)
|
|
10607
10607
|
throw Error(
|
|
10608
10608
|
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
|
10609
10609
|
(isomorphicReactPackageVersion +
|
|
10610
|
-
"\n - react-native-renderer: 19.1.
|
|
10610
|
+
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
10611
10611
|
);
|
|
10612
10612
|
if (
|
|
10613
10613
|
"function" !==
|
|
@@ -10656,10 +10656,10 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
10656
10656
|
var roots = new Map(),
|
|
10657
10657
|
internals$jscomp$inline_1269 = {
|
|
10658
10658
|
bundleType: 0,
|
|
10659
|
-
version: "19.1.
|
|
10659
|
+
version: "19.1.4",
|
|
10660
10660
|
rendererPackageName: "react-native-renderer",
|
|
10661
10661
|
currentDispatcherRef: ReactSharedInternals,
|
|
10662
|
-
reconcilerVersion: "19.1.
|
|
10662
|
+
reconcilerVersion: "19.1.4"
|
|
10663
10663
|
};
|
|
10664
10664
|
null !== extraDevToolsConfig &&
|
|
10665
10665
|
(internals$jscomp$inline_1269.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<d09a614d44bd133ffd789d5236ba611a>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
@@ -11245,11 +11245,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
11245
11245
|
return lane;
|
|
11246
11246
|
}
|
|
11247
11247
|
var isomorphicReactPackageVersion = React.version;
|
|
11248
|
-
if ("19.1.
|
|
11248
|
+
if ("19.1.4" !== isomorphicReactPackageVersion)
|
|
11249
11249
|
throw Error(
|
|
11250
11250
|
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
|
11251
11251
|
(isomorphicReactPackageVersion +
|
|
11252
|
-
"\n - react-native-renderer: 19.1.
|
|
11252
|
+
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
11253
11253
|
);
|
|
11254
11254
|
if (
|
|
11255
11255
|
"function" !==
|
|
@@ -11298,10 +11298,10 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
11298
11298
|
var roots = new Map(),
|
|
11299
11299
|
internals$jscomp$inline_1362 = {
|
|
11300
11300
|
bundleType: 0,
|
|
11301
|
-
version: "19.1.
|
|
11301
|
+
version: "19.1.4",
|
|
11302
11302
|
rendererPackageName: "react-native-renderer",
|
|
11303
11303
|
currentDispatcherRef: ReactSharedInternals,
|
|
11304
|
-
reconcilerVersion: "19.1.
|
|
11304
|
+
reconcilerVersion: "19.1.4"
|
|
11305
11305
|
};
|
|
11306
11306
|
null !== extraDevToolsConfig &&
|
|
11307
11307
|
(internals$jscomp$inline_1362.rendererConfig = extraDevToolsConfig);
|
|
@@ -7,9 +7,14 @@
|
|
|
7
7
|
* @noformat
|
|
8
8
|
* @nolint
|
|
9
9
|
* @flow strict
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<9564768e65343249f5e5ee5074826c7f>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import type {
|
|
14
|
+
Component as ReactComponent,
|
|
15
|
+
ElementRef,
|
|
16
|
+
ElementType,
|
|
17
|
+
} from 'react';
|
|
13
18
|
import type {
|
|
14
19
|
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
|
|
15
20
|
HostInstance as PublicInstance,
|
|
@@ -21,8 +26,6 @@ import type {
|
|
|
21
26
|
PublicTextInstance,
|
|
22
27
|
} from 'react-native';
|
|
23
28
|
|
|
24
|
-
import * as React from 'react';
|
|
25
|
-
|
|
26
29
|
export type AttributeType<T, V> =
|
|
27
30
|
| true
|
|
28
31
|
| $ReadOnly<{
|
|
@@ -35,7 +38,16 @@ export type AttributeType<T, V> =
|
|
|
35
38
|
export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
|
|
36
39
|
|
|
37
40
|
export type AttributeConfiguration = $ReadOnly<{
|
|
38
|
-
[propName: string]: AnyAttributeType
|
|
41
|
+
[propName: string]: AnyAttributeType,
|
|
42
|
+
style?: $ReadOnly<{
|
|
43
|
+
[propName: string]: AnyAttributeType,
|
|
44
|
+
...
|
|
45
|
+
}>,
|
|
46
|
+
...
|
|
47
|
+
}>;
|
|
48
|
+
|
|
49
|
+
export type PartialAttributeConfiguration = $ReadOnly<{
|
|
50
|
+
[propName: string]: AnyAttributeType,
|
|
39
51
|
style?: $ReadOnly<{
|
|
40
52
|
[propName: string]: AnyAttributeType,
|
|
41
53
|
...
|
|
@@ -75,7 +87,7 @@ export type PartialViewConfig = $ReadOnly<{
|
|
|
75
87
|
directEventTypes?: ViewConfig['directEventTypes'],
|
|
76
88
|
supportsRawText?: boolean,
|
|
77
89
|
uiViewClassName: string,
|
|
78
|
-
validAttributes?:
|
|
90
|
+
validAttributes?: PartialAttributeConfiguration,
|
|
79
91
|
}>;
|
|
80
92
|
|
|
81
93
|
type InspectorDataProps = $ReadOnly<{
|
|
@@ -84,7 +96,7 @@ type InspectorDataProps = $ReadOnly<{
|
|
|
84
96
|
}>;
|
|
85
97
|
|
|
86
98
|
type InspectorDataGetter = (
|
|
87
|
-
<TElementType:
|
|
99
|
+
<TElementType: ElementType>(
|
|
88
100
|
componentOrHandle: React.ElementRef<TElementType> | number,
|
|
89
101
|
) => ?number,
|
|
90
102
|
) => $ReadOnly<{
|
|
@@ -128,7 +140,7 @@ export type RenderRootOptions = {
|
|
|
128
140
|
+componentStack?: ?string,
|
|
129
141
|
// $FlowFixMe[unclear-type] unknown props and state.
|
|
130
142
|
// $FlowFixMe[value-as-type] Component in react repo is any-typed, but it will be well typed externally.
|
|
131
|
-
+errorBoundary?: ?
|
|
143
|
+
+errorBoundary?: ?ReactComponent<any, any>,
|
|
132
144
|
},
|
|
133
145
|
) => void,
|
|
134
146
|
onRecoverableError?: (
|
|
@@ -142,10 +154,10 @@ export type RenderRootOptions = {
|
|
|
142
154
|
* Provide minimal Flow typing for the high-level RN API and call it a day.
|
|
143
155
|
*/
|
|
144
156
|
export type ReactNativeType = {
|
|
145
|
-
findHostInstance_DEPRECATED<TElementType:
|
|
157
|
+
findHostInstance_DEPRECATED<TElementType: ElementType>(
|
|
146
158
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
147
159
|
): ?PublicInstance,
|
|
148
|
-
findNodeHandle<TElementType:
|
|
160
|
+
findNodeHandle<TElementType: ElementType>(
|
|
149
161
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
150
162
|
): ?number,
|
|
151
163
|
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean,
|
|
@@ -171,10 +183,10 @@ export opaque type Node = mixed;
|
|
|
171
183
|
export opaque type InternalInstanceHandle = mixed;
|
|
172
184
|
|
|
173
185
|
export type ReactFabricType = {
|
|
174
|
-
findHostInstance_DEPRECATED<TElementType:
|
|
186
|
+
findHostInstance_DEPRECATED<TElementType: ElementType>(
|
|
175
187
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
176
188
|
): ?PublicInstance,
|
|
177
|
-
findNodeHandle<TElementType:
|
|
189
|
+
findNodeHandle<TElementType: ElementType>(
|
|
178
190
|
componentOrHandle: ?(React.ElementRef<TElementType> | number),
|
|
179
191
|
): ?number,
|
|
180
192
|
dispatchCommand(
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -437,7 +437,7 @@ struct PointerHasher {
|
|
|
437
437
|
* We hold the view weakly to prevent a retain cycle.
|
|
438
438
|
*/
|
|
439
439
|
__weak UIView *_rootComponentView;
|
|
440
|
-
RCTIdentifierPool<
|
|
440
|
+
RCTIdentifierPool<17> _identifierPool;
|
|
441
441
|
|
|
442
442
|
UIHoverGestureRecognizer *_mouseHoverRecognizer API_AVAILABLE(ios(13.0));
|
|
443
443
|
UIHoverGestureRecognizer *_penHoverRecognizer API_AVAILABLE(ios(13.0));
|
|
@@ -137,7 +137,7 @@ struct PointerHasher {
|
|
|
137
137
|
* We hold the view weakly to prevent a retain cycle.
|
|
138
138
|
*/
|
|
139
139
|
__weak UIView *_rootComponentView;
|
|
140
|
-
RCTIdentifierPool<
|
|
140
|
+
RCTIdentifierPool<17> _identifierPool;
|
|
141
141
|
|
|
142
142
|
RCTSurfacePointerHandler *_pointerHandler;
|
|
143
143
|
}
|
|
@@ -1404,14 +1404,14 @@ public class ReactInstanceManager {
|
|
|
1404
1404
|
new RuntimeException(
|
|
1405
1405
|
"detachRootViewFromInstance called with ReactRootView with invalid id"));
|
|
1406
1406
|
}
|
|
1407
|
-
|
|
1408
|
-
clearReactRoot(reactRoot);
|
|
1409
1407
|
} else {
|
|
1410
1408
|
reactContext
|
|
1411
1409
|
.getCatalystInstance()
|
|
1412
1410
|
.getJSModule(AppRegistry.class)
|
|
1413
1411
|
.unmountApplicationComponentAtRootTag(reactRoot.getRootViewTag());
|
|
1414
1412
|
}
|
|
1413
|
+
|
|
1414
|
+
clearReactRoot(reactRoot);
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
1417
|
@ThreadConfined(UI)
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
16
|
#define REACT_NATIVE_VERSION_MINOR 81
|
|
17
|
-
#define REACT_NATIVE_VERSION_PATCH
|
|
17
|
+
#define REACT_NATIVE_VERSION_PATCH 6
|
|
18
18
|
|
|
19
19
|
namespace facebook::react {
|
|
20
20
|
|
|
21
21
|
constexpr struct {
|
|
22
22
|
int32_t Major = 0;
|
|
23
23
|
int32_t Minor = 81;
|
|
24
|
-
int32_t Patch =
|
|
24
|
+
int32_t Patch = 6;
|
|
25
25
|
std::string_view Prerelease = "";
|
|
26
26
|
} ReactNativeVersion;
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.6",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -152,8 +152,8 @@
|
|
|
152
152
|
"featureflags": "node ./scripts/featureflags/index.js"
|
|
153
153
|
},
|
|
154
154
|
"peerDependencies": {
|
|
155
|
-
"@types/react": "^19.1.
|
|
156
|
-
"react": "^19.1.
|
|
155
|
+
"@types/react": "^19.1.4",
|
|
156
|
+
"react": "^19.1.4"
|
|
157
157
|
},
|
|
158
158
|
"peerDependenciesMeta": {
|
|
159
159
|
"@types/react": {
|
|
@@ -162,13 +162,13 @@
|
|
|
162
162
|
},
|
|
163
163
|
"dependencies": {
|
|
164
164
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
165
|
-
"@react-native/assets-registry": "0.81.
|
|
166
|
-
"@react-native/codegen": "0.81.
|
|
167
|
-
"@react-native/community-cli-plugin": "0.81.
|
|
168
|
-
"@react-native/gradle-plugin": "0.81.
|
|
169
|
-
"@react-native/js-polyfills": "0.81.
|
|
170
|
-
"@react-native/normalize-colors": "0.81.
|
|
171
|
-
"@react-native/virtualized-lists": "0.81.
|
|
165
|
+
"@react-native/assets-registry": "0.81.6",
|
|
166
|
+
"@react-native/codegen": "0.81.6",
|
|
167
|
+
"@react-native/community-cli-plugin": "0.81.6",
|
|
168
|
+
"@react-native/gradle-plugin": "0.81.6",
|
|
169
|
+
"@react-native/js-polyfills": "0.81.6",
|
|
170
|
+
"@react-native/normalize-colors": "0.81.6",
|
|
171
|
+
"@react-native/virtualized-lists": "0.81.6",
|
|
172
172
|
"abort-controller": "^3.0.0",
|
|
173
173
|
"anser": "^1.4.9",
|
|
174
174
|
"ansi-regex": "^5.0.0",
|
|
@@ -71,14 +71,18 @@ function getInputFiles(appPath /*: string */, appPkgJson /*: $FlowFixMe */) {
|
|
|
71
71
|
return `[${list}]`;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
function codegenScripts(appPath /*: string */,
|
|
75
|
-
const relativeAppPath = path.relative(
|
|
74
|
+
function codegenScripts(appPath /*: string */, baseOutputPath /*: string */) {
|
|
75
|
+
const relativeAppPath = path.relative(baseOutputPath, appPath);
|
|
76
|
+
const relativeReactNativeRootFolder = path.relative(
|
|
77
|
+
baseOutputPath,
|
|
78
|
+
REACT_NATIVE_PACKAGE_ROOT_FOLDER,
|
|
79
|
+
);
|
|
76
80
|
return `<<-SCRIPT
|
|
77
81
|
pushd "$PODS_ROOT/../" > /dev/null
|
|
78
82
|
RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd)
|
|
79
83
|
popd >/dev/null
|
|
80
84
|
|
|
81
|
-
export RCT_SCRIPT_RN_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT/${
|
|
85
|
+
export RCT_SCRIPT_RN_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT/${relativeReactNativeRootFolder}"
|
|
82
86
|
export RCT_SCRIPT_APP_PATH="$RCT_SCRIPT_POD_INSTALLATION_ROOT/${relativeAppPath.length === 0 ? '.' : relativeAppPath}"
|
|
83
87
|
export RCT_SCRIPT_OUTPUT_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT"
|
|
84
88
|
export RCT_SCRIPT_TYPE="withCodegenDiscovery"
|
|
@@ -61,7 +61,7 @@ const path = require('path');
|
|
|
61
61
|
function execute(
|
|
62
62
|
projectRoot /*: string */,
|
|
63
63
|
targetPlatform /*: string */,
|
|
64
|
-
|
|
64
|
+
optionalBaseOutputPath /*: ?string */,
|
|
65
65
|
source /*: string */,
|
|
66
66
|
runReactNativeCodegen /*: boolean */ = true,
|
|
67
67
|
) {
|
|
@@ -86,25 +86,35 @@ function execute(
|
|
|
86
86
|
buildCodegenIfNeeded();
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
const
|
|
90
|
-
projectRoot,
|
|
91
|
-
baseOutputPath,
|
|
92
|
-
);
|
|
93
|
-
const codegenEnabledLibraries = findCodegenEnabledLibraries(
|
|
94
|
-
pkgJson,
|
|
95
|
-
projectRoot,
|
|
96
|
-
baseOutputPath,
|
|
97
|
-
reactNativeConfig,
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
if (codegenEnabledLibraries.length === 0) {
|
|
101
|
-
codegenLog('No codegen-enabled libraries found.', true);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
let platforms =
|
|
89
|
+
const platforms =
|
|
105
90
|
targetPlatform === 'all' ? supportedPlatforms : [targetPlatform];
|
|
106
91
|
|
|
92
|
+
// NOTE: We cache the external libraries search (which may not run) across platforms to not change previous behaviour
|
|
93
|
+
const externalLibrariesCache /*: { current?: ?Array<$FlowFixMe> } */ = {};
|
|
94
|
+
|
|
107
95
|
for (const platform of platforms) {
|
|
96
|
+
// NOTE: This needs to be computed per-platform since `platform` can alter the path via a `package.json:codegenConfig.outputDir[platform]` override
|
|
97
|
+
const baseOutputPath = computeBaseOutputPath(
|
|
98
|
+
projectRoot,
|
|
99
|
+
optionalBaseOutputPath,
|
|
100
|
+
pkgJson,
|
|
101
|
+
platform,
|
|
102
|
+
);
|
|
103
|
+
const reactNativeConfig = readReactNativeConfig(
|
|
104
|
+
projectRoot,
|
|
105
|
+
baseOutputPath,
|
|
106
|
+
);
|
|
107
|
+
const codegenEnabledLibraries = findCodegenEnabledLibraries(
|
|
108
|
+
pkgJson,
|
|
109
|
+
projectRoot,
|
|
110
|
+
baseOutputPath,
|
|
111
|
+
reactNativeConfig,
|
|
112
|
+
externalLibrariesCache,
|
|
113
|
+
);
|
|
114
|
+
if (codegenEnabledLibraries.length === 0) {
|
|
115
|
+
codegenLog('No codegen-enabled libraries found.', true);
|
|
116
|
+
}
|
|
117
|
+
|
|
108
118
|
const disabledLibraries = findDisabledLibrariesByPlatform(
|
|
109
119
|
reactNativeConfig,
|
|
110
120
|
platform,
|
|
@@ -182,22 +192,38 @@ function readOutputDirFromPkgJson(
|
|
|
182
192
|
return null;
|
|
183
193
|
}
|
|
184
194
|
|
|
185
|
-
function
|
|
195
|
+
function computeBaseOutputPath(
|
|
186
196
|
projectRoot /*: string */,
|
|
187
|
-
|
|
197
|
+
optionalBaseOutputPath /*: ?string */,
|
|
188
198
|
pkgJson /*: $FlowFixMe */,
|
|
189
199
|
platform /*: string */,
|
|
190
200
|
) {
|
|
191
|
-
if (
|
|
201
|
+
if (
|
|
202
|
+
process.env.RCT_SCRIPT_OUTPUT_DIR != null &&
|
|
203
|
+
process.env.RCT_SCRIPT_OUTPUT_DIR.length > 0
|
|
204
|
+
) {
|
|
205
|
+
return process.env.RCT_SCRIPT_OUTPUT_DIR;
|
|
206
|
+
}
|
|
207
|
+
let baseOutputPath /*: string */;
|
|
208
|
+
if (optionalBaseOutputPath == null) {
|
|
192
209
|
const outputDirFromPkgJson = readOutputDirFromPkgJson(pkgJson, platform);
|
|
193
210
|
if (outputDirFromPkgJson != null) {
|
|
194
|
-
// $FlowFixMe[reassign-const]
|
|
195
211
|
baseOutputPath = path.join(projectRoot, outputDirFromPkgJson);
|
|
196
212
|
} else {
|
|
197
|
-
// $FlowFixMe[reassign-const]
|
|
198
213
|
baseOutputPath = projectRoot;
|
|
199
214
|
}
|
|
215
|
+
} else {
|
|
216
|
+
baseOutputPath = optionalBaseOutputPath;
|
|
200
217
|
}
|
|
218
|
+
return baseOutputPath;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function computeOutputPath(
|
|
222
|
+
projectRoot /*: string */,
|
|
223
|
+
baseOutputPath /*: string */,
|
|
224
|
+
pkgJson /*: $FlowFixMe */,
|
|
225
|
+
platform /*: string */,
|
|
226
|
+
) /*: string */ {
|
|
201
227
|
if (pkgJsonIncludesGeneratedCode(pkgJson)) {
|
|
202
228
|
// Don't create nested directories for libraries to make importing generated headers easier.
|
|
203
229
|
return baseOutputPath;
|
|
@@ -98,9 +98,11 @@ function cleanupEmptyFilesAndFolders(filepath /*: string */) {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
function readGeneratedAutolinkingOutput(
|
|
101
|
+
projectRoot /*: string */,
|
|
101
102
|
baseOutputPath /*: string */,
|
|
102
103
|
) /*: $FlowFixMe */ {
|
|
103
104
|
// NOTE: Generated by scripts/cocoapods/autolinking.rb in list_native_modules (called by use_native_modules)
|
|
105
|
+
// The `baseOutputPath` is based on a CLI argument and optional
|
|
104
106
|
const autolinkingGeneratedPath = path.resolve(
|
|
105
107
|
baseOutputPath,
|
|
106
108
|
'build/generated/autolinking/autolinking.json',
|
|
@@ -120,7 +122,10 @@ function readReactNativeConfig(
|
|
|
120
122
|
projectRoot /*: string */,
|
|
121
123
|
baseOutputPath /*: string */,
|
|
122
124
|
) /*: $FlowFixMe */ {
|
|
123
|
-
const autolinkingOutput = readGeneratedAutolinkingOutput(
|
|
125
|
+
const autolinkingOutput = readGeneratedAutolinkingOutput(
|
|
126
|
+
projectRoot,
|
|
127
|
+
baseOutputPath,
|
|
128
|
+
);
|
|
124
129
|
const rnConfigFilePath = path.resolve(projectRoot, 'react-native.config.js');
|
|
125
130
|
if (autolinkingOutput) {
|
|
126
131
|
return autolinkingOutput;
|
|
@@ -141,6 +146,7 @@ function findCodegenEnabledLibraries(
|
|
|
141
146
|
projectRoot /*: string */,
|
|
142
147
|
baseOutputPath /*: string */,
|
|
143
148
|
reactNativeConfig /*: $FlowFixMe */,
|
|
149
|
+
externalLibrariesCache /*: { current?: ?Array<$FlowFixMe> } */ = {},
|
|
144
150
|
) /*: Array<$FlowFixMe> */ {
|
|
145
151
|
const projectLibraries = findProjectRootLibraries(pkgJson, projectRoot);
|
|
146
152
|
if (pkgJsonIncludesGeneratedCode(pkgJson)) {
|
|
@@ -149,8 +155,14 @@ function findCodegenEnabledLibraries(
|
|
|
149
155
|
const libraries = [...projectLibraries];
|
|
150
156
|
// If we ran autolinking, we shouldn't try to run our own "autolinking-like"
|
|
151
157
|
// library discovery
|
|
152
|
-
if (!readGeneratedAutolinkingOutput(baseOutputPath)) {
|
|
153
|
-
|
|
158
|
+
if (!readGeneratedAutolinkingOutput(projectRoot, baseOutputPath)) {
|
|
159
|
+
const externalLibraries =
|
|
160
|
+
externalLibrariesCache.current ??
|
|
161
|
+
(externalLibrariesCache.current = findExternalLibraries(
|
|
162
|
+
pkgJson,
|
|
163
|
+
projectRoot,
|
|
164
|
+
));
|
|
165
|
+
libraries.push(...externalLibraries);
|
|
154
166
|
}
|
|
155
167
|
libraries.push(
|
|
156
168
|
...findLibrariesFromReactNativeConfig(projectRoot, reactNativeConfig),
|
|
@@ -96,7 +96,7 @@ generateCodegenArtifactsFromSchema () {
|
|
|
96
96
|
generateArtifacts () {
|
|
97
97
|
describe "Generating codegen artifacts"
|
|
98
98
|
pushd "$RCT_SCRIPT_RN_DIR" >/dev/null || exit 1
|
|
99
|
-
"$NODE_BINARY" "scripts/generate-codegen-artifacts.js" --path "$RCT_SCRIPT_APP_PATH" --outputPath "$
|
|
99
|
+
"$NODE_BINARY" "scripts/generate-codegen-artifacts.js" --path "$RCT_SCRIPT_APP_PATH" --outputPath "$RCT_SCRIPT_OUTPUT_DIR" --targetPlatform "ios"
|
|
100
100
|
popd >/dev/null || exit 1
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -110,11 +110,9 @@ moveOutputs () {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
withCodegenDiscovery () {
|
|
113
|
-
setup_dirs
|
|
114
113
|
find_node
|
|
115
114
|
find_codegen
|
|
116
115
|
generateArtifacts
|
|
117
|
-
moveOutputs
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
noCodegenDiscovery () {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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;
|