'how to add two images in a drawer in react navigation 6 (React Native)
drawerIcon: () => (
<Image
resizeMode="center"
style={styles.logos}
source={require("../assets/images/drawable-xxxhdpi/profile_logo.png")}
/>
);
im putting drawericon but it is overriding
Solution 1:[1]
The drawer icon of a drawer screen is passed via the options prop in the drawerIcon attribute as follows.
<Drawer.Screen name="Test" component={Test} options={{
title: 'Test',
drawerIcon: ({focused, size}) => (
<Image resizeMode='center' style={styles.logos} source={require('../assets/images/drawable-xxxhdpi/profile_logo.png')} />
),
}}/>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | David Scholz |
