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

[v2][iOS] TopBar drawBehind not working after update to react-native 0.57.3

Open Fabian-Fynn opened this issue 8 years ago • 5 comments

Issue Description

The parameter drawBehind for the TopBar doesn't have any effect on iOS after updating react native to 0.57.3.

Expected Behaviour: image

Actual Behaviour: image

Steps to Reproduce / Code Snippets / Screenshots

Our TopBar options are set with: Navigation.setDefaultOptions(globalStyles.navigation); which contains these options:

topBar: {
    drawBehind: true,
    elevation: 0,
    background: {
      color: 'transparent',
      translucent: true,
      blur: false,
    },
    width: '100%',
    backButton: {
      color: 'white',
      showTitle: false,
    },
  },

Current Workaround

In file lib/ios/RNNViewControllerPresenter.m locate applyOptionsOnInit-function change:

[viewController rnn_setDrawBehindTopBar:[options.topBar.drawBehind getWithDefaultValue:NO]];

to:

[viewController rnn_setDrawBehindTopBar:[options.topBar.drawBehind getWithDefaultValue:YES]];

Environment

  • React Native Navigation version: 2.0.2618
  • React Native version: 0.57.3
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Tested on:
    • Simulator: iPhone 6, 6s, X (iOS 9.3 + 12 each)
    • iPhone 5s (Device)(iOS 12)
    • DEBUG and RELEASE

Fabian-Fynn avatar Oct 25 '18 10:10 Fabian-Fynn

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 Nov 27 '18 08:11 stale[bot]

This is still an issue 😭

Fabian-Fynn avatar Nov 29 '18 15:11 Fabian-Fynn

For some reason this problem disappeared. Without updating or reinstalling react-native or react-native-navigation.

Fabian-Fynn avatar Dec 05 '18 13:12 Fabian-Fynn

were you able to figure out how it disappeared?

gethabit avatar Jan 24 '19 05:01 gethabit

No idea unfortunately

Fabian-Fynn avatar Jan 24 '19 13:01 Fabian-Fynn