Skip to content
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

The Read more shows in one sec delay it doesnot render with the component #87

Open
VedanshWebmobi opened this issue Oct 29, 2024 · 1 comment
Labels
invalid This doesn't seem right

Comments

@VedanshWebmobi
Copy link

<ReadMore
numberOfLines={3}
style={{ fontFamily: "bold", fontSize: ms(13), lineHeight: ms(20) }}
seeMoreText={"Read more"}
seeLessText={"Read less"}
seeMoreStyle={{
fontFamily: "bold",
color: color.readColor,
fontSize: ms(13),
}}
seeLessStyle={{
fontFamily: "bold",
color: color.readColor,
fontSize: ms(13),
}}
//ellipsis=""
>
{"RBI's CBDC Yet Another Step in Taking Indian Payments Ahead, JPMorgan Blockchain Head Says that is in wromg RBI's CBDC Yet Another Step in Taking Indian Payments Ahead, JPMorgan Blockchain Head Says that is in wromg RBI's CBDC Yet Another Step in Taking Indian Payments Ahead, JPMorgan Blockchain Head Says that is in wromg"}

@fawaz-ahmed
Copy link
Owner

Hi @VedanshWebmobi , I'm aware of this. The delay is happening because measurements are going on in the component to identify the position where to place the see more component.
If I show the whole component after all measurements are done, it can result in a degraded UX.

@fawaz-ahmed fawaz-ahmed added the invalid This doesn't seem right label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants