ex-navigation
ex-navigation copied to clipboard
Treating DrawerNavigation like any other route results in error
The comments in the DrawerNavigation example say to treat it like any other route. My setup uses StackNavigation to move between my walkthrough, login and sign up screens. After login or signup, I should be able to call something like the following:
this.props.navigator.replace(Router.getRoute('drawerNav'));
where drawerNav
is a route pointing to a page which is using the example DrawerNavigation code. The intention being that I don't want the DrawerNav experience until someone has signed in. However when I do that I receive an error saying:
Route definition must either be a function that returns a ReactElement, or an object with a render function.
Clearly the example DrawerNavigation code has a render function. Any ideas what might be happening?