-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch for non-translucent status bar
- Loading branch information
1 parent
6a7183d
commit c3679bb
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
patches/react-native+0.73.2+012+disableNonTranslucentStatusBar.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |