When you've set a subtitle, there is no way to remove the subtitle, and have the title go back to full size.
A full size title:
A title with a sub title:
A title that had a sub title, and it's now been removed (note the size of the title, and the space between title and edge of bar):
I believe you can reproduce this by doing the following:
Navigation.mergeOptions(this.props.componentId, {
topBar: {
title: {
text: 'My Title',
},
subtitle: {
text: 'My Subtitle',
},
}
});
Navigation.mergeOptions(this.props.componentId, {
topBar: {
title: {
text: 'My Title',
},
subtitle: {
text: '',
},
}
});
I have tried setting the whole subtitle object to undefined
(it just remains on the screen regardless), null
(it breaks and complains that null is not a valid option) and also setting the subtitle.text
option to undefined
and null
with the same results (stays visible, or crashes the app)
@guyca I noticed the same thing that there is no way to remove subtitle once it is added. We have faced same issues that we would like to remove subtitle at specific point. Can you guys check this out?
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.
This is definitely not stale. It just hasn't been looked at by anyone.
Just dropping by to say that the bug is still there.
Fixed by #5883 (auto close in PR didn't work)
Most helpful comment
Just dropping by to say that the bug is still there.