React-native-navigation: [V3] largeTitle breaks title transitions and render title twice

Created on 24 Sep 2019  路  7Comments  路  Source: wix/react-native-navigation

Issue Description

If largeTitle is enabled on version 3.2.0 then:

  1. Title is rendered twice
  2. Title on next screen in stack is positioned wrong if it's not largeTitle
  3. When going back to screen with largeTitle second(not right rendered) title is repositioned unexpectedly

On version 2.21.0(before update to latest v3 release) everything was OK

Steps to Reproduce / Code Snippets / Screenshots

static options() {
  return {
    topBar: {
      title: {
        text: 'Test',
      },
      largeTitle: {
        visible: true,
      },
    }
}

Now:
Simulator Screen Shot - iPhone X 11 4 - 2019-09-25 at 00 50 39
Simulator Screen Shot - iPhone X 11 4 - 2019-09-25 at 00 50 45
Simulator Screen Shot - iPhone X 11 4 - 2019-09-25 at 00 50 47

Expected:
Simulator Screen Shot - iPhone X 11 4 - 2019-09-25 at 00 42 20
Simulator Screen Shot - iPhone X 11 4 - 2019-09-25 at 00 46 18


Environment

  • React Native Navigation version: 2.21.0 -> 3.2.0
  • React Native version: 0.59.10
  • Platform(s) (iOS, Android, or both?): iOS 12.2
  • Device info (Simulator/Device? OS version? Debug/Release?): All
iOS acceptebug

Most helpful comment

Same problem here!

All 7 comments

Same problem here!

I'm seeing the same problem too.

Also seeing the title not being set unless I call mergeOptions in the constructor.

 Navigation.mergeOptions(this.props.componentId, {
       topBar: {
         title: { text: 'Header Title' },
         largeTitle: { visible: true, color: 'white' },
       },
     });

Environment

  • React Native Navigation version: 2.21.0 -> 3.2.0
  • React Native version: 0.60.5
  • Platform(s) (iOS, Android, or both?): iOS 12.4
  • Device info (Simulator/Device? OS version? Debug/Release?): All

+1

Any updates on this?

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.

+1

Was this page helpful?
0 / 5 - 0 ratings