Skip to content

RNN 8.4.1 Navigation.mergeOption stops working after a few times topBar->title->componentΒ #8135

@aspidvip

Description

@aspidvip

What happened?

RNN 8.4.1 Navigation.mergeOption stops working after a few times it stops working, after the title is white and the component is not shown. Only visible on iOS 26

` Navigation.mergeOptions(this.props.componentId, {
topBar: {
drawBehind: true,

    title: {
      component: {
        id: LOCATION_BUTTON,
        name: LOCATION_BUTTON,
        alignment:
          (Platform.OS === 'ios' &&
            Number(Platform.constants.osVersion).toFixed(0) > 18) ||
          Platform.OS === 'android'
            ? 'center'
            : 'fill',
        passProps: {
          location: text,
          results: defaultTitle,
          onPress: this.debounceHandleSearchLocationPress,
        },
      },
    },
  },
  bottomTabs: {
    drawBehind: Platform.select({ ios: true, android: false }),
  },
});`

What was the expected behaviour?

Should work

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

To reproduce this issue, you need to push to the next screen and run the code

`
Navigation.mergeOptions(this.props.componentId, {
topBar: {
drawBehind: true,

    title: {
      component: {
        id: LOCATION_BUTTON,
        name: LOCATION_BUTTON,
        alignment:
          (Platform.OS === 'ios' &&
            Number(Platform.constants.osVersion).toFixed(0) > 18) ||
          Platform.OS === 'android'
            ? 'center'
            : 'fill',

        passProps: {
          location: text,
          results: defaultTitle,
          onPress: this.debounceHandleSearchLocationPress,
        },
      },
    },
  },
  bottomTabs: {
    drawBehind: Platform.select({ ios: true, android: false }),
  },
});
2025-10-30.14.05.44.mov

`

In what environment did this happen?

React Native Navigation version: 8.4.1
React Native version: 0.77.3
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: v23.7.0
Device model: iOS
iOS version: 26

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions