Skip to content

Commit

Permalink
Add patch for non-translucent status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Feb 13, 2024
1 parent 6a7183d commit c3679bb
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js b/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js
index 2ac3d1f..5a400bf 100644
--- a/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js
+++ b/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js
@@ -479,8 +479,7 @@ class StatusBar extends React.Component<Props> {
}
// Activities are not translucent by default, so always set if true.
if (
- !oldProps ||
- oldProps.translucent !== mergedProps.translucent ||
+ (oldProps && oldProps.translucent !== mergedProps.translucent) ||
mergedProps.translucent
) {
NativeStatusBarManagerAndroid.setTranslucent(mergedProps.translucent);

0 comments on commit c3679bb

Please sign in to comment.