React Navigation , Can't get it to work

Here is my sketch and that is how I am trying it, but it doesn’t seems to work. NavBar never show up. https://sketch.expo.io/H11msJiox

The code is very much copied from https://github.com/react-community/react-navigation/issues/713#issuecomment-287156088 which seems like it should work but not sure what I am missing.

Thanks

I’m not very familiar with react-navigation, but it looks like the navigator maybe needs to be the root component? This seems to work fine https://sketch.expo.io/rJrr6kosx

1 Like

Don’t wrap the Navigator in a view or anything else, that should be serving as the root of your app, not a View wrapped around it…

Like this: https://snack.expo.io/HJsw7yDfZ

You could also do it like this : https://snack.expo.io/Sk1omyvzb