Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 3d43ed1

Browse files
slorbersatya164
authored andcommitted
fix: update navigation prop invariant for v4 (#84)
Even if RN v4 use core v3, I find this would make this message less confusing for react-navigation v4 users
1 parent b20425b commit 3d43ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/navigators/createNavigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function createNavigator(NavigatorView, router, navigationConfig) {
2424
const { navigation, screenProps } = nextProps;
2525
invariant(
2626
navigation != null,
27-
'The navigation prop is missing for this navigator. In react-navigation 3 you must set up your app container directly. More info: https://reactnavigation.org/docs/en/app-containers.html'
27+
'The navigation prop is missing for this navigator. In react-navigation v3 and v4 you must set up your app container directly. More info: https://reactnavigation.org/docs/en/app-containers.html'
2828
);
2929
const { state } = navigation;
3030
const { routes } = state;

0 commit comments

Comments
 (0)