mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix(ios): guard accessing actionbar (#10033)
This commit is contained in:
@ -93,11 +93,7 @@ export class ActionBar extends ActionBarBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const viewController = <UIViewController>page.ios;
|
const viewController = <UIViewController>page.ios;
|
||||||
if (viewController.navigationController !== null) {
|
return viewController?.navigationController?.navigationBar;
|
||||||
return viewController.navigationController.navigationBar;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[accessibilityValueProperty.setNative](value: string): void {
|
[accessibilityValueProperty.setNative](value: string): void {
|
||||||
|
Reference in New Issue
Block a user