fix: change error when using React Navigation 4 API

This commit is contained in:
Satyajit Sahoo
2021-08-25 11:16:12 +02:00
parent 5fb5f41eb6
commit a802c9df95

View File

@@ -27,7 +27,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 for migration guide."
"Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API? See https://reactnavigation.org/docs/hello-react-navigation for the latest API and guides."
);
}