React-native-navigation: TopBar flashes briefly when showing a screen with TopBar hidden

Created on 10 Apr 2018  ·  4Comments  ·  Source: wix/react-native-navigation

Noticeable in WelcomeScreen.js

Android v2

Most helpful comment

    Navigation.setDefaultOptions({
      topBar: {
        visible: false,
        drawBehind: true,
        animate: false
      }
    });

Solve this problem for me

All 4 comments

@guyca I have the same problem here on IOS. Could you find a solution for this?

Hey @DavitVosk, I'll look into this issue this week, we have a few other tasks prioritised for iOS for this week.. I'll see what I can do.

I found that playing with the property topBar animate in the options getter and setDefaultOptions was able to prevent the weird animation flash and seems to be more stable, if it helps anyone

    Navigation.setDefaultOptions({
      topBar: {
        visible: false,
        drawBehind: true,
        animate: false
      }
    });

Solve this problem for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

birkir picture birkir  ·  3Comments

kiroukou picture kiroukou  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments

swingywc picture swingywc  ·  3Comments

nbolender picture nbolender  ·  3Comments