import { Component } from '@angular/core' ; import { Platform } from 'ionic-angular' ; import { StatusBar } from '@ionic-native/status-bar' ; import { SplashScreen } from '@ionic-native/splash-screen' ; import { TabsPage } from '../pages/tabs/tabs' ; @ Component ( { templateUrl : 'app.html' } ) export class MyApp { rootPage = TabsPage ; constructor ( private platform , private statusBar , private splashScreen ) { } async ngOnInit ( ) { await this . platform . ready ( ) ; this . statusBar . styleDefault ( ) ; this . splashScreen . hide ( ) ; } }