Search code examples
nativescriptnativescript-angular

NativeScript ActionBar keeps re-appearing on navigation


I have a page with a hidden ActionBar (see below) which works fine normally. However when I navigate to another page and then use back() to get back, the ActionBar is now fully visible.

(Note: I require the ActionBar to be on the page so I can change the status bar colour)

This is for the current version of NativeScript Angular.

<ActionBar visibility="collapsed"></ActionBar>
<GridLayout rows="*, auto" columns="*" *ngIf="pageLoaded">
...
</GridLayout>

Solution

  • I was able to just remove the ActionBar and find a different way to change the text colour on the StatusBar, that doesn't require the ActionBar on the page.