Screen layout that contains a render error inside the screen that threw
instead of tearing down the whole navigator.
Passed to a Stack.Screen's layout or a Stack.Group's screenLayout in
React Navigation v7. This replaced the former withErrorBoundary HOC: the
wrapping is declared on the route rather than baked into the screen's export.
Parameters
props: {children:ReactNode}
Screen layout args; only children (the rendered screen) is used
Screen
layoutthat contains a render error inside the screen that threw instead of tearing down the whole navigator.Passed to a
Stack.Screen'slayoutor aStack.Group'sscreenLayoutin React Navigation v7. This replaced the formerwithErrorBoundaryHOC: the wrapping is declared on the route rather than baked into the screen's export.