wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

Topbar custom background overlay the title #7697

Closed nhatth219 closed 1 year ago

nhatth219 commented 1 year ago

What happened?

Im using the custom background for tabbar background. Root configuration:

  Navigation.setDefaultOptions({
    sideMenu: {
      left: {
        visible: false,
      },
    },
    topBar: {
      background: {
        component: { name: RouterComponentNames.TOP_BAR_BACKGROUND },
      },
})

Background Component:

const TopBarBackgroundView: FC<TTopBarBackgroundProps> = () => {
  return (
    <LinearGradient
      colors={['#99A1D5', '#11CBCA', '#E554AE']}
      style={{ flex: 1 }}
      start={{ x: 0, y: 0 }}
      end={{ x: 1, y: 0 }}
    ></LinearGradient>
  )
}
TopBarBackground.name = RouterComponentNames.TOP_BAR_BACKGROUND

Issue:

Screen Shot 2023-04-07 at 16 22 06

What was the expected behaviour?

Title show in both android and ios

Was it tested on latest react-native-navigation?

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version: 7.32.1 React Native version: 0.71.6 Has Fabric (React Native's new rendering system) enabled: (yes/no) yes Node version: v16.14.0 Device model: Iphone 11 iOS version: Ios 15.5

thaycacac commented 1 year ago

I got the same problem :'(

stale[bot] commented 1 year ago

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] commented 1 year ago

The issue has been closed for inactivity.

tyson90 commented 1 year ago

+1

mykyta-rusyn commented 7 months ago

The same for me. RNN - 7.38.3, RN - 0.72.12