mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +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 {
|
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) {
|
if (view === this.actionBar) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -581,6 +581,15 @@ export class Page extends PageBase {
|
|||||||
return super._addViewToNativeVisualTree(view);
|
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 {
|
get [actionBarHiddenProperty.native](): boolean {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user