react-native-unistyles 2.8.0-beta.4 → 2.8.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -164,7 +164,13 @@ class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
164
164
 
165
165
  try {
166
166
  activity.runOnUiThread {
167
- activity.window.navigationBarColor = if (color == "") platform.defaultNavigationBarColor!! else Color.parseColor(color)
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")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "2.8.0-beta.4",
3
+ "version": "2.8.0-beta.5",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "jest",