Android – by default, how to set ionic to be rendered in IOS style?

Now, ion applications default to Android style rendering. I don't want to use it every time? Ionicplatform = IOS param as the default option

I looked up the prompts in config.xml and the configuration settings in app.module.ts, for example:

IonicModule.forRoot(
      MyApp, 
      {
        swipeBackEnabled: true,
        platforms: {
          ios: {
            swipeBackEnabled: true,
            statusbarPadding: false
          }
        }
      }
    ),

And can't find an elegant way... Any idea?

resolvent:

You just need to do this:

app.module.ts

imports: [
IonicModule.forRoot(MyApp,{
    mode: 'ios'
})
],

Note: from @ sebaferreras

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>