react-native-unistyles 2.8.0-beta.4 → 2.8.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,7 +164,13 @@ class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
164
164
|
|
165
165
|
try {
|
166
166
|
activity.runOnUiThread {
|
167
|
-
|
167
|
+
val nextColor = when {
|
168
|
+
color == "" -> platform.defaultNavigationBarColor!!
|
169
|
+
color == "transparent" -> Color.TRANSPARENT
|
170
|
+
else -> Color.parseColor(color)
|
171
|
+
}
|
172
|
+
|
173
|
+
activity.window.navigationBarColor = nextColor
|
168
174
|
}
|
169
175
|
} catch (_: Exception) {
|
170
176
|
Log.d("Unistyles", "Failed to set navigation bar color: $color")
|