Skip to content

Commit c3679bb

Browse files
committed
Add patch for non-translucent status bar
1 parent 6a7183d commit c3679bb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js b/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js
2+
index 2ac3d1f..5a400bf 100644
3+
--- a/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js
4+
+++ b/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js
5+
@@ -479,8 +479,7 @@ class StatusBar extends React.Component<Props> {
6+
}
7+
// Activities are not translucent by default, so always set if true.
8+
if (
9+
- !oldProps ||
10+
- oldProps.translucent !== mergedProps.translucent ||
11+
+ (oldProps && oldProps.translucent !== mergedProps.translucent) ||
12+
mergedProps.translucent
13+
) {
14+
NativeStatusBarManagerAndroid.setTranslucent(mergedProps.translucent);

0 commit comments

Comments
 (0)