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

Weird stack behavior. Scene disappears right after pushing it, but then reappears after next push. #3064

Closed
RobinJayaswal opened this issue Jun 3, 2018 · 1 comment

Comments

@RobinJayaswal
Copy link

RobinJayaswal commented Jun 3, 2018

Version

Tell us which versions you are using:

"^4.0.0-beta.31"

giphy

Code:

            <Scene
              key="referral"
              type="replace"
              component={ReferralPage}
              title="Free Points"
              titleStyle={styles.title}
              renderLeftButton={() => <View />}
              onLeft={() => {}}
              renderRightButton={customRightCloseButton}
              rightButtonStyle={styles.navIconButton}
              navigationBarStyle={styles.mainNavigationBar}
              back={false}
            />
const customRightCloseButton = ({ rightCallback }) => (
  <TouchableOpacity onPress={Actions.pop} style={styles.closeButton}>
    <IonIcon name="ios-close" size={30} color="white" />
  </TouchableOpacity>
)

Expected behaviour

Screen opens first time and stays open until close pressed

Actual behaviour

Screen opens, closes, and then when I reopen, both come up and the stack is messed up so Actions.pop() does nothing.

@aksonov
Copy link
Owner

aksonov commented Jun 6, 2018

Probably navigation hierarchy is wrong. Please refer to Example project - you need to use LightboxNavigator for popups.

@aksonov aksonov closed this as completed Jun 6, 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