-
-
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
Read More Text Overlapping #52
Comments
@pandiarajanvp thanks for raising this issue. Some more info I need to resolve this. Can you set some background color for both and send me a screenshot again ? |
@pandiarajanvp please upgrade to ver If not try passing prop:
|
@pandiarajanvp added a prop To explain further this doesn't addresses the issue, it's just a hack and may fail. You can pass prop now like |
@pandiarajanvp is the issue resolved? |
Thanks for your response, It's working well. But I am facing someone issue. <ReadMore Text Content like D S |
Problem seems with css.
Remove these properties from `style`, maybe you can move them to wrapperStyle:
marginRight
position
Remove prop seeMoreContainerStyleSecondary
…________________________________
From: pandiarajanvp ***@***.***>
Sent: Sunday, February 13, 2022 10:21:09 AM
To: fawaz-ahmed/react-native-read-more ***@***.***>
Cc: Fawaz Ahmed ***@***.***>; State change ***@***.***>
Subject: Re: [fawaz-ahmed/react-native-read-more] Read More Text Overlapping (Issue #52)
Thanks for your response, It's working well.
But I am facing someone issue.
when I use ellipsis='...' (as default ) Readmore text and content get flicker
<ReadMore
numberOfLines={
props.linesType == 'multilines' ? props.NumberOfLines : 5
}
allowFontScaling={false}
seeMoreStyle={{
color: this.props.theme.postDataRead,
fontSize: 10,
//marginTop: 5,
}}
seeLessStyle={{
color: this.props.theme.postDataRead,
fontSize: 10,
//marginTop: 5,
}}
wrapperStyle={{
width: '100%',
alignItems: 'stretch',
}}
seeMoreContainerStyleSecondary={{position: 'relative'}}
seeMoreText={strings('readmore')}
seeLessText={strings('showless')}
ellipsis=''
style={{
fontSize: 10,
//marginRight: 10,
marginRight: 10,
color: this.props.theme.postData,
position: 'relative',
}}>
{${props.message}}
when i changed to when I use ellipsis='' its working good
Text Content like
D
D
D
D
S
D
D
D
D
D
D
D
D
D
D
D
—
Reply to this email directly, view it on GitHub<#52 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEJEVIFN46Z34KJGJKXP6OTU245ULANCNFSM5NTSKR2A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
@pandiarajanvp I did some more debugging around this. This lib // incorrect
Update to ver 2.3.3 and try once again if possible. |
Closing due to inactivity |
hey fawaz I have the same problem with the see more. |
Hi @naor572 , I'd be glad to be of help. For that I need to see what's happening. Can you create a repo and reproduce this issue ? So that I can run it and check what's going wrong. |
hi @fawaz-ahmed
|
Hi @wolfag , it's a known issue |
hi @fawaz-ahmed I have a small solution for 1 line case, could you take a look on it: ReadMore |
Even with nbOfLines={2} (or more) I still see the overlapping "see more" issue. |
Hi @pierroo , to fix this issue I will have to reproduce this first. Can you share with me more details ? specially code using which I can see this behavior. |
Of course, although I am not using anything fancy:
All the above is working perfectly (expanding, collapsing, animating height and width, etc) |
@fawaz-ahmed I'm also getting the same overlap issue in the ios devices could you suggest us any workaround with the particular issue .working with the latest release. |
@manisha351 help me replicate the issue so that I can resolve it. Share code that I can run and see what's happening ? |
@fawaz-ahmed please find the below code const toggleReadMoreDots = () => { <ReadMore const highlightKeywords = (text, keywords, name) => { const userName = "@" + name?.replace(/_/g, " "); return ( export const HighlightMentionedUserText = ({ const rawDescription = description?.split(" ");
|
@manisha351 in your case, I see empty see more text. You can pass a prop |
Hie @fawaz-ahmed i am also facing the same issue on android. could you please provide solution to it. <View style={{ flex: 1, padding: 10 }}>
<ReadMore
numberOfLines={4}
style={{
fontSize: SIZES(15),
paddingTop: SIZES(7),
fontFamily: fontFamily.regular,
color: colors.black10,
lineHeight: SIZES(22),
}}
seeMoreStyle={{
fontSize: SIZES(15),
fontFamily: fontFamily.regular,
color: colors.blue,
lineHeight: SIZES(22),
}}
seeMoreText={"READ MORE"}
collapsed={true}
onSeeMore={props.onHyperLinkPress} >
{item.recommendation}
</ReadMore>
</View> |
@Nisha-syngenta tried with your code, but it shows up fine. If you can create another react native project and share it somehow(a zip or github repo) where it can be reproduced. Then I will be able to debug the issue. |
This issue is not consistent between devices. No overlapping in iPhone 14 but same text overlaps in iPhone 14 Pro Max. @Nisha-syngenta if you can give us the returned numbers for your |
when content is a short message at the time read more text gets overlap with content
and Readmore padding styles not working
The text was updated successfully, but these errors were encountered: