@anishg/cordova-plugin-systemthemedetect
v1.0.1
Published
Cordova plugin to get system theme (android and ios)
Downloads
4
Maintainers
Readme
What is This?
Cordova plugin to get system theme (android and ios)
For Installation
npm i @anishg/cordova-plugin-systemthemedetect
cordova plugin add cordova-plugin-systemthemedetect
declear cordova like this
declare var cordova:any
For Implementation
cordova.plugins.getSystemTheme((resp:any)=>{
console.log(resp) // theme (dark or light)
},(err:any)=>{
console.log(err)
})
Platform Support
- Android
- IOS