I’m currently working on a project in react native and I would like to style my header with multiple images and buttons. Can someone please give me the code to add 2 buttons and 2 images to the header? When I try to use multiple items it doesn’t work.
My code is:
const MyStack = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{
headerLeft: () => (
<Image
style={{width: 50, height: 50}}
source={require('./assets/videocamera.png')}
></Image>
),
headerRight: () => (
<TouchableOpacity style={styles.signinheader} onPress={() => navigation.navigate('login')}>
<Text style={styles.signincolor}>SIGN IN</Text>
</TouchableOpacity>
)}}
/>
