From c3679bbd64905b666e827b603ccb5097f83ff25b Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Tue, 13 Feb 2024 17:50:47 +0100 Subject: [PATCH] Add patch for non-translucent status bar --- ...0.73.2+012+disableNonTranslucentStatusBar.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/react-native+0.73.2+012+disableNonTranslucentStatusBar.patch diff --git a/patches/react-native+0.73.2+012+disableNonTranslucentStatusBar.patch b/patches/react-native+0.73.2+012+disableNonTranslucentStatusBar.patch new file mode 100644 index 000000000000..fedfe544f353 --- /dev/null +++ b/patches/react-native+0.73.2+012+disableNonTranslucentStatusBar.patch @@ -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 { + } + // 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);