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

[V2][iOS] BottomTabs drawBehind weird behaviour

Open ItsNoHax opened this issue 7 years ago • 6 comments

Issue Description

I have a bottomTabs layout where my Email tab (see screenshot below) contains a sideMenu layout. I'm seeing weird behaviour with drawBehind when I hide the bottomTabs.

It seems the center component of the SideMenu layout does not re-render till the app is minimized and opened again.

Code used to hide bottomTabs:

  componentDidAppear() {
    Navigation.mergeOptions(this.props.componentId, {
      bottomTabs: {
        visible: false,
        animate: true,
        drawBehind: true,
      },
    });
  }

  componentDidDisappear() {
    Navigation.mergeOptions(this.props.componentId, {
      bottomTabs: {
        visible: true,
        animate: true,
        drawBehind: false,
      },
    });
  }

Steps to Reproduce / Code Snippets / Screenshots

2019-01-10 15 43 46


Environment

  • React Native Navigation version: 2.5.0
  • React Native version: 56.0
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): All

ItsNoHax avatar Jan 10 '19 14:01 ItsNoHax

also bottomTabs drawBehind true does not work when set by mergeOptions

narodejesus avatar Jan 14 '19 02:01 narodejesus

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.

stale[bot] avatar Feb 13 '19 03:02 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 20 '19 03:02 stale[bot]

I am trying to remove bottom tabs using mergeOptions and it is not working, there is a white bar where the tabs were located. @narodejesus did you ever find a solution for this?

benpeke avatar Jan 17 '20 06:01 benpeke

@benpeke Which version are you using?

guyca avatar Jan 17 '20 07:01 guyca

@benpeke Which version are you using?

Using RN59 and RNN 2.27.7. I just noticed this issue when I updated from RN56.

benpeke avatar Jan 17 '20 18:01 benpeke