I have a dark navigation bar and want the status bar to have light icons, but i can't get it working. I've tried
export default function App() {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<StatusBar barStyle="light-content"/>
<Stack.Navigator screenOptions={{
headerStyle: {
backgroundColor: "#282d37",
},
headerTintColor: "#dfe9f5",
headerTitleAlign: 'center'
}}>
<Stack.Screen name="Login" component={LoginScreen} options={{ title: 'Login' }} />
</Stack.Navigator>
</NavigationContainer>
);
}
but the icons are still dark. i am testing on an android device with Android 12
