react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[Android] tabbar doesn't rerender after drawUnderStatusBar is set from true to false

Open vranjesluka opened this issue 8 years ago • 4 comments

Issue Description

Tabbar doesn't rerender after drawUnderStatusBar is set from true to false. The tabbar is lower by status bar height until you touch a screen and the tabbar rerenders.

Steps to Reproduce / Code Snippets / Screenshots

My navigator code for details:

    static navigatorStyle = {
        navBarButtonColor: '#fd8042',
        navBarNoBorder: true,
        drawUnderNavBar: true,
        statusBarTextColorScheme: Platform.OS === 'ios' ? 'dark' : "light",
        navBarTranslucent: Platform.OS === 'ios',
        navBarTransparent: true,
        navBarBackgroundColor: 'transparent',
        topBarElevationShadowEnabled: false,
        // iOS only
        // Android only
        drawUnderStatusBar: true,
        statusBarColor: '#00000033',
        navBarTopPadding: StatusBar.currentHeight
    };

screen shot 2018-03-05 at 13 06 04 2

screen shot 2018-03-05 at 13 06 11 2

screen shot 2018-03-05 at 13 06 15 2


Environment

  • React Native Navigation version: 1.1.398
  • React Native version: 0.54
  • Platform: Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator, Samsung Galaxy S8, API 25, debug

vranjesluka avatar Mar 05 '18 12:03 vranjesluka

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Jun 02 '18 05:06 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jun 09 '18 05:06 stale[bot]

This also happens in v2.

starzle avatar Aug 31 '18 02:08 starzle

I've opened this issue before #3241 and the fact is navBarTopPadding not a workaround @guyca

datvp09 avatar Nov 28 '18 04:11 datvp09