Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Its possible create new route inside a component? #2832

Closed
munduu opened this issue Jan 25, 2018 · 1 comment
Closed

Its possible create new route inside a component? #2832

munduu opened this issue Jan 25, 2018 · 1 comment

Comments

@munduu
Copy link

munduu commented Jan 25, 2018

class App extends Component {
render() {
return (

      <Router  >
      
        <Stack key="root" >


            <Scene key="Client_app" component={Client_app}  title="Selecionar uma opção" hideNavBar  />
        
              <Scene key="Init_Wherego" component={Init_Wherego}  title="Init_Wherego"  hideNavBar />
              <Scene key="getLocation" component={getLocation}  title="Selecionar um Endereço"   />
              <Scene key="Login_options" component={Login_options}  title="Login_options"  hideNavBar />                    
              <Scene key="Splash_Screen" component={Splash_Screen}  title="Splash_Screen" hideNavBar /> 

        </Stack>
      </Router> 

       
  </View>
  );

}
}

_________________________________ and inside a Client_app

class Client_app extends Component {
render() {
return (

title

<TouchableOpacity -> tab1
<TouchableOpacity -> tab2
<TouchableOpacity -> tab3

      <Router  > 
        <Stack key="root" >


            <Scene key="tab1" 
            <Scene key="tab2" 
            <Scene key="tab3" 
        

        </Stack>
      </Router> 

       
  </View>

I need create tabs with route inside the route parent

@Blapi
Copy link
Collaborator

Blapi commented Jan 26, 2018

This is not how the library works. You should just add these other Scenes in your first Router and adapt your logic.

@Blapi Blapi closed this as completed Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants