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

Header not not displayed #2117

Closed
impuulse opened this issue Jul 26, 2017 · 6 comments
Closed

Header not not displayed #2117

impuulse opened this issue Jul 26, 2017 · 6 comments

Comments

@impuulse
Copy link

impuulse commented Jul 26, 2017

Hello, if i set initial here:

<Router>
      <Scene key="loginForm" component={LoginForm} hideNavBar={true}/>
      <Scene key="selectScene" component={SelectScene} hideNavBar={true}/>
      <Scene key="pastingList" component={PastingList} title="Расписание" titleStyle={{color: '#fff'}} navigationBarStyle={{backgroundColor: '#150529'}} initial/>
</Router>

Header is ok, http://joxi.ru/GrqvqEziN4Eaam , but when initial not set and go to pastingList via
<TouchableOpacity onPress={() => Actions.pastingList()}> it's white screen
http://joxi.ru/823zwJbc69bWYm
Can u help me?

@aksonov
Copy link
Owner

aksonov commented Jul 26, 2017

What version? v4 is only supported now and it requires to have one, root container Scene as child for Router.

@impuulse
Copy link
Author

Yes last version, like this?

<Router>
      <Scene key="root">
        <Scene key="loginForm" component={LoginForm} hideNavBar={true}/>
        <Scene key="selectScene" component={SelectScene} hideNavBar={true}/>
        <Scene key="pastingList" component={PastingList} title="Расписание" titleStyle={{color: '#fff'}} navigationBarStyle={{backgroundColor: '#150529'}}/>
      </Scene>
    </Router>

also not work :(

@aksonov
Copy link
Owner

aksonov commented Jul 26, 2017

Please record animated gif. You may check also Example project that has hidden nav bar.

@impuulse
Copy link
Author

@aksonov
Copy link
Owner

aksonov commented Jul 26, 2017

I see, but it is difficult to understand the reason. Do you see any white screen on Example project? Please fork & modify Example accordingly so I could look at source code.

@aksonov
Copy link
Owner

aksonov commented Jul 30, 2017

Closed due inactivity. Btw, try to set headerMode='screen' when you are moving from hidden navbar to shown navbar to avoid any flickering (default iOS header transition)

@aksonov aksonov closed this as completed Jul 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants