how can i create object of

IonicConfig in app.module.ts to pass it to .forRoot() funciton

how can i create IonicConfig object in ionic 4 to set iOS theme for all platform. i need this ionic 4 .i already tired these

Blockquote IonicModule.forRoot(MyApp, { mode: ‘md’ })

Blockquote @App({
templateUrl: ‘build/app.html’,
config: {
mode: ‘md’

but none worked cause .

expecting an object of IonicConfig

In Ionic 4, use

IonicModule.forRoot( {mode: 'md', })

I just wrote about this very feature at


I added this but when i run app in android it doesn’t take iOS layout. Any suggestion if i missing something.