Preparing search index...
    • 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

      Returns Element

      The screen wrapped in an ErrorBoundary

      <Stack.Group screenLayout={errorBoundaryLayout}>
      <Stack.Screen name='RecipeAddOcr' component={RecipeAddOcr} />
      </Stack.Group>