in Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js [5209:5349]
throw Error(
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
bubbleProperties(workInProgress);
return null;
}
requiredContext(contextStackCursor$1.current);
current = allocateTag();
type = getViewConfigForType(type);
var updatePayload = diffProperties(
null,
emptyObject,
newProps,
type.validAttributes
);
ReactNativePrivateInterface.UIManager.createView(
current,
type.uiViewClassName,
renderLanes,
updatePayload
);
renderLanes = new ReactNativeFiberHostComponent(
current,
type,
workInProgress
);
instanceCache.set(current, workInProgress);
instanceProps.set(current, newProps);
appendAllChildren(renderLanes, workInProgress, !1, !1);
workInProgress.stateNode = renderLanes;
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
null !== workInProgress.ref && (workInProgress.flags |= 256);
}
bubbleProperties(workInProgress);
return null;
case 6:
if (current && null != workInProgress.stateNode)
updateHostText$1(
current,
workInProgress,
current.memoizedProps,
newProps
);
else {
if ("string" !== typeof newProps && null === workInProgress.stateNode)
throw Error(
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
current = requiredContext(rootInstanceStackCursor.current);
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
throw Error(
"Text strings must be rendered within a <Text> component."
);
renderLanes = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
renderLanes,
"RCTRawText",
current,
{ text: newProps }
);
instanceCache.set(renderLanes, workInProgress);
workInProgress.stateNode = renderLanes;
}
bubbleProperties(workInProgress);
return null;
case 13:
pop(suspenseStackCursor);
newProps = workInProgress.memoizedState;
if (0 !== (workInProgress.flags & 128))
return (
(workInProgress.lanes = renderLanes),
0 !== (workInProgress.mode & 2) &&
transferActualDuration(workInProgress),
workInProgress
);
newProps = null !== newProps;
renderLanes = !1;
null !== current && (renderLanes = null !== current.memoizedState);
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
if (
(null === current &&
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
0 !== (suspenseStackCursor.current & 1)
)
0 === workInProgressRootExitStatus &&
(workInProgressRootExitStatus = 3);
else {
if (
0 === workInProgressRootExitStatus ||
3 === workInProgressRootExitStatus
)
workInProgressRootExitStatus = 4;
null === workInProgressRoot ||
(0 === (workInProgressRootSkippedLanes & 268435455) &&
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
markRootSuspended$1(
workInProgressRoot,
workInProgressRootRenderLanes
);
}
if (newProps || renderLanes) workInProgress.flags |= 4;
bubbleProperties(workInProgress);
0 !== (workInProgress.mode & 2) &&
newProps &&
((current = workInProgress.child),
null !== current &&
(workInProgress.treeBaseDuration -= current.treeBaseDuration));
return null;
case 4:
return (
popHostContainer(),
updateHostContainer(current, workInProgress),
bubbleProperties(workInProgress),
null
);
case 10:
return (
popProvider(workInProgress.type._context),
bubbleProperties(workInProgress),
null
);
case 17:
return (
isContextProvider(workInProgress.type) && popContext(),
bubbleProperties(workInProgress),
null
);
case 19:
pop(suspenseStackCursor);
type = workInProgress.memoizedState;
if (null === type) return bubbleProperties(workInProgress), null;
newProps = 0 !== (workInProgress.flags & 128);
updatePayload = type.rendering;
if (null === updatePayload)
if (newProps) cutOffTailIfNeeded(type, !1);
else {
if (
0 !== workInProgressRootExitStatus ||
(null !== current && 0 !== (current.flags & 128))
)
for (current = workInProgress.child; null !== current; ) {