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

How to reset <Stack> from Tab on leave #2950

Closed
MagicFlag0x90 opened this issue Mar 20, 2018 · 3 comments
Closed

How to reset <Stack> from Tab on leave #2950

MagicFlag0x90 opened this issue Mar 20, 2018 · 3 comments

Comments

@MagicFlag0x90
Copy link

MagicFlag0x90 commented Mar 20, 2018

Version

  • react-native-router-flux 4.0.0-beta.28
  • react-native v0.53.0

Code

<Router {...DefaultProps.RouterProps} >

     <Scene key="tabbar" tabs={true} showLabel={true}
            hideNavBar={true}
            tabBarPosition="bottom"
            {...DefaultProps.tabProps}
     >

         <Stack   key="one">
            <Scene key="one" component={oneComponent} title="one"
               icon={() => <Icon name="basket"  {...DefaultProps.icons} />}/>
         </Stack>

         <Stack   key="two" title="two">
           <Scene key="two" component={twoComponent} title="two" icon={() => <Icon name="list-box"  {...DefaultProps.icons} />}/>
           <Scene  back key="two_1" component={twoSubComponent1} icon={() => <Icon name="list-box"  {...DefaultProps.icons} />}/>
           <Scene  back key="two_2" component={twoSubComponent2} icon={() => <Icon name="list-box"  {...DefaultProps.icons} />}/>
         </Stack>

     </Scene>
    </Router>
@aaron25mt
Copy link

See here #717

@GuidoSchweizer
Copy link

#717 seems to be unresolved. Non of the workarounds described there worked for me

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please check 4.0.0-beta.41 and Example with backToInitial prop

@aksonov aksonov closed this as completed Aug 8, 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

4 participants