React-native-router-flux: The nav bar and the tab bar block my scene

Created on 18 Jun 2016  路  7Comments  路  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

  • react-native-router-flux v3.30.0
  • react-native v0.25.1

Expected behaviour

My scene shouldn't be blocked by the navbar and the tabbar when no sceneStyle is specified.

Actual behaviour

My scene is blocked so I have to specify the sceneStyle.

Steps to reproduce

  1. Just use the example and change the style a little
bug

Most helpful comment

if (computedProps.isActive) {
    style.marginTop = computedProps.hideNavBar ? 0 : 64;
    style.marginBottom = computedProps.hideTabBar ? 0 : 50;
  }

All 7 comments

A cheap hack I use is to pad the view by Navigator.NavigationBar.Styles.General.TotalNavHeight.

For each scene, add the above line to 'paddingTop:'

There is a small snippet in the example app that handles this.

if (computedProps.isActive) {
    style.marginTop = computedProps.hideNavBar ? 0 : 64;
    style.marginBottom = computedProps.hideTabBar ? 0 : 50;
  }

Hi @mickeyinfoshan please be more specific. Ideally share a screenshot. Overall please explain what do you mean by block?

I confirm this issue, I just ran on it.

I'll give more details soon.

I don't know if it what's @mickeyinfoshan means.

If you remove hideNavBar from the Example (here), you won't be able to swipe back with Android because the scene will be blocked in transition.

Any ideas?

cc @aksonov @rturk @sarovin

@charpeni I ran into the problem @mickeyinfoshan is having, and it's different from what you're describing here:

If you remove hideNavBar from the Example (here), you won't be able to swipe back with Android because the scene will be blocked in transition.

The problem I run into is that the navbar seems to be overlaid on the scene so if I display something at the top of the view it will potentially be covered by the navbar.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VictorK1902 picture VictorK1902  路  3Comments

sreejithr picture sreejithr  路  3Comments

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

moaxaca picture moaxaca  路  3Comments

llgoer picture llgoer  路  3Comments