startPageActionBarHidden: true not hiding actionbar on some android devices


#1

In an angular nativescript app I’m trying to hide the main page actionbar on all devices and use [startPageActionBarHidden: true](https://docs.nativescript.org/angular/ui/action-bar#defining-the-actionbar) when bootstrapping in my main.ts file:

import { platformNativeScriptDynamic } from 'nativescript-angular/platform';
import { AppModule } from './app.module';

platformNativeScriptDynamic({startPageActionBarHidden: true}).bootstrapModule(AppModule);

This works when running on my droid 2, but when I install the apk on a samsung galaxy s5 the action bar always shows up. Anyone else had issues with this? Is there something else I can try to hide it? The actionbar is not showing up on my ios devices but I think that is the default.


#2

You may try this one here

import {Page} from "ui/page"; 

@Component({
// ...
})
class MyComponent { 
 constructor(page: Page) { 
  page.actionBarHidden = true; 
 }
}