Tab Bar Image
See original GitHub issueIs there any possible way to add the image icon before the value/tab name ? if yes please help me. i do like this but the text is not adjusted with the image.
badges={[ <Text style={styles.badgeText}> <Image style={styles.badgeImage1} source={require("./Images/3.png")} />Personal </Text>, <Text style={styles.badgeText}> <Image style={styles.badgeImage} source={require("./Images/2.png")} />Doctor </Text>, <Text style={styles.badgeText}> <Image style={styles.badgeImage2} source={require("./Images/1.png")} />Security </Text> ]} values={["", "", ""]}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Hi @sandeep0607 , you can do it this way.
create a function which renders inlineImage with text
Pass it to the values props.
@zhigang1992 yes, sorry for that 😄