fix: add android platform check for status bar color sync

This commit is contained in:
Aman Harwara
2022-10-06 16:22:25 +05:30
committed by GitHub
parent ed1d583476
commit 1602d8157f

View File

@@ -460,7 +460,7 @@ export class MobileDevice implements MobileDeviceInterface {
}
reloadStatusBarStyle(animated = true) {
if (this.statusBarBgColor) {
if (this.statusBarBgColor && Platform.OS === 'android') {
StatusBar.setBackgroundColor(this.statusBarBgColor, animated)
}
StatusBar.setBarStyle(this.isDarkMode ? 'light-content' : 'dark-content', animated)