mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Tweak RNTester status bar on Android (#52369)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52369 Tiny fix where the system status bar elements were no longer visible under Android edge-to-edge. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D77653633 fbshipit-source-id: 1275a0de6665a6ef4599166fb205865cd581bb41
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b578a70bd5
commit
4274d6f7c7
@@ -34,6 +34,7 @@ import {
|
||||
Button,
|
||||
Linking,
|
||||
Platform,
|
||||
StatusBar,
|
||||
StyleSheet,
|
||||
View,
|
||||
useColorScheme,
|
||||
@@ -275,6 +276,12 @@ const RNTesterApp = ({
|
||||
|
||||
return (
|
||||
<RNTesterThemeContext.Provider value={theme}>
|
||||
{Platform.OS === 'android' ? (
|
||||
<StatusBar
|
||||
barStyle="dark-content"
|
||||
backgroundColor={theme.GroupedBackgroundColor}
|
||||
/>
|
||||
) : null}
|
||||
{!shouldHideChrome && (
|
||||
<RNTTitleBar
|
||||
title={title}
|
||||
|
||||
Reference in New Issue
Block a user