mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
FIX: disappearing navigation bar on back
This commit is contained in:
@ -573,7 +573,7 @@ export class Page extends PageBase {
|
||||
}
|
||||
|
||||
public _addViewToNativeVisualTree(view: View): boolean {
|
||||
// ActionBar is added to the native visual tree by default
|
||||
// ActionBar is handled by the UINavigationController
|
||||
if (view === this.actionBar) {
|
||||
return true;
|
||||
}
|
||||
@ -581,6 +581,15 @@ export class Page extends PageBase {
|
||||
return super._addViewToNativeVisualTree(view);
|
||||
}
|
||||
|
||||
public _removeViewFromNativeVisualTree(view: View): void {
|
||||
// ActionBar is handled by the UINavigationController
|
||||
if (view === this.actionBar) {
|
||||
return;
|
||||
}
|
||||
|
||||
super._removeViewFromNativeVisualTree(view);
|
||||
}
|
||||
|
||||
get [actionBarHiddenProperty.native](): boolean {
|
||||
return undefined;
|
||||
}
|
||||
|
Reference in New Issue
Block a user