Try fix nav bar foreground color
This commit is contained in:
parent
cbd50a811a
commit
7201889c2a
@ -1,5 +1,5 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<style name="AppTheme" parent="Theme.EdgeToEdge">
|
||||
<style name="AppTheme" parent="Theme.EdgeToEdge.Light">
|
||||
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="enforceNavigationBarContrast">false</item>
|
||||
|
||||
@ -36,6 +36,7 @@ module.exports = {
|
||||
"react-native-edge-to-edge",
|
||||
{
|
||||
"android": {
|
||||
"parentTheme": "Light",
|
||||
"enforceNavigationBarContrast": false
|
||||
}
|
||||
}
|
||||
|
||||
@ -83,10 +83,7 @@ export default function RootLayout() {
|
||||
|
||||
useEffect(() => {
|
||||
if (Platform.OS === 'android') {
|
||||
const backgroundColor = theme.colors.primary;
|
||||
const foregroundColor = colorScheme === 'dark' ? 'light' : 'dark';
|
||||
|
||||
NavigationBar.setStyle('light');
|
||||
NavigationBar.setStyle('inverted');
|
||||
}
|
||||
}, [colorScheme]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user