-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(ios-action-bar): NavigationButton text change on first navigation #5458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -86,6 +88,11 @@ export class Frame extends FrameBase { | |||
backstackEntry[NAV_DEPTH] = navDepth; | |||
viewController[ENTRY] = backstackEntry; | |||
|
|||
if (majorVersion > 10) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pls add a comment in the code explaining why this is necessary, as the fix is not obvious :)
59e4651
to
14ce89f
Compare
@ADjenkov Won't this remove all back buttons? |
@@ -86,6 +88,13 @@ export class Frame extends FrameBase { | |||
backstackEntry[NAV_DEPTH] = navDepth; | |||
viewController[ENTRY] = backstackEntry; | |||
|
|||
if (majorVersion > 10) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe extend condition to if (!animated && majorVersion > 10)
?
14ce89f
to
ee60214
Compare
test |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem: NavigationButton (a.k.a back button) won't change its title on first navigation when there
is no transition animation - iOS 11+ only.
The solution: Set empty back button title on the parent view controller when navigating
For reference: stackoverflow1 and stackoverflow2
Fix #5169