React-native-navigation: [v2] TopBar noBorder not working properly in iOS

Created on 25 Oct 2018  路  12Comments  路  Source: wix/react-native-navigation

Issue Description

TopBar "noBorder" option does not work properly in an app with bottomtabs when mixed with translucent and blur.
TopBar border appear and disappear randomly when switching tabs in iOS.

Steps to Reproduce / Code Snippets / Screenshots

TopBar border appear and disappear randomly when switching tabs in iOS.

Navigation.setDefaultOptions({
  topBar: {
    noBorder: true,
    background: {
        color: "red",
        translucent: false,
        blur: true,
    }
  },
});
Navigation.setRoot({
  root: {
    bottomTabs: {
      children: [
        {
          stack: {
            children: [
              {
                component: {
                  id: "test1",
                  name: "test1",
                },
              },
            ],
          },
        },
        {
          stack: {
            children: [
              {
                component: {
                  id: "test2",
                  name: "test2",
                },
              },
            ],
          },
        },
      ],
    },
  },
});

Environment

  • React Native Navigation version: 2.0.2618
  • React Native version: 0.57.3
  • Platform(s) (iOS, Android, or both?): iOS only
  • Device info (Simulator/Device? OS version? Debug/Release?): simulator
iOS more info needed 馃彋 stale

Most helpful comment

I think it should be reopen.

All 12 comments

Hey there, what exactly doesn't work properly?

Hey there, what exactly doesn't work properly?

"TopBar border appear and disappear randomly when switching tabs in iOS."

Hey there, what exactly doesn't work properly?

Sometimes it doesn't work when mixing with properties like top bar background color, blur and translucent.

Hey there, what exactly doesn't work properly?

Sometimes it doesn't work when mixing with properties like top bar background color, blur and translucent.

You're right, it worked after removing translucent, and blur. Revised the issue to reflect that since it's still a problem

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 Detox and report back. Thank you for your contributions.

The issue has been closed for inactivity.

I think it should be reopen.

This is still a problem

this problem exists

RN 0.59.10
RNN 2.26.5

on iOS
noBorder: true works on mobile but no effects on iPad ( Simulator, iOS 12+ ), tried all the options I can think of, with / without background, using default options / set per screen / set per push.

Is that the team already working on V3? I still found many problems on V2...

RN 0.59.10
RNN 2.26.5

on iOS
noBorder: true works on mobile but no effects on iPad ( Simulator, iOS 12+ ), tried all the options I can think of, with / without background, using default options / set per screen / set per push.

Is that the team already working on V3? I still found many problems on V2...

In case you're experiencing the same issue,
the border is now hidden after I changed barStyle: 'black' under the topBar style object.

I can confirm that there is currently no way to remove the top bar border from iPad.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swingywc picture swingywc  路  3Comments

nbolender picture nbolender  路  3Comments

henrikra picture henrikra  路  3Comments

EliSadaka picture EliSadaka  路  3Comments

viper4595 picture viper4595  路  3Comments