-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to add icon beside see more/less text #39
Comments
@iamhaamed To pass any custom text component, you pass like this You can try this, though I haven't tested myself:
|
Thank you it is working now, but it seems we have alignment issue for See more because marginTop and paddingTop is not working properly:
|
how can I add icon beside see more/less text?
I have used customTextComponent like this:
<ReadMore seeMoreStyle={styles.button} seeLessStyle={styles.button} numberOfLines={3} customTextComponent={props => ( <> <Text {...props} /> <MaterialCommunityIcon name="chevron-down" size={Spacing.large} color={Colors.blueViolet} /> </> )}> {userInfo.about_me} </ReadMore>
but it's not working properly:
https://i.imgur.com/CktRJtN.png
https://i.imgur.com/HFHGHrq.png
The text was updated successfully, but these errors were encountered: