React Native sync for revisions cae6350...419cc9c

Summary:
This sync includes the following changes:
- **[419cc9c37](https://github.com/facebook/react/commit/419cc9c37 )**: Fix: Hide new/updated nodes in already hidden tree ([#21929](https://github.com/facebook/react/pull/21929)) //<Andrew Clark>//
- **[4758e4533](https://github.com/facebook/react/commit/4758e4533 )**: React Native: Export getInspectorDataForInstance API ([#21572](https://github.com/facebook/react/pull/21572)) //<Brian Vaughn>//
- **[ae5d26154](https://github.com/facebook/react/commit/ae5d26154 )**: Fix: LegacyHidden should not toggle effects ([#21928](https://github.com/facebook/react/pull/21928)) //<Andrew Clark>//
- **[9ab90de60](https://github.com/facebook/react/commit/9ab90de60 )**: Clean-up: Move Offscreen logic from Suspense fiber ([#21925](https://github.com/facebook/react/pull/21925)) //<Andrew Clark>//
- **[3f62dec84](https://github.com/facebook/react/commit/3f62dec84 )**: Typo fix ([#21729](https://github.com/facebook/react/pull/21729)) //<Deniz Susman>//
- **[5579f1dc8](https://github.com/facebook/react/commit/5579f1dc8 )**: Update test comments with explanations ([#21857](https://github.com/facebook/react/pull/21857)) //<Ricky>//
- **[262ff7ad2](https://github.com/facebook/react/commit/262ff7ad2 )**: Refactor "disappear" logic into its own traversal ([#21901](https://github.com/facebook/react/pull/21901)) //<Andrew Clark>//
- **[34600f4fa](https://github.com/facebook/react/commit/34600f4fa )**: Refactor "reappear" logic into its own traversal ([#21898](https://github.com/facebook/react/pull/21898)) //<Andrew Clark>//
- **[310187264](https://github.com/facebook/react/commit/310187264 )**: Clean up flushSync flow types ([#21887](https://github.com/facebook/react/pull/21887)) //<Ricky>//
- **[a97b5ac07](https://github.com/facebook/react/commit/a97b5ac07 )**: [Bugfix] Don't hide/unhide unless visibility changes ([#21875](https://github.com/facebook/react/pull/21875)) //<Andrew Clark>//
- **[81346764b](https://github.com/facebook/react/commit/81346764b )**: Run persistent tests in more configurations in CI ([#21880](https://github.com/facebook/react/pull/21880)) //<Andrew Clark>//
- **[9090257e6](https://github.com/facebook/react/commit/9090257e6 )**: fix: restore execution context after RetryAfterError completed ([#21766](https://github.com/facebook/react/pull/21766)) //<Sebastian Silbermann>//
- **[14bac6193](https://github.com/facebook/react/commit/14bac6193 )**: Allow components to render undefined ([#21869](https://github.com/facebook/react/pull/21869)) //<Ricky>//
- **[87b67d319](https://github.com/facebook/react/commit/87b67d319 )**: Enable scheduling profiler flag for react-dom profiling builds ([#21867](https://github.com/facebook/react/pull/21867)) //<Brian Vaughn>//
- **[464f27572](https://github.com/facebook/react/commit/464f27572 )**: Update link to flow ([#21862](https://github.com/facebook/react/pull/21862)) //<Ehsan Hosseini>//
- **[9f5224a9c](https://github.com/facebook/react/commit/9f5224a9c )**: Restore DevTools console message ([#21864](https://github.com/facebook/react/pull/21864)) //<Dan Abramov>//
- **[a4ecd85e8](https://github.com/facebook/react/commit/a4ecd85e8 )**: act: Batch updates, even in legacy roots ([#21797](https://github.com/facebook/react/pull/21797)) //<Andrew Clark>//
- **[c2c6ea1fd](https://github.com/facebook/react/commit/c2c6ea1fd )**: Capture suspense boundaries with undefined fallbacks ([#21854](https://github.com/facebook/react/pull/21854)) //<Ricky>//
- **[0f09f14ae](https://github.com/facebook/react/commit/0f09f14ae )**: Check if already rendering before flushing //<Andrew Clark>//
- **[54e88ed12](https://github.com/facebook/react/commit/54e88ed12 )**: Bugfix: Flush legacy sync passive effects at beginning of event ([#21846](https://github.com/facebook/react/pull/21846)) //<Andrew Clark>//
- **[cb8afda18](https://github.com/facebook/react/commit/cb8afda18 )**: Add test for #21837 ([#21842](https://github.com/facebook/react/pull/21842)) //<Andrew Clark>//
- **[f85f429d5](https://github.com/facebook/react/commit/f85f429d5 )**: Use `act()` in ReactFabric tests ([#21839](https://github.com/facebook/react/pull/21839)) ([#21841](https://github.com/facebook/react/pull/21841)) //<Andrew Clark>//
- **[84639ab53](https://github.com/facebook/react/commit/84639ab53 )**: Guard against reused fibers in React Native commands ([#21837](https://github.com/facebook/react/pull/21837)) //<Timothy Yung>//
- **[c549bc491](https://github.com/facebook/react/commit/c549bc491 )**: Revert "Use `act()` in ReactFabric tests ([#21839](https://github.com/facebook/react/pull/21839))" ([#21840](https://github.com/facebook/react/pull/21840)) //<Timothy Yung>//
- **[59d3aca68](https://github.com/facebook/react/commit/59d3aca68 )**: Use `act()` in ReactFabric tests ([#21839](https://github.com/facebook/react/pull/21839)) //<Timothy Yung>//
- **[9ccc25a0e](https://github.com/facebook/react/commit/9ccc25a0e )**: Reverting recent flushSync changes ([#21816](https://github.com/facebook/react/pull/21816)) //<Brian Vaughn>//
- **[ed6c091fe](https://github.com/facebook/react/commit/ed6c091fe )**: Replace unbatchedUpdates with flushSync ([#21776](https://github.com/facebook/react/pull/21776)) //<Andrew Clark>//
- **[32eefcb3c](https://github.com/facebook/react/commit/32eefcb3c )**: Replace flushDiscreteUpdates with flushSync ([#21775](https://github.com/facebook/react/pull/21775)) //<Andrew Clark>//
- **[ab390c65e](https://github.com/facebook/react/commit/ab390c65e )**: ReactDebugHooks optionally includes fileName, and line/column numbers ([#21781](https://github.com/facebook/react/pull/21781)) //<Brian Vaughn>//
- **[c96761c7b](https://github.com/facebook/react/commit/c96761c7b )**: Delete batchedEventUpdates ([#21774](https://github.com/facebook/react/pull/21774)) //<Andrew Clark>//
- **[3e8c86c1c](https://github.com/facebook/react/commit/3e8c86c1c )**: fix: maxYieldInterval should not compare with currentTime directly in Scheduler-shouldYieldToHost //<郭帅彬>//
- **[d483463bc](https://github.com/facebook/react/commit/d483463bc )**: Updated scripts and config to replace "master" with "main" branch ([#21768](https://github.com/facebook/react/pull/21768)) //<Brian Vaughn>//

Changelog:
[General][Changed] - React Native sync for revisions cae6350...419cc9c

jest_e2e[run_all_tests]

Reviewed By: JoshuaGross

Differential Revision: D29913856

fbshipit-source-id: 58e4903766a312a64a17cfba0b0f684cf4bcacb0
This commit is contained in:
Rick Hanlon 2021-07-27 19:56:27 -07:00 коммит произвёл Facebook GitHub Bot
Родитель d3e836245b
Коммит d98ec75199
7 изменённых файлов: 1764 добавлений и 1560 удалений

Просмотреть файл

@ -1 +1 @@
cae635054e17a6f107a39d328649137b83f25972
419cc9c3799bc296c3c2a2c93880826aca680886

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<065d375daf77622fdbba58722ce9d961>>
* @generated SignedSource<<8066df1aa410b680ab0fb087ce46a9a4>>
*/
"use strict";
@ -930,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_216 = {
var injectedNamesToPlugins$jscomp$inline_220 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@ -965,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_216 = {
}
}
},
isOrderingDirty$jscomp$inline_217 = !1,
pluginName$jscomp$inline_218;
for (pluginName$jscomp$inline_218 in injectedNamesToPlugins$jscomp$inline_216)
isOrderingDirty$jscomp$inline_221 = !1,
pluginName$jscomp$inline_222;
for (pluginName$jscomp$inline_222 in injectedNamesToPlugins$jscomp$inline_220)
if (
injectedNamesToPlugins$jscomp$inline_216.hasOwnProperty(
pluginName$jscomp$inline_218
injectedNamesToPlugins$jscomp$inline_220.hasOwnProperty(
pluginName$jscomp$inline_222
)
) {
var pluginModule$jscomp$inline_219 =
injectedNamesToPlugins$jscomp$inline_216[pluginName$jscomp$inline_218];
var pluginModule$jscomp$inline_223 =
injectedNamesToPlugins$jscomp$inline_220[pluginName$jscomp$inline_222];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_218) ||
namesToPlugins[pluginName$jscomp$inline_218] !==
pluginModule$jscomp$inline_219
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_222) ||
namesToPlugins[pluginName$jscomp$inline_222] !==
pluginModule$jscomp$inline_223
) {
if (namesToPlugins[pluginName$jscomp$inline_218])
if (namesToPlugins[pluginName$jscomp$inline_222])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
pluginName$jscomp$inline_218 +
pluginName$jscomp$inline_222 +
"`."
);
namesToPlugins[
pluginName$jscomp$inline_218
] = pluginModule$jscomp$inline_219;
isOrderingDirty$jscomp$inline_217 = !0;
pluginName$jscomp$inline_222
] = pluginModule$jscomp$inline_223;
isOrderingDirty$jscomp$inline_221 = !0;
}
}
isOrderingDirty$jscomp$inline_217 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_221 && recomputePluginOrdering();
function getInstanceFromInstance(instanceHandle) {
return instanceHandle;
}
@ -2216,7 +2216,7 @@ function enqueueUpdate(fiber, update) {
((updateQueue = updateQueue.shared),
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
? ((fiber = updateQueue.interleaved),
null === fiber
? ((update.next = update),
@ -3053,60 +3053,49 @@ function ChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
return function(returnFiber, currentFirstChild, newChild, lanes) {
var isUnkeyedTopLevelFragment =
"object" === typeof newChild &&
"object" === typeof newChild &&
null !== newChild &&
newChild.type === REACT_FRAGMENT_TYPE &&
null === newChild.key;
isUnkeyedTopLevelFragment && (newChild = newChild.props.children);
null === newChild.key &&
(newChild = newChild.props.children);
if ("object" === typeof newChild && null !== newChild) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
a: {
var key = newChild.key;
for (
isUnkeyedTopLevelFragment = currentFirstChild;
null !== isUnkeyedTopLevelFragment;
var key = newChild.key, child = currentFirstChild;
null !== child;
) {
if (isUnkeyedTopLevelFragment.key === key) {
if (child.key === key) {
key = newChild.type;
if (key === REACT_FRAGMENT_TYPE) {
if (7 === isUnkeyedTopLevelFragment.tag) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
if (7 === child.tag) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
child,
newChild.props.children
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
} else if (isUnkeyedTopLevelFragment.elementType === key) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
newChild.props
);
} else if (child.elementType === key) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(child, newChild.props);
currentFirstChild.ref = coerceRef(
returnFiber,
isUnkeyedTopLevelFragment,
child,
newChild
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment);
deleteRemainingChildren(returnFiber, child);
break;
} else deleteChild(returnFiber, isUnkeyedTopLevelFragment);
isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;
} else deleteChild(returnFiber, child);
child = child.sibling;
}
newChild.type === REACT_FRAGMENT_TYPE
? ((currentFirstChild = createFiberFromFragment(
@ -3136,12 +3125,8 @@ function ChildReconciler(shouldTrackSideEffects) {
return placeSingleChild(returnFiber);
case REACT_PORTAL_TYPE:
a: {
for (
isUnkeyedTopLevelFragment = newChild.key;
null !== currentFirstChild;
) {
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
for (child = newChild.key; null !== currentFirstChild; ) {
if (currentFirstChild.key === child)
if (
4 === currentFirstChild.tag &&
currentFirstChild.stateNode.containerInfo ===
@ -3193,9 +3178,8 @@ function ChildReconciler(shouldTrackSideEffects) {
);
throwOnInvalidObjectType(returnFiber, newChild);
}
if ("string" === typeof newChild || "number" === typeof newChild)
return (
(newChild = "" + newChild),
return "string" === typeof newChild || "number" === typeof newChild
? ((newChild = "" + newChild),
null !== currentFirstChild && 6 === currentFirstChild.tag
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
(currentFirstChild = useFiber(currentFirstChild, newChild)),
@ -3209,20 +3193,8 @@ function ChildReconciler(shouldTrackSideEffects) {
)),
(currentFirstChild.return = returnFiber),
(returnFiber = currentFirstChild)),
placeSingleChild(returnFiber)
);
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
switch (returnFiber.tag) {
case 1:
case 0:
case 11:
case 15:
throw Error(
(getComponentNameFromFiber(returnFiber) || "Component") +
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
);
}
return deleteRemainingChildren(returnFiber, currentFirstChild);
placeSingleChild(returnFiber))
: deleteRemainingChildren(returnFiber, currentFirstChild);
};
}
var reconcileChildFibers = ChildReconciler(!0),
@ -3777,7 +3749,7 @@ function dispatchAction(fiber, queue, action) {
if (
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
) {
var interleaved = queue.interleaved;
null === interleaved
@ -4573,7 +4545,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
JSCompiler_temp
? ((showFallback = !0), (workInProgress.flags &= -129))
: (null !== current && null === current.memoizedState) ||
void 0 === nextProps.fallback ||
!0 === nextProps.unstable_avoidThisFallback ||
(suspenseContext |= 1);
push(suspenseStackCursor, suspenseContext & 1);
@ -4938,32 +4909,16 @@ appendAllChildren = function(
if (needsVisibilityToggle && isHidden)
throw Error("Not yet implemented.");
appendChildNode(parent.node, instance.node);
} else if (4 !== node.tag) {
if (
13 === node.tag &&
0 !== (node.flags & 4) &&
(instance = null !== node.memoizedState)
) {
var primaryChildParent = node.child;
if (
null !== primaryChildParent &&
(null !== primaryChildParent.child &&
((primaryChildParent.child.return = primaryChildParent),
appendAllChildren(parent, primaryChildParent, !0, instance)),
(instance = primaryChildParent.sibling),
null !== instance)
) {
instance.return = node;
node = instance;
continue;
}
}
if (null !== node.child) {
} else if (4 !== node.tag)
if (22 === node.tag && null !== node.memoizedState)
(instance = node.child),
null !== instance && (instance.return = node),
appendAllChildren(parent, node, !0, !0);
else if (null !== node.child) {
node.child.return = node;
node = node.child;
continue;
}
}
if (node === workInProgress) break;
for (; null === node.sibling; ) {
if (null === node.return || node.return === workInProgress) return;
@ -4991,37 +4946,16 @@ function appendAllChildrenToContainer(
if (needsVisibilityToggle && isHidden)
throw Error("Not yet implemented.");
appendChildNodeToSet(containerChildSet, instance.node);
} else if (4 !== node.tag) {
if (
13 === node.tag &&
0 !== (node.flags & 4) &&
(instance = null !== node.memoizedState)
) {
var primaryChildParent = node.child;
if (
null !== primaryChildParent &&
(null !== primaryChildParent.child &&
((primaryChildParent.child.return = primaryChildParent),
appendAllChildrenToContainer(
containerChildSet,
primaryChildParent,
!0,
instance
)),
(instance = primaryChildParent.sibling),
null !== instance)
) {
instance.return = node;
node = instance;
continue;
}
}
if (null !== node.child) {
} else if (4 !== node.tag)
if (22 === node.tag && null !== node.memoizedState)
(instance = node.child),
null !== instance && (instance.return = node),
appendAllChildrenToContainer(containerChildSet, node, !0, !0);
else if (null !== node.child) {
node.child.return = node;
node = node.child;
continue;
}
}
if (node === workInProgress) break;
for (; null === node.sibling; ) {
if (null === node.return || node.return === workInProgress) return;
@ -5262,10 +5196,13 @@ function completeWork(current, workInProgress, renderLanes) {
newProps = workInProgress.memoizedState;
if (0 !== (workInProgress.flags & 128))
return (workInProgress.lanes = renderLanes), workInProgress;
newProps = null !== newProps;
renderLanes = !1;
null !== current && (renderLanes = null !== current.memoizedState);
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
if (
null !== newProps &&
!renderLanes &&
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
)
if (
(null === current &&
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
@ -5287,7 +5224,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootRenderLanes
);
}
newProps && (workInProgress.flags |= 4);
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
bubbleProperties(workInProgress);
return null;
case 4:
@ -5439,11 +5376,12 @@ function completeWork(current, workInProgress, renderLanes) {
null !== current &&
(null !== current.memoizedState) !== renderLanes &&
"unstable-defer-without-hiding" !== newProps.mode &&
(workInProgress.flags |= 4),
(renderLanes &&
0 === (subtreeRenderLanes & 1073741824) &&
0 !== (workInProgress.mode & 1)) ||
bubbleProperties(workInProgress),
23 !== workInProgress.tag &&
(workInProgress.flags |= 4096),
renderLanes && 0 !== (workInProgress.mode & 1)
? 0 !== (subtreeRenderLanes & 1073741824) &&
bubbleProperties(workInProgress)
: bubbleProperties(workInProgress),
null
);
}
@ -5640,8 +5578,6 @@ function commitWork(current, finishedWork) {
case 12:
return;
case 13:
null !== finishedWork.memoizedState &&
(globalMostRecentFallbackTime = now());
attachSuspenseRetryListeners(finishedWork);
return;
case 19:
@ -5788,6 +5724,15 @@ function commitMutationEffects(root, firstChild) {
: (currentRef.current = null));
}
}
if (flags & 4096)
switch (root.tag) {
case 13:
if (null !== root.memoizedState) {
var current$86 = root.alternate;
if (null === current$86 || null === current$86.memoizedState)
globalMostRecentFallbackTime = now();
}
}
switch (flags & 2054) {
case 2:
root.flags &= -3;
@ -5823,15 +5768,15 @@ function commitLayoutEffects(finishedWork) {
for (nextEffect = finishedWork; null !== nextEffect; ) {
var fiber = nextEffect,
firstChild = fiber.child;
if (0 !== (fiber.subtreeFlags & 324) && null !== firstChild)
if (0 !== (fiber.subtreeFlags & 4420) && null !== firstChild)
(firstChild.return = fiber), (nextEffect = firstChild);
else
for (fiber = finishedWork; null !== nextEffect; ) {
firstChild = nextEffect;
if (0 !== (firstChild.flags & 324)) {
if (0 !== (firstChild.flags & 4420)) {
var current = firstChild.alternate;
try {
if (0 !== (firstChild.flags & 68))
if (0 !== (firstChild.flags & 4420))
switch (firstChild.tag) {
case 0:
case 11:
@ -5960,7 +5905,7 @@ var ceil = Math.ceil,
currentEventTime = -1,
currentEventTransitionLane = 0;
function requestEventTime() {
return 0 !== (executionContext & 24)
return 0 !== (executionContext & 6)
? now()
: -1 !== currentEventTime
? currentEventTime
@ -5968,7 +5913,7 @@ function requestEventTime() {
}
function requestUpdateLane(fiber) {
if (0 === (fiber.mode & 1)) return 1;
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
if (0 !== ReactCurrentBatchConfig.transition)
return (
@ -6006,18 +5951,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
if (null === root) return null;
markRootUpdated(root, lane, eventTime);
root === workInProgressRoot &&
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes));
1 === lane
? 0 !== (executionContext & 4) && 0 === (executionContext & 24)
? performSyncWorkOnRoot(root)
: (ensureRootIsScheduled(root, eventTime),
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()))
: ensureRootIsScheduled(root, eventTime);
ensureRootIsScheduled(root, eventTime);
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks());
return root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6107,7 +6049,7 @@ function ensureRootIsScheduled(root, currentTime) {
function performConcurrentWorkOnRoot(root, didTimeout) {
currentEventTime = -1;
currentEventTransitionLane = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
@ -6126,7 +6068,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
if (JSCompiler_inline_result && !didTimeout) {
didTimeout = lanes;
JSCompiler_inline_result = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
if (
workInProgressRoot !== root ||
@ -6153,12 +6095,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
} else didTimeout = renderRootSync(root, lanes);
if (0 !== didTimeout) {
2 === didTimeout &&
((executionContext |= 32),
((JSCompiler_inline_result = executionContext),
(executionContext |= 8),
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo)),
(JSCompiler_inline_result = getLanesToRetrySynchronouslyOnError(root)),
0 !== JSCompiler_inline_result &&
((lanes = JSCompiler_inline_result),
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
(prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
0 !== prevDispatcher &&
((lanes = prevDispatcher),
(didTimeout = renderRootSync(root, prevDispatcher))),
(executionContext = JSCompiler_inline_result));
if (1 === didTimeout)
throw ((originalCallbackNode = workInProgressRootFatalError),
prepareFreshStack(root, 0),
@ -6258,18 +6202,20 @@ function markRootSuspended$1(root, suspendedLanes) {
}
}
function performSyncWorkOnRoot(root) {
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
flushPassiveEffects();
var lanes = getNextLanes(root, 0);
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) {
executionContext |= 32;
var prevExecutionContext = executionContext;
executionContext |= 8;
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo));
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
executionContext = prevExecutionContext;
}
if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError),
@ -6417,19 +6363,17 @@ function handleError(root$jscomp$0, thrownValue) {
var JSCompiler_temp;
if ((JSCompiler_temp = 13 === workInProgress$30.tag)) {
var nextState = workInProgress$30.memoizedState;
if (null !== nextState)
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
else {
var props = workInProgress$30.memoizedProps;
JSCompiler_temp =
void 0 === props.fallback
? !1
: !0 !== props.unstable_avoidThisFallback
JSCompiler_temp =
null !== nextState
? null !== nextState.dehydrated
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
: !1
: !0 !==
workInProgress$30.memoizedProps.unstable_avoidThisFallback
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
if (JSCompiler_temp) {
var wakeables = workInProgress$30.updateQueue;
@ -6549,7 +6493,7 @@ function pushDispatcher() {
}
function renderRootSync(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
(workInProgressRoot === root && workInProgressRootRenderLanes === lanes) ||
prepareFreshStack(root, lanes);
@ -6635,7 +6579,7 @@ function commitRoot(root) {
function commitRootImpl(root, renderPriorityLevel) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects);
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var finishedWork = root.finishedWork,
lanes = root.finishedLanes;
@ -6668,7 +6612,7 @@ function commitRootImpl(root, renderPriorityLevel) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority = 1;
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
ReactCurrentOwner$2.current = null;
commitBeforeMutationEffects(root, finishedWork);
commitMutationEffects(root, finishedWork);
@ -6697,7 +6641,6 @@ function commitRootImpl(root, renderPriorityLevel) {
(root = firstUncaughtError),
(firstUncaughtError = null),
root);
if (0 !== (executionContext & 4)) return null;
0 !== (pendingPassiveEffectsLanes & 1) &&
0 !== root.tag &&
flushPassiveEffects();
@ -6718,10 +6661,10 @@ function flushPassiveEffects() {
renderPriority = rootWithPendingPassiveEffects;
rootWithPendingPassiveEffects = null;
pendingPassiveEffectsLanes = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Cannot flush passive effects while already rendering.");
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
var fiber = nextEffect,
child = fiber.child;
@ -7731,6 +7674,95 @@ function updateContainer(element, container, parentComponent, callback) {
function emptyFindFiberByHostInstance() {
return null;
}
var emptyObject$1 = {},
createHierarchy,
getHostNode,
getHostProps,
lastNonHostInstance,
getOwnerHierarchy,
traverseOwnerTreeUp;
createHierarchy = function(fiberHierarchy) {
return fiberHierarchy.map(function(fiber) {
return {
name: getComponentNameFromType(fiber.type),
getInspectorData: function(findNodeHandle) {
return {
props: getHostProps(fiber),
source: fiber._debugSource,
measure: function(callback) {
var hostFiber = findCurrentHostFiber(fiber);
if (
(hostFiber =
null != hostFiber &&
null !== hostFiber.stateNode &&
hostFiber.stateNode.node)
)
nativeFabricUIManager.measure(hostFiber, callback);
else
return ReactNativePrivateInterface.UIManager.measure(
getHostNode(fiber, findNodeHandle),
callback
);
}
};
}
};
});
};
getHostNode = function(fiber, findNodeHandle) {
for (var hostNode; fiber; ) {
null !== fiber.stateNode &&
5 === fiber.tag &&
(hostNode = findNodeHandle(fiber.stateNode));
if (hostNode) return hostNode;
fiber = fiber.child;
}
return null;
};
getHostProps = function(fiber) {
return (fiber = findCurrentHostFiber(fiber))
? fiber.memoizedProps || emptyObject$1
: emptyObject$1;
};
exports.getInspectorDataForInstance = function(closestInstance) {
if (!closestInstance)
return {
hierarchy: [],
props: emptyObject$1,
selectedIndex: null,
source: null
};
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
var fiberHierarchy = getOwnerHierarchy(closestInstance),
instance = lastNonHostInstance(fiberHierarchy);
closestInstance = createHierarchy(fiberHierarchy);
var props = getHostProps(instance),
source = instance._debugSource;
fiberHierarchy = fiberHierarchy.indexOf(instance);
return {
hierarchy: closestInstance,
props: props,
selectedIndex: fiberHierarchy,
source: source
};
};
getOwnerHierarchy = function(instance) {
var hierarchy = [];
traverseOwnerTreeUp(hierarchy, instance);
return hierarchy;
};
lastNonHostInstance = function(hierarchy) {
for (var i = hierarchy.length - 1; 1 < i; i--) {
var instance = hierarchy[i];
if (5 !== instance.tag) return instance;
}
return hierarchy[0];
};
traverseOwnerTreeUp = function(hierarchy, instance) {
instance &&
(hierarchy.unshift(instance),
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
};
function findNodeHandle(componentOrHandle) {
if (null == componentOrHandle) return null;
if ("number" === typeof componentOrHandle) return componentOrHandle;
@ -7757,10 +7789,10 @@ batchedUpdatesImpl = function(fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_939 = {
devToolsConfig$jscomp$inline_949 = {
findFiberByHostInstance: getInstanceFromInstance,
bundleType: 0,
version: "18.0.0-cae635054-20210626",
version: "18.0.0-419cc9c37-20210726",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function() {
@ -7775,11 +7807,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1177 = {
bundleType: devToolsConfig$jscomp$inline_939.bundleType,
version: devToolsConfig$jscomp$inline_939.version,
rendererPackageName: devToolsConfig$jscomp$inline_939.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_939.rendererConfig,
var internals$jscomp$inline_1186 = {
bundleType: devToolsConfig$jscomp$inline_949.bundleType,
version: devToolsConfig$jscomp$inline_949.version,
rendererPackageName: devToolsConfig$jscomp$inline_949.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_949.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@ -7795,26 +7827,26 @@ var internals$jscomp$inline_1177 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_939.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_949.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.0.0-cae635054-20210626"
reconcilerVersion: "18.0.0-419cc9c37-20210726"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1178 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1187 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1178.isDisabled &&
hook$jscomp$inline_1178.supportsFiber
!hook$jscomp$inline_1187.isDisabled &&
hook$jscomp$inline_1187.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1178.inject(
internals$jscomp$inline_1177
(rendererID = hook$jscomp$inline_1187.inject(
internals$jscomp$inline_1186
)),
(injectedHook = hook$jscomp$inline_1178);
(injectedHook = hook$jscomp$inline_1187);
} catch (err) {}
}
exports.createPortal = function(children, containerTag) {
@ -7827,12 +7859,10 @@ exports.createPortal = function(children, containerTag) {
};
exports.dispatchCommand = function(handle, command, args) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.dispatchCommand(
handle._internalInstanceHandle.stateNode.node,
command,
args
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
handle._nativeTag,
command,
@ -7878,11 +7908,10 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
};
exports.sendAccessibilityEvent = function(handle, eventType) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.sendAccessibilityEvent(
handle._internalInstanceHandle.stateNode.node,
eventType
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
handle._nativeTag,
eventType

Просмотреть файл

@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6166092fac6dde5ba6dc59392f7ac520>>
* @generated SignedSource<<ec4baa84284708f041af7b0602db24d0>>
*/
"use strict";
@ -930,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_224 = {
var injectedNamesToPlugins$jscomp$inline_228 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@ -965,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_224 = {
}
}
},
isOrderingDirty$jscomp$inline_225 = !1,
pluginName$jscomp$inline_226;
for (pluginName$jscomp$inline_226 in injectedNamesToPlugins$jscomp$inline_224)
isOrderingDirty$jscomp$inline_229 = !1,
pluginName$jscomp$inline_230;
for (pluginName$jscomp$inline_230 in injectedNamesToPlugins$jscomp$inline_228)
if (
injectedNamesToPlugins$jscomp$inline_224.hasOwnProperty(
pluginName$jscomp$inline_226
injectedNamesToPlugins$jscomp$inline_228.hasOwnProperty(
pluginName$jscomp$inline_230
)
) {
var pluginModule$jscomp$inline_227 =
injectedNamesToPlugins$jscomp$inline_224[pluginName$jscomp$inline_226];
var pluginModule$jscomp$inline_231 =
injectedNamesToPlugins$jscomp$inline_228[pluginName$jscomp$inline_230];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_226) ||
namesToPlugins[pluginName$jscomp$inline_226] !==
pluginModule$jscomp$inline_227
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_230) ||
namesToPlugins[pluginName$jscomp$inline_230] !==
pluginModule$jscomp$inline_231
) {
if (namesToPlugins[pluginName$jscomp$inline_226])
if (namesToPlugins[pluginName$jscomp$inline_230])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
pluginName$jscomp$inline_226 +
pluginName$jscomp$inline_230 +
"`."
);
namesToPlugins[
pluginName$jscomp$inline_226
] = pluginModule$jscomp$inline_227;
isOrderingDirty$jscomp$inline_225 = !0;
pluginName$jscomp$inline_230
] = pluginModule$jscomp$inline_231;
isOrderingDirty$jscomp$inline_229 = !0;
}
}
isOrderingDirty$jscomp$inline_225 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_229 && recomputePluginOrdering();
function getInstanceFromInstance(instanceHandle) {
return instanceHandle;
}
@ -2264,7 +2264,7 @@ function enqueueUpdate(fiber, update) {
((updateQueue = updateQueue.shared),
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
? ((fiber = updateQueue.interleaved),
null === fiber
? ((update.next = update),
@ -3101,60 +3101,49 @@ function ChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
return function(returnFiber, currentFirstChild, newChild, lanes) {
var isUnkeyedTopLevelFragment =
"object" === typeof newChild &&
"object" === typeof newChild &&
null !== newChild &&
newChild.type === REACT_FRAGMENT_TYPE &&
null === newChild.key;
isUnkeyedTopLevelFragment && (newChild = newChild.props.children);
null === newChild.key &&
(newChild = newChild.props.children);
if ("object" === typeof newChild && null !== newChild) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
a: {
var key = newChild.key;
for (
isUnkeyedTopLevelFragment = currentFirstChild;
null !== isUnkeyedTopLevelFragment;
var key = newChild.key, child = currentFirstChild;
null !== child;
) {
if (isUnkeyedTopLevelFragment.key === key) {
if (child.key === key) {
key = newChild.type;
if (key === REACT_FRAGMENT_TYPE) {
if (7 === isUnkeyedTopLevelFragment.tag) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
if (7 === child.tag) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
child,
newChild.props.children
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
} else if (isUnkeyedTopLevelFragment.elementType === key) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
newChild.props
);
} else if (child.elementType === key) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(child, newChild.props);
currentFirstChild.ref = coerceRef(
returnFiber,
isUnkeyedTopLevelFragment,
child,
newChild
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment);
deleteRemainingChildren(returnFiber, child);
break;
} else deleteChild(returnFiber, isUnkeyedTopLevelFragment);
isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;
} else deleteChild(returnFiber, child);
child = child.sibling;
}
newChild.type === REACT_FRAGMENT_TYPE
? ((currentFirstChild = createFiberFromFragment(
@ -3184,12 +3173,8 @@ function ChildReconciler(shouldTrackSideEffects) {
return placeSingleChild(returnFiber);
case REACT_PORTAL_TYPE:
a: {
for (
isUnkeyedTopLevelFragment = newChild.key;
null !== currentFirstChild;
) {
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
for (child = newChild.key; null !== currentFirstChild; ) {
if (currentFirstChild.key === child)
if (
4 === currentFirstChild.tag &&
currentFirstChild.stateNode.containerInfo ===
@ -3241,9 +3226,8 @@ function ChildReconciler(shouldTrackSideEffects) {
);
throwOnInvalidObjectType(returnFiber, newChild);
}
if ("string" === typeof newChild || "number" === typeof newChild)
return (
(newChild = "" + newChild),
return "string" === typeof newChild || "number" === typeof newChild
? ((newChild = "" + newChild),
null !== currentFirstChild && 6 === currentFirstChild.tag
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
(currentFirstChild = useFiber(currentFirstChild, newChild)),
@ -3257,20 +3241,8 @@ function ChildReconciler(shouldTrackSideEffects) {
)),
(currentFirstChild.return = returnFiber),
(returnFiber = currentFirstChild)),
placeSingleChild(returnFiber)
);
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
switch (returnFiber.tag) {
case 1:
case 0:
case 11:
case 15:
throw Error(
(getComponentNameFromFiber(returnFiber) || "Component") +
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
);
}
return deleteRemainingChildren(returnFiber, currentFirstChild);
placeSingleChild(returnFiber))
: deleteRemainingChildren(returnFiber, currentFirstChild);
};
}
var reconcileChildFibers = ChildReconciler(!0),
@ -3825,7 +3797,7 @@ function dispatchAction(fiber, queue, action) {
if (
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
) {
var interleaved = queue.interleaved;
null === interleaved
@ -4683,7 +4655,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
JSCompiler_temp
? ((showFallback = !0), (workInProgress.flags &= -129))
: (null !== current && null === current.memoizedState) ||
void 0 === nextProps.fallback ||
!0 === nextProps.unstable_avoidThisFallback ||
(suspenseContext |= 1);
push(suspenseStackCursor, suspenseContext & 1);
@ -5059,32 +5030,16 @@ appendAllChildren = function(
if (needsVisibilityToggle && isHidden)
throw Error("Not yet implemented.");
appendChildNode(parent.node, instance.node);
} else if (4 !== node.tag) {
if (
13 === node.tag &&
0 !== (node.flags & 4) &&
(instance = null !== node.memoizedState)
) {
var primaryChildParent = node.child;
if (
null !== primaryChildParent &&
(null !== primaryChildParent.child &&
((primaryChildParent.child.return = primaryChildParent),
appendAllChildren(parent, primaryChildParent, !0, instance)),
(instance = primaryChildParent.sibling),
null !== instance)
) {
instance.return = node;
node = instance;
continue;
}
}
if (null !== node.child) {
} else if (4 !== node.tag)
if (22 === node.tag && null !== node.memoizedState)
(instance = node.child),
null !== instance && (instance.return = node),
appendAllChildren(parent, node, !0, !0);
else if (null !== node.child) {
node.child.return = node;
node = node.child;
continue;
}
}
if (node === workInProgress) break;
for (; null === node.sibling; ) {
if (null === node.return || node.return === workInProgress) return;
@ -5112,37 +5067,16 @@ function appendAllChildrenToContainer(
if (needsVisibilityToggle && isHidden)
throw Error("Not yet implemented.");
appendChildNodeToSet(containerChildSet, instance.node);
} else if (4 !== node.tag) {
if (
13 === node.tag &&
0 !== (node.flags & 4) &&
(instance = null !== node.memoizedState)
) {
var primaryChildParent = node.child;
if (
null !== primaryChildParent &&
(null !== primaryChildParent.child &&
((primaryChildParent.child.return = primaryChildParent),
appendAllChildrenToContainer(
containerChildSet,
primaryChildParent,
!0,
instance
)),
(instance = primaryChildParent.sibling),
null !== instance)
) {
instance.return = node;
node = instance;
continue;
}
}
if (null !== node.child) {
} else if (4 !== node.tag)
if (22 === node.tag && null !== node.memoizedState)
(instance = node.child),
null !== instance && (instance.return = node),
appendAllChildrenToContainer(containerChildSet, node, !0, !0);
else if (null !== node.child) {
node.child.return = node;
node = node.child;
continue;
}
}
if (node === workInProgress) break;
for (; null === node.sibling; ) {
if (null === node.return || node.return === workInProgress) return;
@ -5427,7 +5361,11 @@ function completeWork(current, workInProgress, renderLanes) {
newProps = null !== newProps;
renderLanes = !1;
null !== current && (renderLanes = null !== current.memoizedState);
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
if (
newProps &&
!renderLanes &&
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
)
if (
(null === current &&
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
@ -5449,7 +5387,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootRenderLanes
);
}
newProps && (workInProgress.flags |= 4);
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
bubbleProperties(workInProgress);
0 !== (workInProgress.mode & 2) &&
newProps &&
@ -5608,11 +5546,12 @@ function completeWork(current, workInProgress, renderLanes) {
null !== current &&
(null !== current.memoizedState) !== renderLanes &&
"unstable-defer-without-hiding" !== newProps.mode &&
(workInProgress.flags |= 4),
(renderLanes &&
0 === (subtreeRenderLanes & 1073741824) &&
0 !== (workInProgress.mode & 1)) ||
bubbleProperties(workInProgress),
23 !== workInProgress.tag &&
(workInProgress.flags |= 4096),
renderLanes && 0 !== (workInProgress.mode & 1)
? 0 !== (subtreeRenderLanes & 1073741824) &&
bubbleProperties(workInProgress)
: bubbleProperties(workInProgress),
null
);
}
@ -5830,8 +5769,6 @@ function commitWork(current, finishedWork) {
case 12:
return;
case 13:
null !== finishedWork.memoizedState &&
(globalMostRecentFallbackTime = now());
attachSuspenseRetryListeners(finishedWork);
return;
case 19:
@ -6003,6 +5940,15 @@ function commitMutationEffects(root, firstChild, committedLanes) {
else currentRef.current = null;
}
}
if (flags & 4096)
switch (root.tag) {
case 13:
if (null !== root.memoizedState) {
var current$94 = root.alternate;
if (null === current$94 || null === current$94.memoizedState)
globalMostRecentFallbackTime = now();
}
}
switch (flags & 2054) {
case 2:
root.flags &= -3;
@ -6042,16 +5988,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
if (
((root = nextEffect),
(committedLanes = root.child),
0 !== (root.subtreeFlags & 324) && null !== committedLanes)
0 !== (root.subtreeFlags & 4420) && null !== committedLanes)
)
(committedLanes.return = root), (nextEffect = committedLanes);
else
for (root = finishedWork; null !== nextEffect; ) {
committedLanes = nextEffect;
if (0 !== (committedLanes.flags & 324)) {
if (0 !== (committedLanes.flags & 4420)) {
var current = committedLanes.alternate;
try {
if (0 !== (committedLanes.flags & 68))
if (0 !== (committedLanes.flags & 4420))
switch (committedLanes.tag) {
case 0:
case 11:
@ -6261,7 +6207,7 @@ var ceil = Math.ceil,
currentEventTime = -1,
currentEventTransitionLane = 0;
function requestEventTime() {
return 0 !== (executionContext & 24)
return 0 !== (executionContext & 6)
? now()
: -1 !== currentEventTime
? currentEventTime
@ -6269,7 +6215,7 @@ function requestEventTime() {
}
function requestUpdateLane(fiber) {
if (0 === (fiber.mode & 1)) return 1;
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
if (0 !== ReactCurrentBatchConfig.transition)
return (
@ -6308,18 +6254,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
markRootUpdated(root, lane, eventTime);
root === workInProgressRoot &&
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes));
1 === lane
? 0 !== (executionContext & 4) && 0 === (executionContext & 24)
? performSyncWorkOnRoot(root)
: (ensureRootIsScheduled(root, eventTime),
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()))
: ensureRootIsScheduled(root, eventTime);
ensureRootIsScheduled(root, eventTime);
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks());
return root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6410,7 +6353,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
nestedUpdateScheduled = currentUpdateIsNested = !1;
currentEventTime = -1;
currentEventTransitionLane = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
@ -6429,7 +6372,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
if (JSCompiler_inline_result && !didTimeout) {
didTimeout = lanes;
JSCompiler_inline_result = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
if (
workInProgressRoot !== root ||
@ -6464,12 +6407,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
} else didTimeout = renderRootSync(root, lanes);
if (0 !== didTimeout) {
2 === didTimeout &&
((executionContext |= 32),
((JSCompiler_inline_result = executionContext),
(executionContext |= 8),
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo)),
(JSCompiler_inline_result = getLanesToRetrySynchronouslyOnError(root)),
0 !== JSCompiler_inline_result &&
((lanes = JSCompiler_inline_result),
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
(prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
0 !== prevDispatcher &&
((lanes = prevDispatcher),
(didTimeout = renderRootSync(root, prevDispatcher))),
(executionContext = JSCompiler_inline_result));
if (1 === didTimeout)
throw ((originalCallbackNode = workInProgressRootFatalError),
prepareFreshStack(root, 0),
@ -6570,18 +6515,20 @@ function markRootSuspended$1(root, suspendedLanes) {
function performSyncWorkOnRoot(root) {
currentUpdateIsNested = nestedUpdateScheduled;
nestedUpdateScheduled = !1;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
flushPassiveEffects();
var lanes = getNextLanes(root, 0);
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) {
executionContext |= 32;
var prevExecutionContext = executionContext;
executionContext |= 8;
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo));
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
executionContext = prevExecutionContext;
}
if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError),
@ -6732,19 +6679,17 @@ function handleError(root$jscomp$0, thrownValue) {
var JSCompiler_temp;
if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
var nextState = workInProgress$32.memoizedState;
if (null !== nextState)
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
else {
var props = workInProgress$32.memoizedProps;
JSCompiler_temp =
void 0 === props.fallback
? !1
: !0 !== props.unstable_avoidThisFallback
JSCompiler_temp =
null !== nextState
? null !== nextState.dehydrated
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
: !1
: !0 !==
workInProgress$32.memoizedProps.unstable_avoidThisFallback
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
if (JSCompiler_temp) {
var wakeables = workInProgress$32.updateQueue;
@ -6865,7 +6810,7 @@ function pushDispatcher() {
}
function renderRootSync(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
if (isDevToolsPresent) {
@ -6980,7 +6925,7 @@ function commitRoot(root) {
function commitRootImpl(root, renderPriorityLevel) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects);
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var finishedWork = root.finishedWork,
lanes = root.finishedLanes;
@ -7013,7 +6958,7 @@ function commitRootImpl(root, renderPriorityLevel) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority = 1;
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
ReactCurrentOwner$2.current = null;
commitBeforeMutationEffects(root, finishedWork);
commitTime = now$1();
@ -7045,7 +6990,6 @@ function commitRootImpl(root, renderPriorityLevel) {
(root = firstUncaughtError),
(firstUncaughtError = null),
root);
if (0 !== (executionContext & 4)) return null;
0 !== (pendingPassiveEffectsLanes & 1) &&
0 !== root.tag &&
flushPassiveEffects();
@ -7066,10 +7010,10 @@ function flushPassiveEffects() {
renderPriority = rootWithPendingPassiveEffects;
rootWithPendingPassiveEffects = null;
pendingPassiveEffectsLanes = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Cannot flush passive effects while already rendering.");
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
var fiber = nextEffect,
child = fiber.child;
@ -8173,6 +8117,95 @@ function updateContainer(element, container, parentComponent, callback) {
function emptyFindFiberByHostInstance() {
return null;
}
var emptyObject$1 = {},
createHierarchy,
getHostNode,
getHostProps,
lastNonHostInstance,
getOwnerHierarchy,
traverseOwnerTreeUp;
createHierarchy = function(fiberHierarchy) {
return fiberHierarchy.map(function(fiber) {
return {
name: getComponentNameFromType(fiber.type),
getInspectorData: function(findNodeHandle) {
return {
props: getHostProps(fiber),
source: fiber._debugSource,
measure: function(callback) {
var hostFiber = findCurrentHostFiber(fiber);
if (
(hostFiber =
null != hostFiber &&
null !== hostFiber.stateNode &&
hostFiber.stateNode.node)
)
nativeFabricUIManager.measure(hostFiber, callback);
else
return ReactNativePrivateInterface.UIManager.measure(
getHostNode(fiber, findNodeHandle),
callback
);
}
};
}
};
});
};
getHostNode = function(fiber, findNodeHandle) {
for (var hostNode; fiber; ) {
null !== fiber.stateNode &&
5 === fiber.tag &&
(hostNode = findNodeHandle(fiber.stateNode));
if (hostNode) return hostNode;
fiber = fiber.child;
}
return null;
};
getHostProps = function(fiber) {
return (fiber = findCurrentHostFiber(fiber))
? fiber.memoizedProps || emptyObject$1
: emptyObject$1;
};
exports.getInspectorDataForInstance = function(closestInstance) {
if (!closestInstance)
return {
hierarchy: [],
props: emptyObject$1,
selectedIndex: null,
source: null
};
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
var fiberHierarchy = getOwnerHierarchy(closestInstance),
instance = lastNonHostInstance(fiberHierarchy);
closestInstance = createHierarchy(fiberHierarchy);
var props = getHostProps(instance),
source = instance._debugSource;
fiberHierarchy = fiberHierarchy.indexOf(instance);
return {
hierarchy: closestInstance,
props: props,
selectedIndex: fiberHierarchy,
source: source
};
};
getOwnerHierarchy = function(instance) {
var hierarchy = [];
traverseOwnerTreeUp(hierarchy, instance);
return hierarchy;
};
lastNonHostInstance = function(hierarchy) {
for (var i = hierarchy.length - 1; 1 < i; i--) {
var instance = hierarchy[i];
if (5 !== instance.tag) return instance;
}
return hierarchy[0];
};
traverseOwnerTreeUp = function(hierarchy, instance) {
instance &&
(hierarchy.unshift(instance),
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
};
function findNodeHandle(componentOrHandle) {
if (null == componentOrHandle) return null;
if ("number" === typeof componentOrHandle) return componentOrHandle;
@ -8199,10 +8232,10 @@ batchedUpdatesImpl = function(fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_969 = {
devToolsConfig$jscomp$inline_979 = {
findFiberByHostInstance: getInstanceFromInstance,
bundleType: 0,
version: "18.0.0-cae635054-20210626",
version: "18.0.0-419cc9c37-20210726",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function() {
@ -8217,11 +8250,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1227 = {
bundleType: devToolsConfig$jscomp$inline_969.bundleType,
version: devToolsConfig$jscomp$inline_969.version,
rendererPackageName: devToolsConfig$jscomp$inline_969.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_969.rendererConfig,
var internals$jscomp$inline_1236 = {
bundleType: devToolsConfig$jscomp$inline_979.bundleType,
version: devToolsConfig$jscomp$inline_979.version,
rendererPackageName: devToolsConfig$jscomp$inline_979.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_979.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@ -8237,26 +8270,26 @@ var internals$jscomp$inline_1227 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_969.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_979.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.0.0-cae635054-20210626"
reconcilerVersion: "18.0.0-419cc9c37-20210726"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1228 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1228.isDisabled &&
hook$jscomp$inline_1228.supportsFiber
!hook$jscomp$inline_1237.isDisabled &&
hook$jscomp$inline_1237.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1228.inject(
internals$jscomp$inline_1227
(rendererID = hook$jscomp$inline_1237.inject(
internals$jscomp$inline_1236
)),
(injectedHook = hook$jscomp$inline_1228);
(injectedHook = hook$jscomp$inline_1237);
} catch (err) {}
}
exports.createPortal = function(children, containerTag) {
@ -8269,12 +8302,10 @@ exports.createPortal = function(children, containerTag) {
};
exports.dispatchCommand = function(handle, command, args) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.dispatchCommand(
handle._internalInstanceHandle.stateNode.node,
command,
args
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
handle._nativeTag,
command,
@ -8322,11 +8353,10 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
};
exports.sendAccessibilityEvent = function(handle, eventType) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.sendAccessibilityEvent(
handle._internalInstanceHandle.stateNode.node,
eventType
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
handle._nativeTag,
eventType

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<bea4ed702f3d50248708067249bc66f2>>
* @generated SignedSource<<d971e35e5aff7b80bf3e25f90ae4defb>>
*/
"use strict";
@ -930,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_219 = {
var injectedNamesToPlugins$jscomp$inline_224 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@ -965,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_219 = {
}
}
},
isOrderingDirty$jscomp$inline_220 = !1,
pluginName$jscomp$inline_221;
for (pluginName$jscomp$inline_221 in injectedNamesToPlugins$jscomp$inline_219)
isOrderingDirty$jscomp$inline_225 = !1,
pluginName$jscomp$inline_226;
for (pluginName$jscomp$inline_226 in injectedNamesToPlugins$jscomp$inline_224)
if (
injectedNamesToPlugins$jscomp$inline_219.hasOwnProperty(
pluginName$jscomp$inline_221
injectedNamesToPlugins$jscomp$inline_224.hasOwnProperty(
pluginName$jscomp$inline_226
)
) {
var pluginModule$jscomp$inline_222 =
injectedNamesToPlugins$jscomp$inline_219[pluginName$jscomp$inline_221];
var pluginModule$jscomp$inline_227 =
injectedNamesToPlugins$jscomp$inline_224[pluginName$jscomp$inline_226];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_221) ||
namesToPlugins[pluginName$jscomp$inline_221] !==
pluginModule$jscomp$inline_222
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_226) ||
namesToPlugins[pluginName$jscomp$inline_226] !==
pluginModule$jscomp$inline_227
) {
if (namesToPlugins[pluginName$jscomp$inline_221])
if (namesToPlugins[pluginName$jscomp$inline_226])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
pluginName$jscomp$inline_221 +
pluginName$jscomp$inline_226 +
"`."
);
namesToPlugins[
pluginName$jscomp$inline_221
] = pluginModule$jscomp$inline_222;
isOrderingDirty$jscomp$inline_220 = !0;
pluginName$jscomp$inline_226
] = pluginModule$jscomp$inline_227;
isOrderingDirty$jscomp$inline_225 = !0;
}
}
isOrderingDirty$jscomp$inline_220 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_225 && recomputePluginOrdering();
var instanceCache = new Map(),
instanceProps = new Map();
function getInstanceFromTag(tag) {
@ -2236,7 +2236,7 @@ function enqueueUpdate(fiber, update) {
((updateQueue = updateQueue.shared),
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
? ((fiber = updateQueue.interleaved),
null === fiber
? ((update.next = update),
@ -3073,60 +3073,49 @@ function ChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
return function(returnFiber, currentFirstChild, newChild, lanes) {
var isUnkeyedTopLevelFragment =
"object" === typeof newChild &&
"object" === typeof newChild &&
null !== newChild &&
newChild.type === REACT_FRAGMENT_TYPE &&
null === newChild.key;
isUnkeyedTopLevelFragment && (newChild = newChild.props.children);
null === newChild.key &&
(newChild = newChild.props.children);
if ("object" === typeof newChild && null !== newChild) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
a: {
var key = newChild.key;
for (
isUnkeyedTopLevelFragment = currentFirstChild;
null !== isUnkeyedTopLevelFragment;
var key = newChild.key, child = currentFirstChild;
null !== child;
) {
if (isUnkeyedTopLevelFragment.key === key) {
if (child.key === key) {
key = newChild.type;
if (key === REACT_FRAGMENT_TYPE) {
if (7 === isUnkeyedTopLevelFragment.tag) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
if (7 === child.tag) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
child,
newChild.props.children
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
} else if (isUnkeyedTopLevelFragment.elementType === key) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
newChild.props
);
} else if (child.elementType === key) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(child, newChild.props);
currentFirstChild.ref = coerceRef(
returnFiber,
isUnkeyedTopLevelFragment,
child,
newChild
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment);
deleteRemainingChildren(returnFiber, child);
break;
} else deleteChild(returnFiber, isUnkeyedTopLevelFragment);
isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;
} else deleteChild(returnFiber, child);
child = child.sibling;
}
newChild.type === REACT_FRAGMENT_TYPE
? ((currentFirstChild = createFiberFromFragment(
@ -3156,12 +3145,8 @@ function ChildReconciler(shouldTrackSideEffects) {
return placeSingleChild(returnFiber);
case REACT_PORTAL_TYPE:
a: {
for (
isUnkeyedTopLevelFragment = newChild.key;
null !== currentFirstChild;
) {
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
for (child = newChild.key; null !== currentFirstChild; ) {
if (currentFirstChild.key === child)
if (
4 === currentFirstChild.tag &&
currentFirstChild.stateNode.containerInfo ===
@ -3213,9 +3198,8 @@ function ChildReconciler(shouldTrackSideEffects) {
);
throwOnInvalidObjectType(returnFiber, newChild);
}
if ("string" === typeof newChild || "number" === typeof newChild)
return (
(newChild = "" + newChild),
return "string" === typeof newChild || "number" === typeof newChild
? ((newChild = "" + newChild),
null !== currentFirstChild && 6 === currentFirstChild.tag
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
(currentFirstChild = useFiber(currentFirstChild, newChild)),
@ -3229,20 +3213,8 @@ function ChildReconciler(shouldTrackSideEffects) {
)),
(currentFirstChild.return = returnFiber),
(returnFiber = currentFirstChild)),
placeSingleChild(returnFiber)
);
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
switch (returnFiber.tag) {
case 1:
case 0:
case 11:
case 15:
throw Error(
(getComponentNameFromFiber(returnFiber) || "Component") +
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
);
}
return deleteRemainingChildren(returnFiber, currentFirstChild);
placeSingleChild(returnFiber))
: deleteRemainingChildren(returnFiber, currentFirstChild);
};
}
var reconcileChildFibers = ChildReconciler(!0),
@ -3797,7 +3769,7 @@ function dispatchAction(fiber, queue, action) {
if (
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
) {
var interleaved = queue.interleaved;
null === interleaved
@ -4587,7 +4559,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
JSCompiler_temp
? ((showFallback = !0), (workInProgress.flags &= -129))
: (null !== current && null === current.memoizedState) ||
void 0 === nextProps.fallback ||
!0 === nextProps.unstable_avoidThisFallback ||
(suspenseContext |= 1);
push(suspenseStackCursor, suspenseContext & 1);
@ -5122,10 +5093,13 @@ function completeWork(current, workInProgress, renderLanes) {
newProps = workInProgress.memoizedState;
if (0 !== (workInProgress.flags & 128))
return (workInProgress.lanes = renderLanes), workInProgress;
newProps = null !== newProps;
renderLanes = !1;
null !== current && (renderLanes = null !== current.memoizedState);
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
if (
null !== newProps &&
!renderLanes &&
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
)
if (
(null === current &&
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
@ -5147,7 +5121,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootRenderLanes
);
}
if (newProps || renderLanes) workInProgress.flags |= 4;
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
bubbleProperties(workInProgress);
return null;
case 4:
@ -5299,11 +5273,16 @@ function completeWork(current, workInProgress, renderLanes) {
null !== current &&
(null !== current.memoizedState) !== renderLanes &&
"unstable-defer-without-hiding" !== newProps.mode &&
(workInProgress.flags |= 4),
(renderLanes &&
0 === (subtreeRenderLanes & 1073741824) &&
0 !== (workInProgress.mode & 1)) ||
bubbleProperties(workInProgress),
23 !== workInProgress.tag &&
(workInProgress.flags |= 4096),
renderLanes && 0 !== (workInProgress.mode & 1)
? 0 !== (subtreeRenderLanes & 1073741824) &&
(bubbleProperties(workInProgress),
23 !== workInProgress.tag &&
workInProgress.subtreeFlags & 6 &&
"unstable-defer-without-hiding" !== newProps.mode &&
(workInProgress.flags |= 4096))
: bubbleProperties(workInProgress),
null
);
}
@ -5473,68 +5452,6 @@ function commitHookEffectListMount(tag, finishedWork) {
} while (effect !== finishedWork);
}
}
function hideOrUnhideAllChildren(finishedWork, isHidden) {
for (var hostSubtreeRoot = null, node = finishedWork; ; ) {
if (5 === node.tag) {
if (null === hostSubtreeRoot) {
hostSubtreeRoot = node;
var instance = node.stateNode;
if (isHidden) {
var viewConfig = instance.viewConfig;
var updatePayload = diffProperties(
null,
emptyObject,
{ style: { display: "none" } },
viewConfig.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance._nativeTag,
viewConfig.uiViewClassName,
updatePayload
);
} else {
instance = node.stateNode;
updatePayload = node.memoizedProps;
viewConfig = instance.viewConfig;
var prevProps = Object.assign({}, updatePayload, {
style: [updatePayload.style, { display: "none" }]
});
updatePayload = diffProperties(
null,
prevProps,
updatePayload,
viewConfig.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance._nativeTag,
viewConfig.uiViewClassName,
updatePayload
);
}
}
} else if (6 === node.tag) {
if (null === hostSubtreeRoot) throw Error("Not yet implemented.");
} else if (
((22 !== node.tag && 23 !== node.tag) ||
null === node.memoizedState ||
node === finishedWork) &&
null !== node.child
) {
node.child.return = node;
node = node.child;
continue;
}
if (node === finishedWork) break;
for (; null === node.sibling; ) {
if (null === node.return || node.return === finishedWork) return;
hostSubtreeRoot === node && (hostSubtreeRoot = null);
node = node.return;
}
hostSubtreeRoot === node && (hostSubtreeRoot = null);
node.sibling.return = node.return;
node = node.sibling;
}
}
function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
try {
@ -5925,9 +5842,6 @@ function commitWork(current, finishedWork) {
case 12:
return;
case 13:
null !== finishedWork.memoizedState &&
((globalMostRecentFallbackTime = now()),
hideOrUnhideAllChildren(finishedWork.child, !0));
attachSuspenseRetryListeners(finishedWork);
return;
case 19:
@ -5935,13 +5849,6 @@ function commitWork(current, finishedWork) {
return;
case 17:
return;
case 22:
case 23:
hideOrUnhideAllChildren(
finishedWork,
null !== finishedWork.memoizedState
);
return;
}
throw Error(
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
@ -5995,6 +5902,87 @@ function commitMutationEffects(root, firstChild) {
: (currentRef.current = null));
}
}
if (flags & 4096)
switch (firstChild.tag) {
case 13:
if (null !== firstChild.memoizedState) {
var current$87 = firstChild.alternate;
if (null === current$87 || null === current$87.memoizedState)
globalMostRecentFallbackTime = now();
}
break;
case 22:
a: {
deletions = firstChild;
var isHidden = null !== firstChild.memoizedState;
i = null;
for (childToDelete = deletions; ; ) {
if (5 === childToDelete.tag) {
if (null === i) {
i = childToDelete;
var instance = childToDelete.stateNode;
if (isHidden) {
var instance$jscomp$0 = instance,
viewConfig = instance$jscomp$0.viewConfig;
var updatePayload = diffProperties(
null,
emptyObject,
{ style: { display: "none" } },
viewConfig.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance$jscomp$0._nativeTag,
viewConfig.uiViewClassName,
updatePayload
);
} else {
var instance$jscomp$1 = childToDelete.stateNode,
props = childToDelete.memoizedProps,
viewConfig$jscomp$0 = instance$jscomp$1.viewConfig,
prevProps = Object.assign({}, props, {
style: [props.style, { display: "none" }]
});
var updatePayload$jscomp$0 = diffProperties(
null,
prevProps,
props,
viewConfig$jscomp$0.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance$jscomp$1._nativeTag,
viewConfig$jscomp$0.uiViewClassName,
updatePayload$jscomp$0
);
}
}
} else if (6 === childToDelete.tag) {
if (null === i) throw Error("Not yet implemented.");
} else if (
((22 !== childToDelete.tag && 23 !== childToDelete.tag) ||
null === childToDelete.memoizedState ||
childToDelete === deletions) &&
null !== childToDelete.child
) {
childToDelete.child.return = childToDelete;
childToDelete = childToDelete.child;
continue;
}
if (childToDelete === deletions) break;
for (; null === childToDelete.sibling; ) {
if (
null === childToDelete.return ||
childToDelete.return === deletions
)
break a;
i === childToDelete && (i = null);
childToDelete = childToDelete.return;
}
i === childToDelete && (i = null);
childToDelete.sibling.return = childToDelete.return;
childToDelete = childToDelete.sibling;
}
}
}
switch (flags & 2054) {
case 2:
commitPlacement(firstChild);
@ -6032,15 +6020,15 @@ function commitLayoutEffects(finishedWork) {
for (nextEffect = finishedWork; null !== nextEffect; ) {
var fiber = nextEffect,
firstChild = fiber.child;
if (0 !== (fiber.subtreeFlags & 324) && null !== firstChild)
if (0 !== (fiber.subtreeFlags & 4420) && null !== firstChild)
(firstChild.return = fiber), (nextEffect = firstChild);
else
for (fiber = finishedWork; null !== nextEffect; ) {
firstChild = nextEffect;
if (0 !== (firstChild.flags & 324)) {
if (0 !== (firstChild.flags & 4420)) {
var current = firstChild.alternate;
try {
if (0 !== (firstChild.flags & 68))
if (0 !== (firstChild.flags & 4420))
switch (firstChild.tag) {
case 0:
case 11:
@ -6168,7 +6156,7 @@ var ceil = Math.ceil,
currentEventTime = -1,
currentEventTransitionLane = 0;
function requestEventTime() {
return 0 !== (executionContext & 24)
return 0 !== (executionContext & 6)
? now()
: -1 !== currentEventTime
? currentEventTime
@ -6176,7 +6164,7 @@ function requestEventTime() {
}
function requestUpdateLane(fiber) {
if (0 === (fiber.mode & 1)) return 1;
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
if (0 !== ReactCurrentBatchConfig.transition)
return (
@ -6201,18 +6189,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
if (null === root) return null;
markRootUpdated(root, lane, eventTime);
root === workInProgressRoot &&
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes));
1 === lane
? 0 !== (executionContext & 4) && 0 === (executionContext & 24)
? performSyncWorkOnRoot(root)
: (ensureRootIsScheduled(root, eventTime),
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()))
: ensureRootIsScheduled(root, eventTime);
ensureRootIsScheduled(root, eventTime);
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks());
return root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6302,7 +6287,7 @@ function ensureRootIsScheduled(root, currentTime) {
function performConcurrentWorkOnRoot(root, didTimeout) {
currentEventTime = -1;
currentEventTransitionLane = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
@ -6321,7 +6306,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
if (JSCompiler_inline_result && !didTimeout) {
didTimeout = lanes;
JSCompiler_inline_result = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
if (
workInProgressRoot !== root ||
@ -6348,12 +6333,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
} else didTimeout = renderRootSync(root, lanes);
if (0 !== didTimeout) {
2 === didTimeout &&
((executionContext |= 32),
((JSCompiler_inline_result = executionContext),
(executionContext |= 8),
root.hydrate && (root.hydrate = !1),
(JSCompiler_inline_result = getLanesToRetrySynchronouslyOnError(root)),
0 !== JSCompiler_inline_result &&
((lanes = JSCompiler_inline_result),
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
(prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
0 !== prevDispatcher &&
((lanes = prevDispatcher),
(didTimeout = renderRootSync(root, prevDispatcher))),
(executionContext = JSCompiler_inline_result));
if (1 === didTimeout)
throw ((originalCallbackNode = workInProgressRootFatalError),
prepareFreshStack(root, 0),
@ -6453,18 +6440,20 @@ function markRootSuspended$1(root, suspendedLanes) {
}
}
function performSyncWorkOnRoot(root) {
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
flushPassiveEffects();
var lanes = getNextLanes(root, 0);
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) {
executionContext |= 32;
var prevExecutionContext = executionContext;
executionContext |= 8;
root.hydrate && (root.hydrate = !1);
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
executionContext = prevExecutionContext;
}
if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError),
@ -6612,19 +6601,17 @@ function handleError(root$jscomp$0, thrownValue) {
var JSCompiler_temp;
if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
var nextState = workInProgress$32.memoizedState;
if (null !== nextState)
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
else {
var props = workInProgress$32.memoizedProps;
JSCompiler_temp =
void 0 === props.fallback
? !1
: !0 !== props.unstable_avoidThisFallback
JSCompiler_temp =
null !== nextState
? null !== nextState.dehydrated
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
: !1
: !0 !==
workInProgress$32.memoizedProps.unstable_avoidThisFallback
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
if (JSCompiler_temp) {
var wakeables = workInProgress$32.updateQueue;
@ -6744,7 +6731,7 @@ function pushDispatcher() {
}
function renderRootSync(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
(workInProgressRoot === root && workInProgressRootRenderLanes === lanes) ||
prepareFreshStack(root, lanes);
@ -6830,7 +6817,7 @@ function commitRoot(root) {
function commitRootImpl(root, renderPriorityLevel) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects);
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var finishedWork = root.finishedWork,
lanes = root.finishedLanes;
@ -6863,7 +6850,7 @@ function commitRootImpl(root, renderPriorityLevel) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority = 1;
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
ReactCurrentOwner$2.current = null;
commitBeforeMutationEffects(root, finishedWork);
commitMutationEffects(root, finishedWork);
@ -6892,7 +6879,6 @@ function commitRootImpl(root, renderPriorityLevel) {
(root = firstUncaughtError),
(firstUncaughtError = null),
root);
if (0 !== (executionContext & 4)) return null;
0 !== (pendingPassiveEffectsLanes & 1) &&
0 !== root.tag &&
flushPassiveEffects();
@ -6913,10 +6899,10 @@ function flushPassiveEffects() {
renderPriority = rootWithPendingPassiveEffects;
rootWithPendingPassiveEffects = null;
pendingPassiveEffectsLanes = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Cannot flush passive effects while already rendering.");
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
var fiber = nextEffect,
child = fiber.child;
@ -7926,6 +7912,95 @@ function updateContainer(element, container, parentComponent, callback) {
function emptyFindFiberByHostInstance() {
return null;
}
var emptyObject$1 = {},
createHierarchy,
getHostNode,
getHostProps,
lastNonHostInstance,
getOwnerHierarchy,
traverseOwnerTreeUp;
createHierarchy = function(fiberHierarchy) {
return fiberHierarchy.map(function(fiber) {
return {
name: getComponentNameFromType(fiber.type),
getInspectorData: function(findNodeHandle) {
return {
props: getHostProps(fiber),
source: fiber._debugSource,
measure: function(callback) {
var hostFiber = findCurrentHostFiber(fiber);
if (
(hostFiber =
null != hostFiber &&
null !== hostFiber.stateNode &&
hostFiber.stateNode.node)
)
nativeFabricUIManager.measure(hostFiber, callback);
else
return ReactNativePrivateInterface.UIManager.measure(
getHostNode(fiber, findNodeHandle),
callback
);
}
};
}
};
});
};
getHostNode = function(fiber, findNodeHandle) {
for (var hostNode; fiber; ) {
null !== fiber.stateNode &&
5 === fiber.tag &&
(hostNode = findNodeHandle(fiber.stateNode));
if (hostNode) return hostNode;
fiber = fiber.child;
}
return null;
};
getHostProps = function(fiber) {
return (fiber = findCurrentHostFiber(fiber))
? fiber.memoizedProps || emptyObject$1
: emptyObject$1;
};
exports.getInspectorDataForInstance = function(closestInstance) {
if (!closestInstance)
return {
hierarchy: [],
props: emptyObject$1,
selectedIndex: null,
source: null
};
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
var fiberHierarchy = getOwnerHierarchy(closestInstance),
instance = lastNonHostInstance(fiberHierarchy);
closestInstance = createHierarchy(fiberHierarchy);
var props = getHostProps(instance),
source = instance._debugSource;
fiberHierarchy = fiberHierarchy.indexOf(instance);
return {
hierarchy: closestInstance,
props: props,
selectedIndex: fiberHierarchy,
source: source
};
};
getOwnerHierarchy = function(instance) {
var hierarchy = [];
traverseOwnerTreeUp(hierarchy, instance);
return hierarchy;
};
lastNonHostInstance = function(hierarchy) {
for (var i = hierarchy.length - 1; 1 < i; i--) {
var instance = hierarchy[i];
if (5 !== instance.tag) return instance;
}
return hierarchy[0];
};
traverseOwnerTreeUp = function(hierarchy, instance) {
instance &&
(hierarchy.unshift(instance),
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
};
function findNodeHandle(componentOrHandle) {
if (null == componentOrHandle) return null;
if ("number" === typeof componentOrHandle) return componentOrHandle;
@ -7959,10 +8034,10 @@ batchedUpdatesImpl = function(fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_983 = {
devToolsConfig$jscomp$inline_981 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.0.0-cae635054-20210626",
version: "18.0.0-419cc9c37-20210726",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function() {
@ -7977,11 +8052,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1237 = {
bundleType: devToolsConfig$jscomp$inline_983.bundleType,
version: devToolsConfig$jscomp$inline_983.version,
rendererPackageName: devToolsConfig$jscomp$inline_983.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_983.rendererConfig,
var internals$jscomp$inline_1228 = {
bundleType: devToolsConfig$jscomp$inline_981.bundleType,
version: devToolsConfig$jscomp$inline_981.version,
rendererPackageName: devToolsConfig$jscomp$inline_981.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_981.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@ -7997,26 +8072,26 @@ var internals$jscomp$inline_1237 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_983.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_981.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.0.0-cae635054-20210626"
reconcilerVersion: "18.0.0-419cc9c37-20210726"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1238 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1229 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1238.isDisabled &&
hook$jscomp$inline_1238.supportsFiber
!hook$jscomp$inline_1229.isDisabled &&
hook$jscomp$inline_1229.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1238.inject(
internals$jscomp$inline_1237
(rendererID = hook$jscomp$inline_1229.inject(
internals$jscomp$inline_1228
)),
(injectedHook = hook$jscomp$inline_1238);
(injectedHook = hook$jscomp$inline_1229);
} catch (err) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
@ -8036,12 +8111,10 @@ exports.createPortal = function(children, containerTag) {
};
exports.dispatchCommand = function(handle, command, args) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.dispatchCommand(
handle._internalInstanceHandle.stateNode.node,
command,
args
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
handle._nativeTag,
command,
@ -8086,11 +8159,10 @@ exports.render = function(element, containerTag, callback) {
};
exports.sendAccessibilityEvent = function(handle, eventType) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.sendAccessibilityEvent(
handle._internalInstanceHandle.stateNode.node,
eventType
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
handle._nativeTag,
eventType

Просмотреть файл

@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<77d835ca6cf96fe4731cd307ffa7cac7>>
* @generated SignedSource<<a2b99a70156d078c66a62b67533599ad>>
*/
"use strict";
@ -930,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_227 = {
var injectedNamesToPlugins$jscomp$inline_232 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@ -965,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_227 = {
}
}
},
isOrderingDirty$jscomp$inline_228 = !1,
pluginName$jscomp$inline_229;
for (pluginName$jscomp$inline_229 in injectedNamesToPlugins$jscomp$inline_227)
isOrderingDirty$jscomp$inline_233 = !1,
pluginName$jscomp$inline_234;
for (pluginName$jscomp$inline_234 in injectedNamesToPlugins$jscomp$inline_232)
if (
injectedNamesToPlugins$jscomp$inline_227.hasOwnProperty(
pluginName$jscomp$inline_229
injectedNamesToPlugins$jscomp$inline_232.hasOwnProperty(
pluginName$jscomp$inline_234
)
) {
var pluginModule$jscomp$inline_230 =
injectedNamesToPlugins$jscomp$inline_227[pluginName$jscomp$inline_229];
var pluginModule$jscomp$inline_235 =
injectedNamesToPlugins$jscomp$inline_232[pluginName$jscomp$inline_234];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_229) ||
namesToPlugins[pluginName$jscomp$inline_229] !==
pluginModule$jscomp$inline_230
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_234) ||
namesToPlugins[pluginName$jscomp$inline_234] !==
pluginModule$jscomp$inline_235
) {
if (namesToPlugins[pluginName$jscomp$inline_229])
if (namesToPlugins[pluginName$jscomp$inline_234])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
pluginName$jscomp$inline_229 +
pluginName$jscomp$inline_234 +
"`."
);
namesToPlugins[
pluginName$jscomp$inline_229
] = pluginModule$jscomp$inline_230;
isOrderingDirty$jscomp$inline_228 = !0;
pluginName$jscomp$inline_234
] = pluginModule$jscomp$inline_235;
isOrderingDirty$jscomp$inline_233 = !0;
}
}
isOrderingDirty$jscomp$inline_228 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_233 && recomputePluginOrdering();
var instanceCache = new Map(),
instanceProps = new Map();
function getInstanceFromTag(tag) {
@ -2284,7 +2284,7 @@ function enqueueUpdate(fiber, update) {
((updateQueue = updateQueue.shared),
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
? ((fiber = updateQueue.interleaved),
null === fiber
? ((update.next = update),
@ -3121,60 +3121,49 @@ function ChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
return function(returnFiber, currentFirstChild, newChild, lanes) {
var isUnkeyedTopLevelFragment =
"object" === typeof newChild &&
"object" === typeof newChild &&
null !== newChild &&
newChild.type === REACT_FRAGMENT_TYPE &&
null === newChild.key;
isUnkeyedTopLevelFragment && (newChild = newChild.props.children);
null === newChild.key &&
(newChild = newChild.props.children);
if ("object" === typeof newChild && null !== newChild) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
a: {
var key = newChild.key;
for (
isUnkeyedTopLevelFragment = currentFirstChild;
null !== isUnkeyedTopLevelFragment;
var key = newChild.key, child = currentFirstChild;
null !== child;
) {
if (isUnkeyedTopLevelFragment.key === key) {
if (child.key === key) {
key = newChild.type;
if (key === REACT_FRAGMENT_TYPE) {
if (7 === isUnkeyedTopLevelFragment.tag) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
if (7 === child.tag) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
child,
newChild.props.children
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
} else if (isUnkeyedTopLevelFragment.elementType === key) {
deleteRemainingChildren(
returnFiber,
isUnkeyedTopLevelFragment.sibling
);
currentFirstChild = useFiber(
isUnkeyedTopLevelFragment,
newChild.props
);
} else if (child.elementType === key) {
deleteRemainingChildren(returnFiber, child.sibling);
currentFirstChild = useFiber(child, newChild.props);
currentFirstChild.ref = coerceRef(
returnFiber,
isUnkeyedTopLevelFragment,
child,
newChild
);
currentFirstChild.return = returnFiber;
returnFiber = currentFirstChild;
break a;
}
deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment);
deleteRemainingChildren(returnFiber, child);
break;
} else deleteChild(returnFiber, isUnkeyedTopLevelFragment);
isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;
} else deleteChild(returnFiber, child);
child = child.sibling;
}
newChild.type === REACT_FRAGMENT_TYPE
? ((currentFirstChild = createFiberFromFragment(
@ -3204,12 +3193,8 @@ function ChildReconciler(shouldTrackSideEffects) {
return placeSingleChild(returnFiber);
case REACT_PORTAL_TYPE:
a: {
for (
isUnkeyedTopLevelFragment = newChild.key;
null !== currentFirstChild;
) {
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
for (child = newChild.key; null !== currentFirstChild; ) {
if (currentFirstChild.key === child)
if (
4 === currentFirstChild.tag &&
currentFirstChild.stateNode.containerInfo ===
@ -3261,9 +3246,8 @@ function ChildReconciler(shouldTrackSideEffects) {
);
throwOnInvalidObjectType(returnFiber, newChild);
}
if ("string" === typeof newChild || "number" === typeof newChild)
return (
(newChild = "" + newChild),
return "string" === typeof newChild || "number" === typeof newChild
? ((newChild = "" + newChild),
null !== currentFirstChild && 6 === currentFirstChild.tag
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
(currentFirstChild = useFiber(currentFirstChild, newChild)),
@ -3277,20 +3261,8 @@ function ChildReconciler(shouldTrackSideEffects) {
)),
(currentFirstChild.return = returnFiber),
(returnFiber = currentFirstChild)),
placeSingleChild(returnFiber)
);
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
switch (returnFiber.tag) {
case 1:
case 0:
case 11:
case 15:
throw Error(
(getComponentNameFromFiber(returnFiber) || "Component") +
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
);
}
return deleteRemainingChildren(returnFiber, currentFirstChild);
placeSingleChild(returnFiber))
: deleteRemainingChildren(returnFiber, currentFirstChild);
};
}
var reconcileChildFibers = ChildReconciler(!0),
@ -3845,7 +3817,7 @@ function dispatchAction(fiber, queue, action) {
if (
null !== workInProgressRoot &&
0 !== (fiber.mode & 1) &&
0 === (executionContext & 8)
0 === (executionContext & 2)
) {
var interleaved = queue.interleaved;
null === interleaved
@ -4697,7 +4669,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
JSCompiler_temp
? ((showFallback = !0), (workInProgress.flags &= -129))
: (null !== current && null === current.memoizedState) ||
void 0 === nextProps.fallback ||
!0 === nextProps.unstable_avoidThisFallback ||
(suspenseContext |= 1);
push(suspenseStackCursor, suspenseContext & 1);
@ -5287,7 +5258,11 @@ function completeWork(current, workInProgress, renderLanes) {
newProps = null !== newProps;
renderLanes = !1;
null !== current && (renderLanes = null !== current.memoizedState);
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
if (
newProps &&
!renderLanes &&
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
)
if (
(null === current &&
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
@ -5309,7 +5284,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootRenderLanes
);
}
if (newProps || renderLanes) workInProgress.flags |= 4;
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
bubbleProperties(workInProgress);
0 !== (workInProgress.mode & 2) &&
newProps &&
@ -5468,11 +5443,16 @@ function completeWork(current, workInProgress, renderLanes) {
null !== current &&
(null !== current.memoizedState) !== renderLanes &&
"unstable-defer-without-hiding" !== newProps.mode &&
(workInProgress.flags |= 4),
(renderLanes &&
0 === (subtreeRenderLanes & 1073741824) &&
0 !== (workInProgress.mode & 1)) ||
bubbleProperties(workInProgress),
23 !== workInProgress.tag &&
(workInProgress.flags |= 4096),
renderLanes && 0 !== (workInProgress.mode & 1)
? 0 !== (subtreeRenderLanes & 1073741824) &&
(bubbleProperties(workInProgress),
23 !== workInProgress.tag &&
workInProgress.subtreeFlags & 6 &&
"unstable-defer-without-hiding" !== newProps.mode &&
(workInProgress.flags |= 4096))
: bubbleProperties(workInProgress),
null
);
}
@ -5656,68 +5636,6 @@ function commitHookEffectListMount(tag, finishedWork) {
} while (effect !== finishedWork);
}
}
function hideOrUnhideAllChildren(finishedWork, isHidden) {
for (var hostSubtreeRoot = null, node = finishedWork; ; ) {
if (5 === node.tag) {
if (null === hostSubtreeRoot) {
hostSubtreeRoot = node;
var instance = node.stateNode;
if (isHidden) {
var viewConfig = instance.viewConfig;
var updatePayload = diffProperties(
null,
emptyObject,
{ style: { display: "none" } },
viewConfig.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance._nativeTag,
viewConfig.uiViewClassName,
updatePayload
);
} else {
instance = node.stateNode;
updatePayload = node.memoizedProps;
viewConfig = instance.viewConfig;
var prevProps = Object.assign({}, updatePayload, {
style: [updatePayload.style, { display: "none" }]
});
updatePayload = diffProperties(
null,
prevProps,
updatePayload,
viewConfig.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance._nativeTag,
viewConfig.uiViewClassName,
updatePayload
);
}
}
} else if (6 === node.tag) {
if (null === hostSubtreeRoot) throw Error("Not yet implemented.");
} else if (
((22 !== node.tag && 23 !== node.tag) ||
null === node.memoizedState ||
node === finishedWork) &&
null !== node.child
) {
node.child.return = node;
node = node.child;
continue;
}
if (node === finishedWork) break;
for (; null === node.sibling; ) {
if (null === node.return || node.return === finishedWork) return;
hostSubtreeRoot === node && (hostSubtreeRoot = null);
node = node.return;
}
hostSubtreeRoot === node && (hostSubtreeRoot = null);
node.sibling.return = node.return;
node = node.sibling;
}
}
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
try {
@ -6113,9 +6031,6 @@ function commitWork(current, finishedWork) {
case 12:
return;
case 13:
null !== finishedWork.memoizedState &&
((globalMostRecentFallbackTime = now()),
hideOrUnhideAllChildren(finishedWork.child, !0));
attachSuspenseRetryListeners(finishedWork);
return;
case 19:
@ -6123,13 +6038,6 @@ function commitWork(current, finishedWork) {
return;
case 17:
return;
case 22:
case 23:
hideOrUnhideAllChildren(
finishedWork,
null !== finishedWork.memoizedState
);
return;
}
throw Error(
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
@ -6201,6 +6109,87 @@ function commitMutationEffects(root, firstChild, committedLanes) {
else currentRef.current = null;
}
}
if (flags & 4096)
switch (firstChild.tag) {
case 13:
if (null !== firstChild.memoizedState) {
var current$95 = firstChild.alternate;
if (null === current$95 || null === current$95.memoizedState)
globalMostRecentFallbackTime = now();
}
break;
case 22:
a: {
committedLanes = firstChild;
var isHidden = null !== firstChild.memoizedState;
i = null;
for (childToDelete = committedLanes; ; ) {
if (5 === childToDelete.tag) {
if (null === i) {
i = childToDelete;
var instance = childToDelete.stateNode;
if (isHidden) {
var instance$jscomp$0 = instance,
viewConfig = instance$jscomp$0.viewConfig;
var updatePayload = diffProperties(
null,
emptyObject,
{ style: { display: "none" } },
viewConfig.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance$jscomp$0._nativeTag,
viewConfig.uiViewClassName,
updatePayload
);
} else {
var instance$jscomp$1 = childToDelete.stateNode,
props = childToDelete.memoizedProps,
viewConfig$jscomp$0 = instance$jscomp$1.viewConfig,
prevProps = Object.assign({}, props, {
style: [props.style, { display: "none" }]
});
var updatePayload$jscomp$0 = diffProperties(
null,
prevProps,
props,
viewConfig$jscomp$0.validAttributes
);
ReactNativePrivateInterface.UIManager.updateView(
instance$jscomp$1._nativeTag,
viewConfig$jscomp$0.uiViewClassName,
updatePayload$jscomp$0
);
}
}
} else if (6 === childToDelete.tag) {
if (null === i) throw Error("Not yet implemented.");
} else if (
((22 !== childToDelete.tag && 23 !== childToDelete.tag) ||
null === childToDelete.memoizedState ||
childToDelete === committedLanes) &&
null !== childToDelete.child
) {
childToDelete.child.return = childToDelete;
childToDelete = childToDelete.child;
continue;
}
if (childToDelete === committedLanes) break;
for (; null === childToDelete.sibling; ) {
if (
null === childToDelete.return ||
childToDelete.return === committedLanes
)
break a;
i === childToDelete && (i = null);
childToDelete = childToDelete.return;
}
i === childToDelete && (i = null);
childToDelete.sibling.return = childToDelete.return;
childToDelete = childToDelete.sibling;
}
}
}
switch (flags & 2054) {
case 2:
commitPlacement(firstChild);
@ -6242,16 +6231,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
if (
((root = nextEffect),
(committedLanes = root.child),
0 !== (root.subtreeFlags & 324) && null !== committedLanes)
0 !== (root.subtreeFlags & 4420) && null !== committedLanes)
)
(committedLanes.return = root), (nextEffect = committedLanes);
else
for (root = finishedWork; null !== nextEffect; ) {
committedLanes = nextEffect;
if (0 !== (committedLanes.flags & 324)) {
if (0 !== (committedLanes.flags & 4420)) {
var current = committedLanes.alternate;
try {
if (0 !== (committedLanes.flags & 68))
if (0 !== (committedLanes.flags & 4420))
switch (committedLanes.tag) {
case 0:
case 11:
@ -6459,7 +6448,7 @@ var ceil = Math.ceil,
currentEventTime = -1,
currentEventTransitionLane = 0;
function requestEventTime() {
return 0 !== (executionContext & 24)
return 0 !== (executionContext & 6)
? now()
: -1 !== currentEventTime
? currentEventTime
@ -6467,7 +6456,7 @@ function requestEventTime() {
}
function requestUpdateLane(fiber) {
if (0 === (fiber.mode & 1)) return 1;
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
if (0 !== ReactCurrentBatchConfig.transition)
return (
@ -6493,18 +6482,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
markRootUpdated(root, lane, eventTime);
root === workInProgressRoot &&
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes));
1 === lane
? 0 !== (executionContext & 4) && 0 === (executionContext & 24)
? performSyncWorkOnRoot(root)
: (ensureRootIsScheduled(root, eventTime),
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()))
: ensureRootIsScheduled(root, eventTime);
ensureRootIsScheduled(root, eventTime);
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks());
return root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6595,7 +6581,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
nestedUpdateScheduled = currentUpdateIsNested = !1;
currentEventTime = -1;
currentEventTransitionLane = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
@ -6614,7 +6600,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
if (JSCompiler_inline_result && !didTimeout) {
didTimeout = lanes;
JSCompiler_inline_result = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
if (
workInProgressRoot !== root ||
@ -6649,12 +6635,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
} else didTimeout = renderRootSync(root, lanes);
if (0 !== didTimeout) {
2 === didTimeout &&
((executionContext |= 32),
((JSCompiler_inline_result = executionContext),
(executionContext |= 8),
root.hydrate && (root.hydrate = !1),
(JSCompiler_inline_result = getLanesToRetrySynchronouslyOnError(root)),
0 !== JSCompiler_inline_result &&
((lanes = JSCompiler_inline_result),
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
(prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
0 !== prevDispatcher &&
((lanes = prevDispatcher),
(didTimeout = renderRootSync(root, prevDispatcher))),
(executionContext = JSCompiler_inline_result));
if (1 === didTimeout)
throw ((originalCallbackNode = workInProgressRootFatalError),
prepareFreshStack(root, 0),
@ -6755,18 +6743,20 @@ function markRootSuspended$1(root, suspendedLanes) {
function performSyncWorkOnRoot(root) {
currentUpdateIsNested = nestedUpdateScheduled;
nestedUpdateScheduled = !1;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
flushPassiveEffects();
var lanes = getNextLanes(root, 0);
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) {
executionContext |= 32;
var prevExecutionContext = executionContext;
executionContext |= 8;
root.hydrate && (root.hydrate = !1);
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
executionContext = prevExecutionContext;
}
if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError),
@ -6917,19 +6907,17 @@ function handleError(root$jscomp$0, thrownValue) {
var JSCompiler_temp;
if ((JSCompiler_temp = 13 === workInProgress$34.tag)) {
var nextState = workInProgress$34.memoizedState;
if (null !== nextState)
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
else {
var props = workInProgress$34.memoizedProps;
JSCompiler_temp =
void 0 === props.fallback
? !1
: !0 !== props.unstable_avoidThisFallback
JSCompiler_temp =
null !== nextState
? null !== nextState.dehydrated
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
: !1
: !0 !==
workInProgress$34.memoizedProps.unstable_avoidThisFallback
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
if (JSCompiler_temp) {
var wakeables = workInProgress$34.updateQueue;
@ -7050,7 +7038,7 @@ function pushDispatcher() {
}
function renderRootSync(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 8;
executionContext |= 2;
var prevDispatcher = pushDispatcher();
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
if (isDevToolsPresent) {
@ -7165,7 +7153,7 @@ function commitRoot(root) {
function commitRootImpl(root, renderPriorityLevel) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects);
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Should not already be working.");
var finishedWork = root.finishedWork,
lanes = root.finishedLanes;
@ -7198,7 +7186,7 @@ function commitRootImpl(root, renderPriorityLevel) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority = 1;
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
ReactCurrentOwner$2.current = null;
commitBeforeMutationEffects(root, finishedWork);
commitTime = now$1();
@ -7230,7 +7218,6 @@ function commitRootImpl(root, renderPriorityLevel) {
(root = firstUncaughtError),
(firstUncaughtError = null),
root);
if (0 !== (executionContext & 4)) return null;
0 !== (pendingPassiveEffectsLanes & 1) &&
0 !== root.tag &&
flushPassiveEffects();
@ -7251,10 +7238,10 @@ function flushPassiveEffects() {
renderPriority = rootWithPendingPassiveEffects;
rootWithPendingPassiveEffects = null;
pendingPassiveEffectsLanes = 0;
if (0 !== (executionContext & 24))
if (0 !== (executionContext & 6))
throw Error("Cannot flush passive effects while already rendering.");
var prevExecutionContext = executionContext;
executionContext |= 16;
executionContext |= 4;
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
var fiber = nextEffect,
child = fiber.child;
@ -8358,6 +8345,95 @@ function updateContainer(element, container, parentComponent, callback) {
function emptyFindFiberByHostInstance() {
return null;
}
var emptyObject$1 = {},
createHierarchy,
getHostNode,
getHostProps,
lastNonHostInstance,
getOwnerHierarchy,
traverseOwnerTreeUp;
createHierarchy = function(fiberHierarchy) {
return fiberHierarchy.map(function(fiber) {
return {
name: getComponentNameFromType(fiber.type),
getInspectorData: function(findNodeHandle) {
return {
props: getHostProps(fiber),
source: fiber._debugSource,
measure: function(callback) {
var hostFiber = findCurrentHostFiber(fiber);
if (
(hostFiber =
null != hostFiber &&
null !== hostFiber.stateNode &&
hostFiber.stateNode.node)
)
nativeFabricUIManager.measure(hostFiber, callback);
else
return ReactNativePrivateInterface.UIManager.measure(
getHostNode(fiber, findNodeHandle),
callback
);
}
};
}
};
});
};
getHostNode = function(fiber, findNodeHandle) {
for (var hostNode; fiber; ) {
null !== fiber.stateNode &&
5 === fiber.tag &&
(hostNode = findNodeHandle(fiber.stateNode));
if (hostNode) return hostNode;
fiber = fiber.child;
}
return null;
};
getHostProps = function(fiber) {
return (fiber = findCurrentHostFiber(fiber))
? fiber.memoizedProps || emptyObject$1
: emptyObject$1;
};
exports.getInspectorDataForInstance = function(closestInstance) {
if (!closestInstance)
return {
hierarchy: [],
props: emptyObject$1,
selectedIndex: null,
source: null
};
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
var fiberHierarchy = getOwnerHierarchy(closestInstance),
instance = lastNonHostInstance(fiberHierarchy);
closestInstance = createHierarchy(fiberHierarchy);
var props = getHostProps(instance),
source = instance._debugSource;
fiberHierarchy = fiberHierarchy.indexOf(instance);
return {
hierarchy: closestInstance,
props: props,
selectedIndex: fiberHierarchy,
source: source
};
};
getOwnerHierarchy = function(instance) {
var hierarchy = [];
traverseOwnerTreeUp(hierarchy, instance);
return hierarchy;
};
lastNonHostInstance = function(hierarchy) {
for (var i = hierarchy.length - 1; 1 < i; i--) {
var instance = hierarchy[i];
if (5 !== instance.tag) return instance;
}
return hierarchy[0];
};
traverseOwnerTreeUp = function(hierarchy, instance) {
instance &&
(hierarchy.unshift(instance),
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
};
function findNodeHandle(componentOrHandle) {
if (null == componentOrHandle) return null;
if ("number" === typeof componentOrHandle) return componentOrHandle;
@ -8391,10 +8467,10 @@ batchedUpdatesImpl = function(fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1013 = {
devToolsConfig$jscomp$inline_1011 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.0.0-cae635054-20210626",
version: "18.0.0-419cc9c37-20210726",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function() {
@ -8409,11 +8485,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1287 = {
bundleType: devToolsConfig$jscomp$inline_1013.bundleType,
version: devToolsConfig$jscomp$inline_1013.version,
rendererPackageName: devToolsConfig$jscomp$inline_1013.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1013.rendererConfig,
var internals$jscomp$inline_1278 = {
bundleType: devToolsConfig$jscomp$inline_1011.bundleType,
version: devToolsConfig$jscomp$inline_1011.version,
rendererPackageName: devToolsConfig$jscomp$inline_1011.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1011.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@ -8429,26 +8505,26 @@ var internals$jscomp$inline_1287 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1013.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1011.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.0.0-cae635054-20210626"
reconcilerVersion: "18.0.0-419cc9c37-20210726"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1288 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1279 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1288.isDisabled &&
hook$jscomp$inline_1288.supportsFiber
!hook$jscomp$inline_1279.isDisabled &&
hook$jscomp$inline_1279.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1288.inject(
internals$jscomp$inline_1287
(rendererID = hook$jscomp$inline_1279.inject(
internals$jscomp$inline_1278
)),
(injectedHook = hook$jscomp$inline_1288);
(injectedHook = hook$jscomp$inline_1279);
} catch (err) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
@ -8468,12 +8544,10 @@ exports.createPortal = function(children, containerTag) {
};
exports.dispatchCommand = function(handle, command, args) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.dispatchCommand(
handle._internalInstanceHandle.stateNode.node,
command,
args
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
handle._nativeTag,
command,
@ -8525,11 +8599,10 @@ exports.render = function(element, containerTag, callback) {
};
exports.sendAccessibilityEvent = function(handle, eventType) {
null != handle._nativeTag &&
(handle._internalInstanceHandle
? nativeFabricUIManager.sendAccessibilityEvent(
handle._internalInstanceHandle.stateNode.node,
eventType
)
(null != handle._internalInstanceHandle
? ((handle = handle._internalInstanceHandle.stateNode),
null != handle &&
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
handle._nativeTag,
eventType