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

[Android] - Custom Navbar disappears

Open iamvimuserbtw opened this issue 8 years ago • 9 comments

Issue Description

I use a customview for my navbar on an application, and on Android only, sometimes the navbar is not correctly displayed. The elements are missing. On iOS everything works properly.

Steps to Reproduce / Code Snippets / Screenshots

This is a correct navbar capture d ecran 2018-04-05 a 11 40 06

And this is the navbar with the elements missing capture d ecran 2018-04-05 a 11 39 46

I use the static method to display the custom navbar :

static navigatorStyle = {
    navBarCustomView: SCREENS.NAVBAR.id
  };

I really don't understand why this does not work, does anyone has the same issue or know how to fix it ?

Environment

  • React Native Navigation version: 1.1.378
  • React Native version: 0.53.0
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Any Android devices on both Debug and Release

iamvimuserbtw avatar Apr 05 '18 10:04 iamvimuserbtw

Do you have the same behavior on a real device? Asking cause all screenshots are on a simulator.

karlmosenbacher avatar Apr 05 '18 19:04 karlmosenbacher

Hi @karlmosenbacher, Yes I do have the same behavior on a real device.

iamvimuserbtw avatar Apr 06 '18 07:04 iamvimuserbtw

I have the same issue. On android, custom navbar sometimes disappears, especially on tabbased app's last tab.

react-native: 0.51.0 react-native-navigation: 1.1.440

bilmiyore avatar Apr 18 '18 18:04 bilmiyore

have the same as @bilmiyore. Tabbased app, 3 tabs, on last tab, in 'release' mode, navBarCustomView disappears. In debug mode (react-native run-android) it's going to be visible after refreshing JS. I've tested on real device only. On iOS there's no problem like this :(.

Specification: "react": "16.3.1", "react-native": "0.55.3", "react-native-navigation": "1.1.446",

Android 5.1

pawel-n avatar May 16 '18 09:05 pawel-n

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 Aug 13 '18 21:08 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Aug 20 '18 21:08 stale[bot]

I have the same issue @PeteOyable

I'm on: "react": "16.3.1", "react-native": "0.54.2", "react-native-navigation": "1.1.412"

There's no problem on iOS, the problem is Android only : in the last tab of the tabbar, the custom view disappears

Is there any fix on this yet ?

rubeus90 avatar Aug 24 '18 14:08 rubeus90

The same problem here

ivan133 avatar Dec 18 '18 09:12 ivan133

https://github.com/wix/react-native-navigation/issues/2807

ivan133 avatar Dec 18 '18 09:12 ivan133