diff --git a/packages/core/src/BaseNavigationContainer.tsx b/packages/core/src/BaseNavigationContainer.tsx index 9f117247..df898815 100644 --- a/packages/core/src/BaseNavigationContainer.tsx +++ b/packages/core/src/BaseNavigationContainer.tsx @@ -21,10 +21,10 @@ import useSyncState from './useSyncState'; type State = NavigationState | PartialState | undefined; const MISSING_CONTEXT_ERROR = - "Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started.html for setup instructions."; + "Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions."; const NOT_INITIALIZED_ERROR = - "The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop.html#handling-initialization for more details."; + "The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details."; export const NavigationStateContext = React.createContext<{ isDefault?: true; @@ -238,7 +238,7 @@ const BaseNavigationContainer = React.forwardRef( hasWarnedForSerialization = true; console.warn( - "Non-serializable values were found in the navigation state, which can break usage such as persisting and restoring state. This might happen if you passed non-serializable values such as function, class instances etc. in params. If you need to use components with callbacks in your options, you can use 'navigation.setOptions' instead. See https://reactnavigation.org/docs/troubleshooting.html#i-get-the-warning-we-found-non-serializable-values-in-the-navigation-state for more details." + "Non-serializable values were found in the navigation state, which can break usage such as persisting and restoring state. This might happen if you passed non-serializable values such as function, class instances etc. in params. If you need to use components with callbacks in your options, you can use 'navigation.setOptions' instead. See https://reactnavigation.org/docs/troubleshooting#i-get-the-warning-non-serializable-values-were-found-in-the-navigation-state for more details." ); } } diff --git a/packages/core/src/EnsureSingleNavigator.tsx b/packages/core/src/EnsureSingleNavigator.tsx index 3a2a78a1..ce5ecdfe 100644 --- a/packages/core/src/EnsureSingleNavigator.tsx +++ b/packages/core/src/EnsureSingleNavigator.tsx @@ -4,7 +4,7 @@ type Props = { children: React.ReactNode; }; -const MULTIPLE_NAVIGATOR_ERROR = `Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators.html for a guide on nesting.`; +const MULTIPLE_NAVIGATOR_ERROR = `Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.`; export const SingleNavigatorContext = React.createContext< | { diff --git a/packages/core/src/createNavigatorFactory.tsx b/packages/core/src/createNavigatorFactory.tsx index 41e12030..54902e0f 100644 --- a/packages/core/src/createNavigatorFactory.tsx +++ b/packages/core/src/createNavigatorFactory.tsx @@ -25,7 +25,7 @@ export default function createNavigatorFactory< > { if (arguments[0] !== undefined) { throw new Error( - "Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API with React Navigation 5? See https://reactnavigation.org/docs/upgrading-from-4.x.html for migration guide." + "Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API with React Navigation 5? See https://reactnavigation.org/docs/upgrading-from-4.x for migration guide." ); } diff --git a/packages/core/src/useFocusEffect.tsx b/packages/core/src/useFocusEffect.tsx index 39fff862..6199f326 100644 --- a/packages/core/src/useFocusEffect.tsx +++ b/packages/core/src/useFocusEffect.tsx @@ -46,7 +46,7 @@ export default function useFocusEffect(effect: EffectCallback) { ' fetchData();\n' + ' }, [someId])\n' + '};\n\n' + - 'See usage guide: https://reactnavigation.org/docs/use-focus-effect.html'; + 'See usage guide: https://reactnavigation.org/docs/use-focus-effect'; } else { message += ` You returned: '${JSON.stringify(destroy)}'`; } diff --git a/packages/core/src/useNavigationHelpers.tsx b/packages/core/src/useNavigationHelpers.tsx index 0ca7dabb..02519850 100644 --- a/packages/core/src/useNavigationHelpers.tsx +++ b/packages/core/src/useNavigationHelpers.tsx @@ -54,9 +54,9 @@ export default function useNavigationHelpers< case 'REPLACE': case 'JUMP_TO': if (payload?.name) { - message += `\n\nDo you have a screen named '${payload.name}'?\n\nIf you're trying to navigate to a screen in a nested navigator, see https://reactnavigation.org/docs/nesting-navigators.html#navigating-to-a-screen-in-a-nested-navigator.`; + message += `\n\nDo you have a screen named '${payload.name}'?\n\nIf you're trying to navigate to a screen in a nested navigator, see https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator.`; } else { - message += `\n\nYou need to pass the name of the screen to navigate to.\n\nSee https://reactnavigation.org/docs/navigation-actions.html for usage.`; + message += `\n\nYou need to pass the name of the screen to navigate to.\n\nSee https://reactnavigation.org/docs/navigation-actions for usage.`; } break; diff --git a/packages/routers/src/CommonActions.tsx b/packages/routers/src/CommonActions.tsx index 91567228..2580c22c 100644 --- a/packages/routers/src/CommonActions.tsx +++ b/packages/routers/src/CommonActions.tsx @@ -45,7 +45,7 @@ export function navigate(...args: any): Action { if (!payload.hasOwnProperty('key') && !payload.hasOwnProperty('name')) { throw new Error( - 'You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions.html#navigate for usage.' + 'You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.' ); }