Closed robtg4 closed 8 years ago
Hi there @robtg4 Take a look at the structure of the starter app, where everything routes/pushes/replaces through the same navigator, and this navigators sits on the same level as the SideMenu. Looking at your code snippet, you have the SideMenu inside the navigator - is that correct? If so, it's a different structure to the starter app.
Following the structure of the starter app should guide you to be able to have a single SideMenu through the App.
I think the problem that I'm having is that I can't seem to be able to create routes before the sidemenu. Like a login ans signup page that goes to the side menu frame after parse authentication. The reason that I believe this happens is because given the way the sidemenu app is set up, the navigator routes become nested if you put screens before the side menu app screens. What are your thoughts?
Everytime I route to the side menu screens by adding a sign in screen, it gives me an invariant navigator error.
Hi @robtg4
Yeah ok - the starter app does assume you've got a single navigator. Unfortunately I'm not familiar enough with the other frameworks you're using, to give guidance on combining them with this one.
I did however do a similar thing with the starter app framework recently, where the initial route/splash screen simply covered (over the top of) the navbar, and the user could click login/signup. From there it operated as normal, where the signup or login screen was pushed to the stack, and clicking back would go back to the splash screen. I also had a 'skip login' button which just replaced the screen to another.
Would it be possible to put that as a repo up - minus any sensitive info? I just can't seem to get the build with screens before the side menu lol, it's halted my whole build I think your repo is the only complete side menu out there On Dec 27, 2015 3:21 AM, "Matt Mcnamee" notifications@github.com wrote:
Hi @robtg4 https://github.com/robtg4
Yeah ok - the starter app does assume you've got a single navigator. Unfortunately I'm not familiar enough with the other frameworks you're using, to give guidance on combining them with this one.
I did however do a similar thing with the starter app framework recently, where the initial route/splash screen simply covered (over the top of) the navbar, and the user could click login/signup. From there it operated as normal, where the signup or login screen was pushed to the stack, and clicking back would go back to the splash screen. I also had a 'skip login' button which just replaced the screen to another.
— Reply to this email directly or view it on GitHub https://github.com/mcnamee/react-native-starter-app/issues/2#issuecomment-167392615 .
Sorry it's not really possible for this client.
It's really just a matter of styling a
I seem to be having some difficulty with requiring only one side menu per app instead of having the same side menu implemented on every page that the menu can navigate to - much like keeping one tabbar per app where you can navigate to the different tab pages
right now, my home.js component - the first page to have the side menu, looks like this (i took the toggle implementation you used to make the menu work with MenuButton):
The problem is that i can navigate to the other pages because the Menu component referenced in the SideMenu does not have Navigator as a part of it - so pushing to the next page is meaningless to it. Is there a better way to implement this? I can give you access to the repo if needed.