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

[V3] [Android] Top bar title is not centering, parent view now overlaps right buttons

Open whiffsalot opened this issue 7 years ago • 3 comments

Issue Description

We use a custom top bar title component. After updating to V3, passing 'center' in the styling no longer works, and the text aligns to the left. Additionally, the right buttons seem to be getting overlapped with a transparent view, which makes them unable to be tapped.

Steps to Reproduce / Code Snippets / Screenshots

  topBar: {
    elevation: 0,
    buttonColor: 'black',
    backButton: {
      ...{ icon: Platform.OS === 'ios' ? undefined : Icons.backArrow },
      color: 'black',
    },
    title: {
      component: {
        name: types.navBarTitle,
        passProps: {
          title,
        },
        alignment: 'center',
      },
    },
  },

Title Component

  render() {
    const { title } = this.props;
    return (
      <Text allowFontScaling={false}>
        {title ? title.toUpperCase() : ''}
      </Text>
    );
Screen Shot 2019-11-04 at 12 54 03 AM

Environment

  • React Native Navigation version: 3.2.0
  • React Native version: 6.1.3
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator. Debug.

whiffsalot avatar Nov 04 '19 08:11 whiffsalot

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 Dec 04 '19 09:12 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Dec 11 '19 12:12 stale[bot]

This is still an issue for me on RNN 6.7.3.

bdrobinson avatar Jun 18 '20 15:06 bdrobinson