And I want to know how can I change the white header's color to black?
I assume you're using React Navigation for navigation on the react native app.
Here's a demo code block to configure header background.
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{ title: 'Demo', headerStyle: {
backgroundColor: '#000000'
} }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.