diff --git a/packages/core/src/useNavigationBuilder.tsx b/packages/core/src/useNavigationBuilder.tsx index a62ee54d..45f00982 100644 --- a/packages/core/src/useNavigationBuilder.tsx +++ b/packages/core/src/useNavigationBuilder.tsx @@ -93,7 +93,7 @@ const getRouteConfigsFromChildren = < `A navigator can only contain 'Screen' components as its direct children (found '${ // @ts-expect-error: child can be any type and we're accessing it safely, but TS doesn't understand it child.type?.name ? child.type.name : String(child) - }')` + }'). To render this component in the navigator, pass it in the 'component' prop to 'Screen'.` ); }, []);