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

Actions.pop () skips the scene #2289

Closed
rogoja opened this issue Aug 25, 2017 · 0 comments
Closed

Actions.pop () skips the scene #2289

rogoja opened this issue Aug 25, 2017 · 0 comments

Comments

@rogoja
Copy link

rogoja commented Aug 25, 2017

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.19
  • react-native v0.46.4

Expected behaviour

main.js:

<Router navBar={navBar}>
    <Scene lazy key="Root">
        <Scene lazy showIcon={true} tabs hideNavBar key="TabBar">
            <Scene key="myFeedRouter" title="My feed" tabBarIcon={iconHome}><Scene duration={0}  key="myFeed" component={myFeed}/></Scene>
            <Scene key="hotNewsRouter" title="Hot news" tabBarIcon={iconPopular}><Scene duration={0} key="hotNews" component={hotNews}/></Scene>
        </Scene>


        <Scene backBtn={true} clone duration={0} key="discussion" component={discussion}/>
        <Scene backBtn={true} clone duration={0} key="profile" component={profile}/>
    </Scene>
</Router>

navBar:

const navBar = (data) => {
    return (
         <TouchableOpacity onPress={() => {Actions.pop()}}>
                <Image style={{marginLeft: 8, width: 20, height: 20}} source={require('./img/back.png')}/>
            </TouchableOpacity>
    );
};

Actual behaviour

@rogoja rogoja closed this as completed Aug 25, 2017
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

1 participant