Search code examples
cordovaonsen-ui

Onsen-ui: How to force Android look and feel on ios device?


Using Onsen-ui v2, is it possible to keep the same look and feel on both Android and ios ? I would like my app to have the same UI look and feel on both platforms. Can I for example, have the Android look and feel on ios ? How ?


Solution

  • You can call ons.disableAutoStyling() right after including onsenui.js. This way, the auto styling will not add Material Design effects to the components. Otherwise, you can also set the desired platform with ons.platform.select('ios') or ons.platform.select('android'), but the first method is preferred.