React Native sync for revisions afcb9cd...c0c71a8

Summary:
This sync includes the following changes:
- **[c0c71a868](https://github.com/facebook/react/commit/c0c71a868 )**: Re-enable useMutableSource in internal RN ([#22750](https://github.com/facebook/react/pull/22750)) //<Ricky>//
- **[cb11155c8](https://github.com/facebook/react/commit/cb11155c8 )**: Add runtime type checks around module boundary code ([#22748](https://github.com/facebook/react/pull/22748)) //<Brian Vaughn>//
- **[a04f13d29](https://github.com/facebook/react/commit/a04f13d29 )**: react-refresh@0.11.0 //<Dan Abramov>//
- **[ff9897d23](https://github.com/facebook/react/commit/ff9897d23 )**: [React Refresh] support typescript namespace syntax ([#22621](https://github.com/facebook/react/pull/22621)) //<irinakk>//
- **[0ddd69d12](https://github.com/facebook/react/commit/0ddd69d12 )**: Throw on hydration mismatch and force client rendering if boundary hasn't suspended within concurrent root ([#22629](https://github.com/facebook/react/pull/22629)) //<salazarm>//
- **[c3f34e4be](https://github.com/facebook/react/commit/c3f34e4be )**: eslint-plugin-react-hooks@4.3.0 //<Dan Abramov>//
- **[827021c4e](https://github.com/facebook/react/commit/827021c4e )**: Changelog for eslint-plugin-react-hooks@4.3.0 //<Dan Abramov>//
- **[8ca3f567b](https://github.com/facebook/react/commit/8ca3f567b )**: Fix module-boundary wrappers ([#22688](https://github.com/facebook/react/pull/22688)) //<Brian Vaughn>//
- **[1bf6deb86](https://github.com/facebook/react/commit/1bf6deb86 )**: Renamed packages/react-devtools-scheduling-profiler to packages/react-devtools-timeline ([#22691](https://github.com/facebook/react/pull/22691)) //<Brian Vaughn>//
- **[51c558aeb](https://github.com/facebook/react/commit/51c558aeb )**: Rename (some) "scheduling profiler" references to "timeline" ([#22690](https://github.com/facebook/react/pull/22690)) //<Brian Vaughn>//
- **[00ced1e2b](https://github.com/facebook/react/commit/00ced1e2b )**: Fix useId in strict mode ([#22681](https://github.com/facebook/react/pull/22681)) //<Andrew Clark>//
- **[5cccacd13](https://github.com/facebook/react/commit/5cccacd13 )**: Upgrade useId to alpha channel ([#22674](https://github.com/facebook/react/pull/22674)) //<Andrew Clark>//
- **[75f3ddebf](https://github.com/facebook/react/commit/75f3ddebf )**: Remove experimental useOpaqueIdentifier API ([#22672](https://github.com/facebook/react/pull/22672)) //<Andrew Clark>//
- **[8c4a05b8f](https://github.com/facebook/react/commit/8c4a05b8f )**: Remove flow pragma comment from module registration start/stop templates ([#22670](https://github.com/facebook/react/pull/22670)) //<Brian Vaughn>//
- **[ebf9ae857](https://github.com/facebook/react/commit/ebf9ae857 )**: useId ([#22644](https://github.com/facebook/react/pull/22644)) //<Andrew Clark>//
- **[a0d991fe6](https://github.com/facebook/react/commit/a0d991fe6 )**: Re-land #22292 (remove uMS from open source build) ([#22664](https://github.com/facebook/react/pull/22664)) //<Andrew Clark>//
- **[6bce0355c](https://github.com/facebook/react/commit/6bce0355c )**: Upgrade useSyncExternalStore to alpha channel ([#22662](https://github.com/facebook/react/pull/22662)) //<Andrew Clark>//
- **[7034408ff](https://github.com/facebook/react/commit/7034408ff )**: Follow-up improvements to error code extraction infra ([#22516](https://github.com/facebook/react/pull/22516)) //<Andrew Clark>//
- **[90e5d3638](https://github.com/facebook/react/commit/90e5d3638 )**: chore: fix comment typo ([#22615](https://github.com/facebook/react/pull/22615)) //<btea>//
- **[3c4c1c470](https://github.com/facebook/react/commit/3c4c1c470 )**: Remove warning for dangling passive effects ([#22609](https://github.com/facebook/react/pull/22609)) //<Andrew Clark>//
- **[d5b6b4b86](https://github.com/facebook/react/commit/d5b6b4b86 )**: Expand act warning to cover all APIs that might schedule React work ([#22607](https://github.com/facebook/react/pull/22607)) //<Andrew Clark>//
- **[fa9bea0c4](https://github.com/facebook/react/commit/fa9bea0c4 )**: Initial implementation of cache cleanup ([#22510](https://github.com/facebook/react/pull/22510)) //<Joseph Savona>//
- **[0e8a5aff3](https://github.com/facebook/react/commit/0e8a5aff3 )**: Scheduling Profiler: Add marks for component effects (mount and unmount) ([#22578](https://github.com/facebook/react/pull/22578)) //<Brian Vaughn>//
- **[4ba20579d](https://github.com/facebook/react/commit/4ba20579d )**: Scheduling Profiler: De-emphasize React internal frames ([#22588](https://github.com/facebook/react/pull/22588)) //<Brian Vaughn>//
- **[cdb8a1d19](https://github.com/facebook/react/commit/cdb8a1d19 )**: [Fizz] Add option to inject bootstrapping script tags after the shell is injected ([#22594](https://github.com/facebook/react/pull/22594)) //<Sebastian Markbåge>//
- **[34e4c9756](https://github.com/facebook/react/commit/34e4c9756 )**: Clear extra nodes if there's a hydration mismatch within a suspense boundary  ([#22592](https://github.com/facebook/react/pull/22592)) //<Sebastian Markbåge>//
- **[02f411578](https://github.com/facebook/react/commit/02f411578 )**: Upgrade useInsertionEffect to stable ([#22589](https://github.com/facebook/react/pull/22589)) //<Andrew Clark>//
- **[2af4a7933](https://github.com/facebook/react/commit/2af4a7933 )**: Hydrate using SuspenseComponent as the parent ([#22582](https://github.com/facebook/react/pull/22582)) //<Sebastian Markbåge>//
- **[b1acff0cc](https://github.com/facebook/react/commit/b1acff0cc )**: Enable cache in test renderer ([#22580](https://github.com/facebook/react/pull/22580)) //<Joseph Savona>//
- **[996da67b2](https://github.com/facebook/react/commit/996da67b2 )**: Replace global `jest` heuristic with `IS_REACT_ACT_ENVIRONMENT` ([#22562](https://github.com/facebook/react/pull/22562)) //<Andrew Clark>//
- **[163e81c1f](https://github.com/facebook/react/commit/163e81c1f )**: Support disabling spurious act warnings with a global environment flag ([#22561](https://github.com/facebook/react/pull/22561)) //<Andrew Clark>//
- **[23b7dfeff](https://github.com/facebook/react/commit/23b7dfeff )**: Enable scheduling profiler for RN FB profiling builds ([#22566](https://github.com/facebook/react/pull/22566)) //<Brian Vaughn>//
- **[61455a25b](https://github.com/facebook/react/commit/61455a25b )**: Enable experimental Cache API in www TestRenderer ([#22554](https://github.com/facebook/react/pull/22554)) //<Joseph Savona>//
- **[7142d110b](https://github.com/facebook/react/commit/7142d110b )**: Bugfix: Nested useOpaqueIdentifier references ([#22553](https://github.com/facebook/react/pull/22553)) //<Andrew Clark>//
- **[1e247ff89](https://github.com/facebook/react/commit/1e247ff89 )**: Enabled scheduling profiler marks for React Native FB target ([#22544](https://github.com/facebook/react/pull/22544)) //<Brian Vaughn>//
- **[c16b005f2](https://github.com/facebook/react/commit/c16b005f2 )**: Update test and stack frame code to support newer V8 stack formats ([#22477](https://github.com/facebook/react/pull/22477)) //<Brian Vaughn>//
- **[55d75005b](https://github.com/facebook/react/commit/55d75005b )**: duplicate value in variable ([#22390](https://github.com/facebook/react/pull/22390)) //<BIKI DAS>//

Changelog:
[General][Changed] - React Native sync for revisions afcb9cd...c0c71a8

jest_e2e[run_all_tests]

Reviewed By: yungsters

Differential Revision: D32395873

fbshipit-source-id: 3afd158f167b1eedcc244e29aba1a2c502d3c9d9
This commit is contained in:
Andrei Shikov 2021-11-15 05:59:23 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 7366a866b3
Коммит 55663ec99d
7 изменённых файлов: 3778 добавлений и 1693 удалений

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

@ -1 +1 @@
afcb9cdc9343ddc134b03dcf4d7fbc0810b6002b c0c71a868560b3042847722659579418bfe2d7e1

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

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

@ -7,7 +7,7 @@
* @noflow * @noflow
* @nolint * @nolint
* @preventMunge * @preventMunge
* @generated SignedSource<<0641813b146d4710c4029f156d65891e>> * @generated SignedSource<<b80a65da6d07065eb2cb1fb8dca0c565>>
*/ */
"use strict"; "use strict";
@ -1619,6 +1619,13 @@ function onCommitRoot(root) {
); );
} catch (err) {} } catch (err) {}
} }
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(x) {
x >>>= 0;
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
}
var nextTransitionLane = 64, var nextTransitionLane = 64,
nextRetryLane = 4194304; nextRetryLane = 4194304;
function getHighestPriorityLanes(lanes) { function getHighestPriorityLanes(lanes) {
@ -1802,12 +1809,6 @@ function markRootEntangled(root, entangledLanes) {
rootEntangledLanes &= ~lane; rootEntangledLanes &= ~lane;
} }
} }
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(lanes) {
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
}
var currentUpdatePriority = 0; var currentUpdatePriority = 0;
function lanesToEventPriority(lanes) { function lanesToEventPriority(lanes) {
lanes &= -lanes; lanes &= -lanes;
@ -2128,12 +2129,14 @@ function shallowEqual(objA, objB) {
var keysA = Object.keys(objA), var keysA = Object.keys(objA),
keysB = Object.keys(objB); keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1; if (keysA.length !== keysB.length) return !1;
for (keysB = 0; keysB < keysA.length; keysB++) for (keysB = 0; keysB < keysA.length; keysB++) {
var currentKey = keysA[keysB];
if ( if (
!hasOwnProperty.call(objB, keysA[keysB]) || !hasOwnProperty.call(objB, currentKey) ||
!objectIs(objA[keysA[keysB]], objB[keysA[keysB]]) !objectIs(objA[currentKey], objB[currentKey])
) )
return !1; return !1;
}
return !0; return !0;
} }
function describeFiber(fiber) { function describeFiber(fiber) {
@ -2631,6 +2634,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
"function" === typeof instance.componentDidMount && "function" === typeof instance.componentDidMount &&
(workInProgress.flags |= 4); (workInProgress.flags |= 4);
} }
var forkStack = [],
forkStackIndex = 0,
treeForkProvider = null,
idStack = [],
idStackIndex = 0,
treeContextProvider = null;
function popTreeContext(workInProgress) {
for (; workInProgress === treeForkProvider; )
(treeForkProvider = forkStack[--forkStackIndex]),
(forkStack[forkStackIndex] = null),
--forkStackIndex,
(forkStack[forkStackIndex] = null);
for (; workInProgress === treeContextProvider; )
(treeContextProvider = idStack[--idStackIndex]),
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null);
}
function coerceRef(returnFiber, current, element) { function coerceRef(returnFiber, current, element) {
returnFiber = element.ref; returnFiber = element.ref;
if ( if (
@ -2725,7 +2748,8 @@ function ChildReconciler(shouldTrackSideEffects) {
} }
function placeChild(newFiber, lastPlacedIndex, newIndex) { function placeChild(newFiber, lastPlacedIndex, newIndex) {
newFiber.index = newIndex; newFiber.index = newIndex;
if (!shouldTrackSideEffects) return lastPlacedIndex; if (!shouldTrackSideEffects)
return (newFiber.flags |= 1048576), lastPlacedIndex;
newIndex = newFiber.alternate; newIndex = newFiber.alternate;
if (null !== newIndex) if (null !== newIndex)
return ( return (
@ -3329,7 +3353,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
currentHook = null, currentHook = null,
workInProgressHook = null, workInProgressHook = null,
didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdate = !1,
didScheduleRenderPhaseUpdateDuringThisPass = !1; didScheduleRenderPhaseUpdateDuringThisPass = !1,
globalClientIdCounter = 0;
function throwInvalidHookError() { function throwInvalidHookError() {
throw Error( throw Error(
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
@ -3752,7 +3777,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
} }
function mountEffect(create, deps) { function mountEffect(create, deps) {
return mountEffectImpl(4196352, 8, create, deps); return mountEffectImpl(8390656, 8, create, deps);
} }
function updateEffect(create, deps) { function updateEffect(create, deps) {
return updateEffectImpl(2048, 8, create, deps); return updateEffectImpl(2048, 8, create, deps);
@ -3832,6 +3857,9 @@ function startTransition(setPending, callback) {
(ReactCurrentBatchConfig$1.transition = prevTransition); (ReactCurrentBatchConfig$1.transition = prevTransition);
} }
} }
function updateId() {
return updateWorkInProgressHook().memoizedState;
}
function dispatchReducerAction(fiber, queue, action) { function dispatchReducerAction(fiber, queue, action) {
var lane = requestUpdateLane(fiber); var lane = requestUpdateLane(fiber);
action = { action = {
@ -3939,7 +3967,7 @@ var ContextOnlyDispatcher = {
useTransition: throwInvalidHookError, useTransition: throwInvalidHookError,
useMutableSource: throwInvalidHookError, useMutableSource: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError,
useOpaqueIdentifier: throwInvalidHookError, useId: throwInvalidHookError,
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}, },
HooksDispatcherOnMount = { HooksDispatcherOnMount = {
@ -4037,8 +4065,10 @@ var ContextOnlyDispatcher = {
return useMutableSource(hook, source, getSnapshot, subscribe); return useMutableSource(hook, source, getSnapshot, subscribe);
}, },
useSyncExternalStore: mountSyncExternalStore, useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() { useId: function() {
throw Error("Not yet implemented"); var hook = mountWorkInProgressHook();
var id = "r:" + (globalClientIdCounter++).toString(32);
return (hook.memoizedState = id);
}, },
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}, },
@ -4121,9 +4151,7 @@ var ContextOnlyDispatcher = {
} }
return nextSnapshot; return nextSnapshot;
}, },
useOpaqueIdentifier: function() { useId: updateId,
return updateReducer(basicStateReducer)[0];
},
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}, },
HooksDispatcherOnRerender = { HooksDispatcherOnRerender = {
@ -4166,9 +4194,7 @@ var ContextOnlyDispatcher = {
}, },
useMutableSource: updateMutableSource, useMutableSource: updateMutableSource,
useSyncExternalStore: mountSyncExternalStore, useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() { useId: updateId,
return rerenderReducer(basicStateReducer)[0];
},
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}; };
function createCapturedValue(value, source) { function createCapturedValue(value, source) {
@ -4434,8 +4460,8 @@ function bubbleProperties(completedWork) {
if (didBailout) if (didBailout)
for (var child$36 = completedWork.child; null !== child$36; ) for (var child$36 = completedWork.child; null !== child$36; )
(newChildLanes |= child$36.lanes | child$36.childLanes), (newChildLanes |= child$36.lanes | child$36.childLanes),
(subtreeFlags |= child$36.subtreeFlags & 7340032), (subtreeFlags |= child$36.subtreeFlags & 14680064),
(subtreeFlags |= child$36.flags & 7340032), (subtreeFlags |= child$36.flags & 14680064),
(child$36.return = completedWork), (child$36.return = completedWork),
(child$36 = child$36.sibling); (child$36 = child$36.sibling);
else else
@ -4476,6 +4502,7 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
} }
function completeWork(current, workInProgress, renderLanes) { function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps; var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) { switch (workInProgress.tag) {
case 2: case 2:
case 16: case 16:
@ -4599,7 +4626,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootExitStatus = 4; workInProgressRootExitStatus = 4;
null === workInProgressRoot || null === workInProgressRoot ||
(0 === (workInProgressRootSkippedLanes & 268435455) && (0 === (workInProgressRootSkippedLanes & 268435455) &&
0 === (workInProgressRootUpdatedLanes & 268435455)) || 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
markRootSuspended$1( markRootSuspended$1(
workInProgressRoot, workInProgressRoot,
workInProgressRootRenderLanes workInProgressRootRenderLanes
@ -4654,7 +4681,7 @@ function completeWork(current, workInProgress, renderLanes) {
for (newProps = workInProgress.child; null !== newProps; ) for (newProps = workInProgress.child; null !== newProps; )
(renderLanes = newProps), (renderLanes = newProps),
(type = current), (type = current),
(renderLanes.flags &= 7340034), (renderLanes.flags &= 14680066),
(renderedTail = renderLanes.alternate), (renderedTail = renderLanes.alternate),
null === renderedTail null === renderedTail
? ((renderLanes.childLanes = 0), ? ((renderLanes.childLanes = 0),
@ -5270,7 +5297,7 @@ function pushHostRootContext(workInProgress) {
pushTopLevelContextObject(workInProgress, root.context, !1); pushTopLevelContextObject(workInProgress, root.context, !1);
pushHostContainer(workInProgress, root.containerInfo); pushHostContainer(workInProgress, root.containerInfo);
} }
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 }; var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
function mountSuspenseOffscreenState(renderLanes) { function mountSuspenseOffscreenState(renderLanes) {
return { baseLanes: renderLanes, cachePool: null }; return { baseLanes: renderLanes, cachePool: null };
} }
@ -5495,7 +5522,7 @@ function updateSuspenseFallbackChildren(
primaryChildren primaryChildren
))), ))),
(current.subtreeFlags = (current.subtreeFlags =
currentPrimaryChildFragment.subtreeFlags & 7340032)); currentPrimaryChildFragment.subtreeFlags & 14680064));
null !== currentFallbackChildFragment null !== currentFallbackChildFragment
? (fallbackChildren = createWorkInProgress( ? (fallbackChildren = createWorkInProgress(
currentFallbackChildFragment, currentFallbackChildFragment,
@ -5719,6 +5746,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
} }
function unwindWork(workInProgress) { function unwindWork(workInProgress) {
popTreeContext(workInProgress);
switch (workInProgress.tag) { switch (workInProgress.tag) {
case 1: case 1:
isContextProvider(workInProgress.type) && popContext(); isContextProvider(workInProgress.type) && popContext();
@ -5776,6 +5804,13 @@ function safelyDetachRef(current, nearestMountedAncestor) {
} }
else ref.current = null; else ref.current = null;
} }
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
var shouldFireAfterActiveInstanceBlur = !1; var shouldFireAfterActiveInstanceBlur = !1;
function commitBeforeMutationEffects(root, firstChild) { function commitBeforeMutationEffects(root, firstChild) {
for (nextEffect = firstChild; null !== nextEffect; ) for (nextEffect = firstChild; null !== nextEffect; )
@ -5840,7 +5875,7 @@ function commitBeforeMutationEffects(root, firstChild) {
function commitHookEffectListUnmount( function commitHookEffectListUnmount(
flags, flags,
finishedWork, finishedWork,
nearestMountedAncestor$jscomp$0 nearestMountedAncestor
) { ) {
var updateQueue = finishedWork.updateQueue; var updateQueue = finishedWork.updateQueue;
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
@ -5850,27 +5885,20 @@ function commitHookEffectListUnmount(
if ((effect.tag & flags) === flags) { if ((effect.tag & flags) === flags) {
var destroy = effect.destroy; var destroy = effect.destroy;
effect.destroy = void 0; effect.destroy = void 0;
if (void 0 !== destroy) { void 0 !== destroy &&
var current = finishedWork, safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
} }
effect = effect.next; effect = effect.next;
} while (effect !== updateQueue); } while (effect !== updateQueue);
} }
} }
function commitHookEffectListMount(tag, finishedWork) { function commitHookEffectListMount(flags, finishedWork) {
finishedWork = finishedWork.updateQueue; finishedWork = finishedWork.updateQueue;
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
if (null !== finishedWork) { if (null !== finishedWork) {
var effect = (finishedWork = finishedWork.next); var effect = (finishedWork = finishedWork.next);
do { do {
if ((effect.tag & tag) === tag) { if ((effect.tag & flags) === flags) {
var create$80 = effect.create; var create$80 = effect.create;
effect.destroy = create$80(); effect.destroy = create$80();
} }
@ -5977,22 +6005,11 @@ function commitMutationEffects(root, firstChild) {
var _effect = effect, var _effect = effect,
destroy = _effect.destroy, destroy = _effect.destroy,
tag = _effect.tag; tag = _effect.tag;
if ( void 0 !== destroy &&
void 0 !== destroy && (0 !== (tag & 2)
(0 !== (tag & 2) || 0 !== (tag & 4)) ? safelyCallDestroy(current, root, destroy)
) { : 0 !== (tag & 4) &&
_effect = current; safelyCallDestroy(current, root, destroy));
var nearestMountedAncestor = root;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
_effect,
nearestMountedAncestor,
error
);
}
}
effect = effect.next; effect = effect.next;
} while (effect !== firstEffect); } while (effect !== firstEffect);
} }
@ -6222,7 +6239,8 @@ var ceil = Math.ceil,
workInProgressRootExitStatus = 0, workInProgressRootExitStatus = 0,
workInProgressRootFatalError = null, workInProgressRootFatalError = null,
workInProgressRootSkippedLanes = 0, workInProgressRootSkippedLanes = 0,
workInProgressRootUpdatedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0,
workInProgressRootRenderPhaseUpdatedLanes = 0,
workInProgressRootPingedLanes = 0, workInProgressRootPingedLanes = 0,
globalMostRecentFallbackTime = 0, globalMostRecentFallbackTime = 0,
workInProgressRootRenderTargetTime = Infinity, workInProgressRootRenderTargetTime = Infinity,
@ -6282,16 +6300,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
var root = markUpdateLaneFromFiberToRoot(fiber, lane); var root = markUpdateLaneFromFiberToRoot(fiber, lane);
if (null === root) return null; if (null === root) return null;
markRootUpdated(root, lane, eventTime); markRootUpdated(root, lane, eventTime);
root === workInProgressRoot && 0 !== (executionContext & 2) && root === workInProgressRoot
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane), ? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
4 === workInProgressRootExitStatus && : (root === workInProgressRoot &&
markRootSuspended$1(root, workInProgressRootRenderLanes)); (0 === (executionContext & 2) &&
ensureRootIsScheduled(root, eventTime); (workInProgressRootInterleavedUpdatedLanes |= lane),
1 === lane && 4 === workInProgressRootExitStatus &&
0 === executionContext && markRootSuspended$1(root, workInProgressRootRenderLanes)),
0 === (fiber.mode & 1) && ensureRootIsScheduled(root, eventTime),
((workInProgressRootRenderTargetTime = now() + 500), 1 === lane &&
includesLegacySyncCallbacks && flushSyncCallbacks()); 0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()));
return root; return root;
} }
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6538,9 +6559,15 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
var prevExecutionContext = executionContext; var prevExecutionContext = executionContext;
executionContext |= 8; executionContext |= 8;
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo)); root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
root = renderRootSync(root, errorRetryLanes); for (
var exitStatus, i = 0;
50 > i &&
((exitStatus = renderRootSync(root, errorRetryLanes)),
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
i++
);
executionContext = prevExecutionContext; executionContext = prevExecutionContext;
return root; return exitStatus;
} }
function isRenderConsistentWithExternalStores(finishedWork) { function isRenderConsistentWithExternalStores(finishedWork) {
for (var node = finishedWork; ; ) { for (var node = finishedWork; ; ) {
@ -6578,7 +6605,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
} }
function markRootSuspended$1(root, suspendedLanes) { function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootUpdatedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes; root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes; root.pingedLanes &= ~suspendedLanes;
for (root = root.expirationTimes; 0 < suspendedLanes; ) { for (root = root.expirationTimes; 0 < suspendedLanes; ) {
@ -6596,13 +6623,10 @@ function performSyncWorkOnRoot(root) {
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes); var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) { if (0 !== root.tag && 2 === exitStatus) {
var prevExecutionContext = executionContext;
executionContext |= 8;
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes && 0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes))); ((lanes = errorRetryLanes),
executionContext = prevExecutionContext; (exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
} }
if (1 === exitStatus) if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError), throw ((exitStatus = workInProgressRootFatalError),
@ -6629,6 +6653,7 @@ function prepareFreshStack(root, lanes) {
if (null !== workInProgress) if (null !== workInProgress)
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) { for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
var interruptedWork = timeoutHandle; var interruptedWork = timeoutHandle;
popTreeContext(interruptedWork);
switch (interruptedWork.tag) { switch (interruptedWork.tag) {
case 1: case 1:
interruptedWork = interruptedWork.type.childContextTypes; interruptedWork = interruptedWork.type.childContextTypes;
@ -6668,7 +6693,7 @@ function prepareFreshStack(root, lanes) {
workInProgressRootRenderLanes = subtreeRenderLanes = lanes; workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
workInProgressRootExitStatus = 0; workInProgressRootExitStatus = 0;
workInProgressRootFatalError = null; workInProgressRootFatalError = null;
workInProgressRootPingedLanes = workInProgressRootUpdatedLanes = workInProgressRootSkippedLanes = 0; workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
if (null !== interleavedQueues) { if (null !== interleavedQueues) {
for (root = 0; root < interleavedQueues.length; root++) for (root = 0; root < interleavedQueues.length; root++)
if ( if (
@ -6747,83 +6772,81 @@ function handleError(root$jscomp$0, thrownValue) {
} }
b: { b: {
sourceFiber$jscomp$0 = returnFiber; sourceFiber$jscomp$0 = returnFiber;
var sourceFiber$jscomp$1 = sourceFiber, var hasInvisibleParentBoundary =
rootRenderLanes = thrownValue, 0 !== (suspenseStackCursor.current & 1);
hasInvisibleParentBoundary =
0 !== (suspenseStackCursor.current & 1),
node = sourceFiber$jscomp$0;
do { do {
var JSCompiler_temp; var JSCompiler_temp;
if ((JSCompiler_temp = 13 === node.tag)) { if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
var nextState = node.memoizedState; var nextState = sourceFiber$jscomp$0.memoizedState;
JSCompiler_temp = JSCompiler_temp =
null !== nextState null !== nextState
? null !== nextState.dehydrated ? null !== nextState.dehydrated
? !0 ? !0
: !1 : !1
: !0 !== node.memoizedProps.unstable_avoidThisFallback : !0 !==
sourceFiber$jscomp$0.memoizedProps
.unstable_avoidThisFallback
? !0 ? !0
: hasInvisibleParentBoundary : hasInvisibleParentBoundary
? !1 ? !1
: !0; : !0;
} }
if (JSCompiler_temp) { if (JSCompiler_temp) {
if (0 === (node.mode & 1)) { var suspenseBoundary = sourceFiber$jscomp$0;
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
else {
node.flags |= 128;
sourceFiber$jscomp$1.flags |= 131072;
sourceFiber$jscomp$1.flags &= -52805;
if (
enablePersistentOffscreenHostContainer &&
null === node.alternate
) {
var offscreenContainer = node.child.child;
if (null !== offscreenContainer) {
var containerProps = getOffscreenContainerProps(
"hidden",
offscreenContainer.memoizedProps.children
);
offscreenContainer.pendingProps = containerProps;
offscreenContainer.memoizedProps = containerProps;
}
}
if (1 === sourceFiber$jscomp$1.tag)
if (null === sourceFiber$jscomp$1.alternate)
sourceFiber$jscomp$1.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber$jscomp$1, update);
}
sourceFiber$jscomp$1.lanes |= 1;
}
var suspenseBoundary = node;
break b;
}
node.flags |= 65536;
node.lanes = rootRenderLanes;
suspenseBoundary = node;
break b; break b;
} }
node = node.return; sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
} while (null !== node); } while (null !== sourceFiber$jscomp$0);
suspenseBoundary = null; suspenseBoundary = null;
} }
if (null !== suspenseBoundary) { if (null !== suspenseBoundary) {
value = void 0; suspenseBoundary.flags &= -257;
sourceFiber = suspenseBoundary; value = suspenseBoundary;
if (sourceFiber.mode & 1) { sourceFiber$jscomp$0 = thrownValue;
if (0 === (value.mode & 1))
if (value === returnFiber) value.flags |= 65536;
else {
value.flags |= 128;
sourceFiber.flags |= 131072;
sourceFiber.flags &= -52805;
if (
enablePersistentOffscreenHostContainer &&
null === value.alternate
) {
var offscreenContainer = value.child.child;
if (null !== offscreenContainer) {
var containerProps = getOffscreenContainerProps(
"hidden",
offscreenContainer.memoizedProps.children
);
offscreenContainer.pendingProps = containerProps;
offscreenContainer.memoizedProps = containerProps;
}
}
if (1 === sourceFiber.tag)
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber, update);
}
sourceFiber.lanes |= 1;
}
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
sourceFiber = void 0;
value = suspenseBoundary;
if (value.mode & 1) {
var pingCache = root.pingCache; var pingCache = root.pingCache;
null === pingCache null === pingCache
? ((pingCache = root.pingCache = new PossiblyWeakMap()), ? ((pingCache = root.pingCache = new PossiblyWeakMap()),
(value = new Set()), (sourceFiber = new Set()),
pingCache.set(wakeable, value)) pingCache.set(wakeable, sourceFiber))
: ((value = pingCache.get(wakeable)), : ((sourceFiber = pingCache.get(wakeable)),
void 0 === value && void 0 === sourceFiber &&
((value = new Set()), pingCache.set(wakeable, value))); ((sourceFiber = new Set()),
if (!value.has(thrownValue)) { pingCache.set(wakeable, sourceFiber)));
value.add(thrownValue); if (!sourceFiber.has(thrownValue)) {
sourceFiber.add(thrownValue);
var ping = pingSuspendedRoot.bind( var ping = pingSuspendedRoot.bind(
null, null,
root, root,
@ -6833,11 +6856,11 @@ function handleError(root$jscomp$0, thrownValue) {
wakeable.then(ping, ping); wakeable.then(ping, ping);
} }
} }
var wakeables = sourceFiber.updateQueue; var wakeables = value.updateQueue;
if (null === wakeables) { if (null === wakeables) {
var updateQueue = new Set(); var updateQueue = new Set();
updateQueue.add(wakeable); updateQueue.add(wakeable);
sourceFiber.updateQueue = updateQueue; value.updateQueue = updateQueue;
} else wakeables.add(wakeable); } else wakeables.add(wakeable);
break a; break a;
} else } else
@ -7784,7 +7807,7 @@ function createWorkInProgress(current, pendingProps) {
(workInProgress.flags = 0), (workInProgress.flags = 0),
(workInProgress.subtreeFlags = 0), (workInProgress.subtreeFlags = 0),
(workInProgress.deletions = null)); (workInProgress.deletions = null));
workInProgress.flags = current.flags & 7340032; workInProgress.flags = current.flags & 14680064;
workInProgress.childLanes = current.childLanes; workInProgress.childLanes = current.childLanes;
workInProgress.lanes = current.lanes; workInProgress.lanes = current.lanes;
workInProgress.child = current.child; workInProgress.child = current.child;
@ -8140,10 +8163,10 @@ batchedUpdatesImpl = function(fn, a) {
} }
}; };
var roots = new Map(), var roots = new Map(),
devToolsConfig$jscomp$inline_935 = { devToolsConfig$jscomp$inline_925 = {
findFiberByHostInstance: getInstanceFromInstance, findFiberByHostInstance: getInstanceFromInstance,
bundleType: 0, bundleType: 0,
version: "18.0.0-afcb9cdc9-20211008", version: "18.0.0-c0c71a868-20211112",
rendererPackageName: "react-native-renderer", rendererPackageName: "react-native-renderer",
rendererConfig: { rendererConfig: {
getInspectorDataForViewTag: function() { getInspectorDataForViewTag: function() {
@ -8158,11 +8181,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle) }.bind(null, findNodeHandle)
} }
}; };
var internals$jscomp$inline_1189 = { var internals$jscomp$inline_1179 = {
bundleType: devToolsConfig$jscomp$inline_935.bundleType, bundleType: devToolsConfig$jscomp$inline_925.bundleType,
version: devToolsConfig$jscomp$inline_935.version, version: devToolsConfig$jscomp$inline_925.version,
rendererPackageName: devToolsConfig$jscomp$inline_935.rendererPackageName, rendererPackageName: devToolsConfig$jscomp$inline_925.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_935.rendererConfig, rendererConfig: devToolsConfig$jscomp$inline_925.rendererConfig,
overrideHookState: null, overrideHookState: null,
overrideHookStateDeletePath: null, overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null, overrideHookStateRenamePath: null,
@ -8178,26 +8201,26 @@ var internals$jscomp$inline_1189 = {
return null === fiber ? null : fiber.stateNode; return null === fiber ? null : fiber.stateNode;
}, },
findFiberByHostInstance: findFiberByHostInstance:
devToolsConfig$jscomp$inline_935.findFiberByHostInstance || devToolsConfig$jscomp$inline_925.findFiberByHostInstance ||
emptyFindFiberByHostInstance, emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null, findHostInstancesForRefresh: null,
scheduleRefresh: null, scheduleRefresh: null,
scheduleRoot: null, scheduleRoot: null,
setRefreshHandler: null, setRefreshHandler: null,
getCurrentFiber: null, getCurrentFiber: null,
reconcilerVersion: "18.0.0-afcb9cdc9-20211008" reconcilerVersion: "18.0.0-c0c71a868-20211112"
}; };
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1190 = __REACT_DEVTOOLS_GLOBAL_HOOK__; var hook$jscomp$inline_1180 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if ( if (
!hook$jscomp$inline_1190.isDisabled && !hook$jscomp$inline_1180.isDisabled &&
hook$jscomp$inline_1190.supportsFiber hook$jscomp$inline_1180.supportsFiber
) )
try { try {
(rendererID = hook$jscomp$inline_1190.inject( (rendererID = hook$jscomp$inline_1180.inject(
internals$jscomp$inline_1189 internals$jscomp$inline_1179
)), )),
(injectedHook = hook$jscomp$inline_1190); (injectedHook = hook$jscomp$inline_1180);
} catch (err) {} } catch (err) {}
} }
exports.createPortal = function(children, containerTag) { exports.createPortal = function(children, containerTag) {

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

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

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

@ -7,7 +7,7 @@
* @noflow * @noflow
* @nolint * @nolint
* @preventMunge * @preventMunge
* @generated SignedSource<<b5653158726335473c74f890aec077fc>> * @generated SignedSource<<6fc8d6b12f7d5605a1f7ab5894718cb3>>
*/ */
"use strict"; "use strict";
@ -1697,6 +1697,13 @@ function onCommitRoot(root) {
); );
} catch (err) {} } catch (err) {}
} }
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(x) {
x >>>= 0;
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
}
var nextTransitionLane = 64, var nextTransitionLane = 64,
nextRetryLane = 4194304; nextRetryLane = 4194304;
function getHighestPriorityLanes(lanes) { function getHighestPriorityLanes(lanes) {
@ -1880,12 +1887,6 @@ function markRootEntangled(root, entangledLanes) {
rootEntangledLanes &= ~lane; rootEntangledLanes &= ~lane;
} }
} }
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(lanes) {
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
}
var currentUpdatePriority = 0; var currentUpdatePriority = 0;
function lanesToEventPriority(lanes) { function lanesToEventPriority(lanes) {
lanes &= -lanes; lanes &= -lanes;
@ -2087,12 +2088,14 @@ function shallowEqual(objA, objB) {
var keysA = Object.keys(objA), var keysA = Object.keys(objA),
keysB = Object.keys(objB); keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1; if (keysA.length !== keysB.length) return !1;
for (keysB = 0; keysB < keysA.length; keysB++) for (keysB = 0; keysB < keysA.length; keysB++) {
var currentKey = keysA[keysB];
if ( if (
!hasOwnProperty.call(objB, keysA[keysB]) || !hasOwnProperty.call(objB, currentKey) ||
!objectIs(objA[keysA[keysB]], objB[keysA[keysB]]) !objectIs(objA[currentKey], objB[currentKey])
) )
return !1; return !1;
}
return !0; return !0;
} }
function describeFiber(fiber) { function describeFiber(fiber) {
@ -2602,6 +2605,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
"function" === typeof instance.componentDidMount && "function" === typeof instance.componentDidMount &&
(workInProgress.flags |= 4); (workInProgress.flags |= 4);
} }
var forkStack = [],
forkStackIndex = 0,
treeForkProvider = null,
idStack = [],
idStackIndex = 0,
treeContextProvider = null;
function popTreeContext(workInProgress) {
for (; workInProgress === treeForkProvider; )
(treeForkProvider = forkStack[--forkStackIndex]),
(forkStack[forkStackIndex] = null),
--forkStackIndex,
(forkStack[forkStackIndex] = null);
for (; workInProgress === treeContextProvider; )
(treeContextProvider = idStack[--idStackIndex]),
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null);
}
function coerceRef(returnFiber, current, element) { function coerceRef(returnFiber, current, element) {
returnFiber = element.ref; returnFiber = element.ref;
if ( if (
@ -2696,7 +2719,8 @@ function ChildReconciler(shouldTrackSideEffects) {
} }
function placeChild(newFiber, lastPlacedIndex, newIndex) { function placeChild(newFiber, lastPlacedIndex, newIndex) {
newFiber.index = newIndex; newFiber.index = newIndex;
if (!shouldTrackSideEffects) return lastPlacedIndex; if (!shouldTrackSideEffects)
return (newFiber.flags |= 1048576), lastPlacedIndex;
newIndex = newFiber.alternate; newIndex = newFiber.alternate;
if (null !== newIndex) if (null !== newIndex)
return ( return (
@ -3300,7 +3324,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
currentHook = null, currentHook = null,
workInProgressHook = null, workInProgressHook = null,
didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdate = !1,
didScheduleRenderPhaseUpdateDuringThisPass = !1; didScheduleRenderPhaseUpdateDuringThisPass = !1,
globalClientIdCounter = 0;
function throwInvalidHookError() { function throwInvalidHookError() {
throw Error( throw Error(
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
@ -3723,7 +3748,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
} }
function mountEffect(create, deps) { function mountEffect(create, deps) {
return mountEffectImpl(4196352, 8, create, deps); return mountEffectImpl(8390656, 8, create, deps);
} }
function updateEffect(create, deps) { function updateEffect(create, deps) {
return updateEffectImpl(2048, 8, create, deps); return updateEffectImpl(2048, 8, create, deps);
@ -3803,6 +3828,9 @@ function startTransition(setPending, callback) {
(ReactCurrentBatchConfig$1.transition = prevTransition); (ReactCurrentBatchConfig$1.transition = prevTransition);
} }
} }
function updateId() {
return updateWorkInProgressHook().memoizedState;
}
function dispatchReducerAction(fiber, queue, action) { function dispatchReducerAction(fiber, queue, action) {
var lane = requestUpdateLane(fiber); var lane = requestUpdateLane(fiber);
action = { action = {
@ -3910,7 +3938,7 @@ var ContextOnlyDispatcher = {
useTransition: throwInvalidHookError, useTransition: throwInvalidHookError,
useMutableSource: throwInvalidHookError, useMutableSource: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError,
useOpaqueIdentifier: throwInvalidHookError, useId: throwInvalidHookError,
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}, },
HooksDispatcherOnMount = { HooksDispatcherOnMount = {
@ -4008,8 +4036,10 @@ var ContextOnlyDispatcher = {
return useMutableSource(hook, source, getSnapshot, subscribe); return useMutableSource(hook, source, getSnapshot, subscribe);
}, },
useSyncExternalStore: mountSyncExternalStore, useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() { useId: function() {
throw Error("Not yet implemented"); var hook = mountWorkInProgressHook();
var id = "r:" + (globalClientIdCounter++).toString(32);
return (hook.memoizedState = id);
}, },
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}, },
@ -4092,9 +4122,7 @@ var ContextOnlyDispatcher = {
} }
return nextSnapshot; return nextSnapshot;
}, },
useOpaqueIdentifier: function() { useId: updateId,
return updateReducer(basicStateReducer)[0];
},
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}, },
HooksDispatcherOnRerender = { HooksDispatcherOnRerender = {
@ -4137,9 +4165,7 @@ var ContextOnlyDispatcher = {
}, },
useMutableSource: updateMutableSource, useMutableSource: updateMutableSource,
useSyncExternalStore: mountSyncExternalStore, useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() { useId: updateId,
return rerenderReducer(basicStateReducer)[0];
},
unstable_isNewReconciler: !1 unstable_isNewReconciler: !1
}; };
function createCapturedValue(value, source) { function createCapturedValue(value, source) {
@ -4273,8 +4299,8 @@ function bubbleProperties(completedWork) {
if (didBailout) if (didBailout)
for (var child$36 = completedWork.child; null !== child$36; ) for (var child$36 = completedWork.child; null !== child$36; )
(newChildLanes |= child$36.lanes | child$36.childLanes), (newChildLanes |= child$36.lanes | child$36.childLanes),
(subtreeFlags |= child$36.subtreeFlags & 7340032), (subtreeFlags |= child$36.subtreeFlags & 14680064),
(subtreeFlags |= child$36.flags & 7340032), (subtreeFlags |= child$36.flags & 14680064),
(child$36.return = completedWork), (child$36.return = completedWork),
(child$36 = child$36.sibling); (child$36 = child$36.sibling);
else else
@ -4290,6 +4316,7 @@ function bubbleProperties(completedWork) {
} }
function completeWork(current, workInProgress, renderLanes) { function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps; var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) { switch (workInProgress.tag) {
case 2: case 2:
case 16: case 16:
@ -4434,7 +4461,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootExitStatus = 4; workInProgressRootExitStatus = 4;
null === workInProgressRoot || null === workInProgressRoot ||
(0 === (workInProgressRootSkippedLanes & 268435455) && (0 === (workInProgressRootSkippedLanes & 268435455) &&
0 === (workInProgressRootUpdatedLanes & 268435455)) || 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
markRootSuspended$1( markRootSuspended$1(
workInProgressRoot, workInProgressRoot,
workInProgressRootRenderLanes workInProgressRootRenderLanes
@ -4489,7 +4516,7 @@ function completeWork(current, workInProgress, renderLanes) {
for (newProps = workInProgress.child; null !== newProps; ) for (newProps = workInProgress.child; null !== newProps; )
(renderLanes = newProps), (renderLanes = newProps),
(type = current), (type = current),
(renderLanes.flags &= 7340034), (renderLanes.flags &= 14680066),
(updatePayload = renderLanes.alternate), (updatePayload = renderLanes.alternate),
null === updatePayload null === updatePayload
? ((renderLanes.childLanes = 0), ? ((renderLanes.childLanes = 0),
@ -5070,7 +5097,7 @@ function pushHostRootContext(workInProgress) {
pushTopLevelContextObject(workInProgress, root.context, !1); pushTopLevelContextObject(workInProgress, root.context, !1);
pushHostContainer(workInProgress, root.containerInfo); pushHostContainer(workInProgress, root.containerInfo);
} }
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 }; var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
function mountSuspenseOffscreenState(renderLanes) { function mountSuspenseOffscreenState(renderLanes) {
return { baseLanes: renderLanes, cachePool: null }; return { baseLanes: renderLanes, cachePool: null };
} }
@ -5263,7 +5290,7 @@ function updateSuspenseFallbackChildren(
(primaryChildren.pendingProps = primaryChildProps), (primaryChildren.pendingProps = primaryChildProps),
(workInProgress.deletions = null)) (workInProgress.deletions = null))
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)), : ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
(primaryChildren.subtreeFlags = current.subtreeFlags & 7340032)); (primaryChildren.subtreeFlags = current.subtreeFlags & 14680064));
null !== currentFallbackChildFragment null !== currentFallbackChildFragment
? (fallbackChildren = createWorkInProgress( ? (fallbackChildren = createWorkInProgress(
currentFallbackChildFragment, currentFallbackChildFragment,
@ -5487,6 +5514,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
} }
function unwindWork(workInProgress) { function unwindWork(workInProgress) {
popTreeContext(workInProgress);
switch (workInProgress.tag) { switch (workInProgress.tag) {
case 1: case 1:
isContextProvider(workInProgress.type) && popContext(); isContextProvider(workInProgress.type) && popContext();
@ -5544,6 +5572,13 @@ function safelyDetachRef(current, nearestMountedAncestor) {
} }
else ref.current = null; else ref.current = null;
} }
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
var shouldFireAfterActiveInstanceBlur = !1; var shouldFireAfterActiveInstanceBlur = !1;
function commitBeforeMutationEffects(root, firstChild) { function commitBeforeMutationEffects(root, firstChild) {
for (nextEffect = firstChild; null !== nextEffect; ) for (nextEffect = firstChild; null !== nextEffect; )
@ -5608,7 +5643,7 @@ function commitBeforeMutationEffects(root, firstChild) {
function commitHookEffectListUnmount( function commitHookEffectListUnmount(
flags, flags,
finishedWork, finishedWork,
nearestMountedAncestor$jscomp$0 nearestMountedAncestor
) { ) {
var updateQueue = finishedWork.updateQueue; var updateQueue = finishedWork.updateQueue;
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
@ -5618,27 +5653,20 @@ function commitHookEffectListUnmount(
if ((effect.tag & flags) === flags) { if ((effect.tag & flags) === flags) {
var destroy = effect.destroy; var destroy = effect.destroy;
effect.destroy = void 0; effect.destroy = void 0;
if (void 0 !== destroy) { void 0 !== destroy &&
var current = finishedWork, safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
} }
effect = effect.next; effect = effect.next;
} while (effect !== updateQueue); } while (effect !== updateQueue);
} }
} }
function commitHookEffectListMount(tag, finishedWork) { function commitHookEffectListMount(flags, finishedWork) {
finishedWork = finishedWork.updateQueue; finishedWork = finishedWork.updateQueue;
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
if (null !== finishedWork) { if (null !== finishedWork) {
var effect = (finishedWork = finishedWork.next); var effect = (finishedWork = finishedWork.next);
do { do {
if ((effect.tag & tag) === tag) { if ((effect.tag & flags) === flags) {
var create$80 = effect.create; var create$80 = effect.create;
effect.destroy = create$80(); effect.destroy = create$80();
} }
@ -5646,7 +5674,7 @@ function commitHookEffectListMount(tag, finishedWork) {
} while (effect !== finishedWork); } while (effect !== finishedWork);
} }
} }
function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) { function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
try { try {
injectedHook.onCommitFiberUnmount(rendererID, current); injectedHook.onCommitFiberUnmount(rendererID, current);
@ -5666,24 +5694,17 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
var _effect = effect, var _effect = effect,
destroy = _effect.destroy; destroy = _effect.destroy;
_effect = _effect.tag; _effect = _effect.tag;
if ( void 0 !== destroy &&
void 0 !== destroy && (0 !== (_effect & 2)
(0 !== (_effect & 2) || 0 !== (_effect & 4)) ? safelyCallDestroy(current, nearestMountedAncestor, destroy)
) { : 0 !== (_effect & 4) &&
_effect = current; safelyCallDestroy(current, nearestMountedAncestor, destroy));
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(_effect, nearestMountedAncestor, error);
}
}
effect = effect.next; effect = effect.next;
} while (effect !== finishedRoot); } while (effect !== finishedRoot);
} }
break; break;
case 1: case 1:
safelyDetachRef(current, nearestMountedAncestor$jscomp$0); safelyDetachRef(current, nearestMountedAncestor);
finishedRoot = current.stateNode; finishedRoot = current.stateNode;
if ("function" === typeof finishedRoot.componentWillUnmount) if ("function" === typeof finishedRoot.componentWillUnmount)
try { try {
@ -5691,22 +5712,14 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
(finishedRoot.state = current.memoizedState), (finishedRoot.state = current.memoizedState),
finishedRoot.componentWillUnmount(); finishedRoot.componentWillUnmount();
} catch (error) { } catch (error) {
captureCommitPhaseError( captureCommitPhaseError(current, nearestMountedAncestor, error);
current,
nearestMountedAncestor$jscomp$0,
error
);
} }
break; break;
case 5: case 5:
safelyDetachRef(current, nearestMountedAncestor$jscomp$0); safelyDetachRef(current, nearestMountedAncestor);
break; break;
case 4: case 4:
unmountHostComponents( unmountHostComponents(finishedRoot, current, nearestMountedAncestor);
finishedRoot,
current,
nearestMountedAncestor$jscomp$0
);
} }
} }
function detachFiberAfterEffects(fiber) { function detachFiberAfterEffects(fiber) {
@ -6340,7 +6353,8 @@ var ceil = Math.ceil,
workInProgressRootExitStatus = 0, workInProgressRootExitStatus = 0,
workInProgressRootFatalError = null, workInProgressRootFatalError = null,
workInProgressRootSkippedLanes = 0, workInProgressRootSkippedLanes = 0,
workInProgressRootUpdatedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0,
workInProgressRootRenderPhaseUpdatedLanes = 0,
workInProgressRootPingedLanes = 0, workInProgressRootPingedLanes = 0,
globalMostRecentFallbackTime = 0, globalMostRecentFallbackTime = 0,
workInProgressRootRenderTargetTime = Infinity, workInProgressRootRenderTargetTime = Infinity,
@ -6387,16 +6401,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
var root = markUpdateLaneFromFiberToRoot(fiber, lane); var root = markUpdateLaneFromFiberToRoot(fiber, lane);
if (null === root) return null; if (null === root) return null;
markRootUpdated(root, lane, eventTime); markRootUpdated(root, lane, eventTime);
root === workInProgressRoot && 0 !== (executionContext & 2) && root === workInProgressRoot
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane), ? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
4 === workInProgressRootExitStatus && : (root === workInProgressRoot &&
markRootSuspended$1(root, workInProgressRootRenderLanes)); (0 === (executionContext & 2) &&
ensureRootIsScheduled(root, eventTime); (workInProgressRootInterleavedUpdatedLanes |= lane),
1 === lane && 4 === workInProgressRootExitStatus &&
0 === executionContext && markRootSuspended$1(root, workInProgressRootRenderLanes)),
0 === (fiber.mode & 1) && ensureRootIsScheduled(root, eventTime),
((workInProgressRootRenderTargetTime = now() + 500), 1 === lane &&
includesLegacySyncCallbacks && flushSyncCallbacks()); 0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()));
return root; return root;
} }
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6643,9 +6660,15 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
var prevExecutionContext = executionContext; var prevExecutionContext = executionContext;
executionContext |= 8; executionContext |= 8;
root.isDehydrated && (root.isDehydrated = !1); root.isDehydrated && (root.isDehydrated = !1);
root = renderRootSync(root, errorRetryLanes); for (
var exitStatus, i = 0;
50 > i &&
((exitStatus = renderRootSync(root, errorRetryLanes)),
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
i++
);
executionContext = prevExecutionContext; executionContext = prevExecutionContext;
return root; return exitStatus;
} }
function isRenderConsistentWithExternalStores(finishedWork) { function isRenderConsistentWithExternalStores(finishedWork) {
for (var node = finishedWork; ; ) { for (var node = finishedWork; ; ) {
@ -6683,7 +6706,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
} }
function markRootSuspended$1(root, suspendedLanes) { function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootUpdatedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes; root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes; root.pingedLanes &= ~suspendedLanes;
for (root = root.expirationTimes; 0 < suspendedLanes; ) { for (root = root.expirationTimes; 0 < suspendedLanes; ) {
@ -6701,13 +6724,10 @@ function performSyncWorkOnRoot(root) {
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes); var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) { if (0 !== root.tag && 2 === exitStatus) {
var prevExecutionContext = executionContext;
executionContext |= 8;
root.isDehydrated && (root.isDehydrated = !1);
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes && 0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes))); ((lanes = errorRetryLanes),
executionContext = prevExecutionContext; (exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
} }
if (1 === exitStatus) if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError), throw ((exitStatus = workInProgressRootFatalError),
@ -6734,6 +6754,7 @@ function prepareFreshStack(root, lanes) {
if (null !== workInProgress) if (null !== workInProgress)
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) { for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
var interruptedWork = timeoutHandle; var interruptedWork = timeoutHandle;
popTreeContext(interruptedWork);
switch (interruptedWork.tag) { switch (interruptedWork.tag) {
case 1: case 1:
interruptedWork = interruptedWork.type.childContextTypes; interruptedWork = interruptedWork.type.childContextTypes;
@ -6773,7 +6794,7 @@ function prepareFreshStack(root, lanes) {
workInProgressRootRenderLanes = subtreeRenderLanes = lanes; workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
workInProgressRootExitStatus = 0; workInProgressRootExitStatus = 0;
workInProgressRootFatalError = null; workInProgressRootFatalError = null;
workInProgressRootPingedLanes = workInProgressRootUpdatedLanes = workInProgressRootSkippedLanes = 0; workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
if (null !== interleavedQueues) { if (null !== interleavedQueues) {
for (root = 0; root < interleavedQueues.length; root++) for (root = 0; root < interleavedQueues.length; root++)
if ( if (
@ -6852,69 +6873,67 @@ function handleError(root$jscomp$0, thrownValue) {
} }
b: { b: {
sourceFiber$jscomp$0 = returnFiber; sourceFiber$jscomp$0 = returnFiber;
var sourceFiber$jscomp$1 = sourceFiber, var hasInvisibleParentBoundary =
rootRenderLanes = thrownValue, 0 !== (suspenseStackCursor.current & 1);
hasInvisibleParentBoundary =
0 !== (suspenseStackCursor.current & 1),
node = sourceFiber$jscomp$0;
do { do {
var JSCompiler_temp; var JSCompiler_temp;
if ((JSCompiler_temp = 13 === node.tag)) { if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
var nextState = node.memoizedState; var nextState = sourceFiber$jscomp$0.memoizedState;
JSCompiler_temp = JSCompiler_temp =
null !== nextState null !== nextState
? null !== nextState.dehydrated ? null !== nextState.dehydrated
? !0 ? !0
: !1 : !1
: !0 !== node.memoizedProps.unstable_avoidThisFallback : !0 !==
sourceFiber$jscomp$0.memoizedProps
.unstable_avoidThisFallback
? !0 ? !0
: hasInvisibleParentBoundary : hasInvisibleParentBoundary
? !1 ? !1
: !0; : !0;
} }
if (JSCompiler_temp) { if (JSCompiler_temp) {
if (0 === (node.mode & 1)) { var suspenseBoundary = sourceFiber$jscomp$0;
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
else {
node.flags |= 128;
sourceFiber$jscomp$1.flags |= 131072;
sourceFiber$jscomp$1.flags &= -52805;
if (1 === sourceFiber$jscomp$1.tag)
if (null === sourceFiber$jscomp$1.alternate)
sourceFiber$jscomp$1.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber$jscomp$1, update);
}
sourceFiber$jscomp$1.lanes |= 1;
}
var suspenseBoundary = node;
break b;
}
node.flags |= 65536;
node.lanes = rootRenderLanes;
suspenseBoundary = node;
break b; break b;
} }
node = node.return; sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
} while (null !== node); } while (null !== sourceFiber$jscomp$0);
suspenseBoundary = null; suspenseBoundary = null;
} }
if (null !== suspenseBoundary) { if (null !== suspenseBoundary) {
value = void 0; suspenseBoundary.flags &= -257;
sourceFiber = suspenseBoundary; value = suspenseBoundary;
if (sourceFiber.mode & 1) { sourceFiber$jscomp$0 = thrownValue;
if (0 === (value.mode & 1))
if (value === returnFiber) value.flags |= 65536;
else {
value.flags |= 128;
sourceFiber.flags |= 131072;
sourceFiber.flags &= -52805;
if (1 === sourceFiber.tag)
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber, update);
}
sourceFiber.lanes |= 1;
}
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
sourceFiber = void 0;
value = suspenseBoundary;
if (value.mode & 1) {
var pingCache = root.pingCache; var pingCache = root.pingCache;
null === pingCache null === pingCache
? ((pingCache = root.pingCache = new PossiblyWeakMap()), ? ((pingCache = root.pingCache = new PossiblyWeakMap()),
(value = new Set()), (sourceFiber = new Set()),
pingCache.set(wakeable, value)) pingCache.set(wakeable, sourceFiber))
: ((value = pingCache.get(wakeable)), : ((sourceFiber = pingCache.get(wakeable)),
void 0 === value && void 0 === sourceFiber &&
((value = new Set()), pingCache.set(wakeable, value))); ((sourceFiber = new Set()),
if (!value.has(thrownValue)) { pingCache.set(wakeable, sourceFiber)));
value.add(thrownValue); if (!sourceFiber.has(thrownValue)) {
sourceFiber.add(thrownValue);
var ping = pingSuspendedRoot.bind( var ping = pingSuspendedRoot.bind(
null, null,
root, root,
@ -6924,11 +6943,11 @@ function handleError(root$jscomp$0, thrownValue) {
wakeable.then(ping, ping); wakeable.then(ping, ping);
} }
} }
var wakeables = sourceFiber.updateQueue; var wakeables = value.updateQueue;
if (null === wakeables) { if (null === wakeables) {
var updateQueue = new Set(); var updateQueue = new Set();
updateQueue.add(wakeable); updateQueue.add(wakeable);
sourceFiber.updateQueue = updateQueue; value.updateQueue = updateQueue;
} else wakeables.add(wakeable); } else wakeables.add(wakeable);
break a; break a;
} else } else
@ -7875,7 +7894,7 @@ function createWorkInProgress(current, pendingProps) {
(workInProgress.flags = 0), (workInProgress.flags = 0),
(workInProgress.subtreeFlags = 0), (workInProgress.subtreeFlags = 0),
(workInProgress.deletions = null)); (workInProgress.deletions = null));
workInProgress.flags = current.flags & 7340032; workInProgress.flags = current.flags & 14680064;
workInProgress.childLanes = current.childLanes; workInProgress.childLanes = current.childLanes;
workInProgress.lanes = current.lanes; workInProgress.lanes = current.lanes;
workInProgress.child = current.child; workInProgress.child = current.child;
@ -8231,10 +8250,10 @@ batchedUpdatesImpl = function(fn, a) {
} }
}; };
var roots = new Map(), var roots = new Map(),
devToolsConfig$jscomp$inline_976 = { devToolsConfig$jscomp$inline_966 = {
findFiberByHostInstance: getInstanceFromTag, findFiberByHostInstance: getInstanceFromTag,
bundleType: 0, bundleType: 0,
version: "18.0.0-afcb9cdc9-20211008", version: "18.0.0-c0c71a868-20211112",
rendererPackageName: "react-native-renderer", rendererPackageName: "react-native-renderer",
rendererConfig: { rendererConfig: {
getInspectorDataForViewTag: function() { getInspectorDataForViewTag: function() {
@ -8249,11 +8268,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle) }.bind(null, findNodeHandle)
} }
}; };
var internals$jscomp$inline_1240 = { var internals$jscomp$inline_1230 = {
bundleType: devToolsConfig$jscomp$inline_976.bundleType, bundleType: devToolsConfig$jscomp$inline_966.bundleType,
version: devToolsConfig$jscomp$inline_976.version, version: devToolsConfig$jscomp$inline_966.version,
rendererPackageName: devToolsConfig$jscomp$inline_976.rendererPackageName, rendererPackageName: devToolsConfig$jscomp$inline_966.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_976.rendererConfig, rendererConfig: devToolsConfig$jscomp$inline_966.rendererConfig,
overrideHookState: null, overrideHookState: null,
overrideHookStateDeletePath: null, overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null, overrideHookStateRenamePath: null,
@ -8269,26 +8288,26 @@ var internals$jscomp$inline_1240 = {
return null === fiber ? null : fiber.stateNode; return null === fiber ? null : fiber.stateNode;
}, },
findFiberByHostInstance: findFiberByHostInstance:
devToolsConfig$jscomp$inline_976.findFiberByHostInstance || devToolsConfig$jscomp$inline_966.findFiberByHostInstance ||
emptyFindFiberByHostInstance, emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null, findHostInstancesForRefresh: null,
scheduleRefresh: null, scheduleRefresh: null,
scheduleRoot: null, scheduleRoot: null,
setRefreshHandler: null, setRefreshHandler: null,
getCurrentFiber: null, getCurrentFiber: null,
reconcilerVersion: "18.0.0-afcb9cdc9-20211008" reconcilerVersion: "18.0.0-c0c71a868-20211112"
}; };
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1241 = __REACT_DEVTOOLS_GLOBAL_HOOK__; var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if ( if (
!hook$jscomp$inline_1241.isDisabled && !hook$jscomp$inline_1231.isDisabled &&
hook$jscomp$inline_1241.supportsFiber hook$jscomp$inline_1231.supportsFiber
) )
try { try {
(rendererID = hook$jscomp$inline_1241.inject( (rendererID = hook$jscomp$inline_1231.inject(
internals$jscomp$inline_1240 internals$jscomp$inline_1230
)), )),
(injectedHook = hook$jscomp$inline_1241); (injectedHook = hook$jscomp$inline_1231);
} catch (err) {} } catch (err) {}
} }
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {

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