Show more always shown
IbrahimCanKALYA opened this issue · 4 comments
IbrahimCanKALYA commented
on ios everything seems fine but on android;
always show more button showing..
fawaz-ahmed commented
@IbrahimCanKALYA can you share some more info like screenshot and some piece of code on how you're using it ?
This can help me fix.
IbrahimCanKALYA commented
<ReadMore
style={{...styles.defaultTextStyle, ...style}}
numberOfLines={numberOfLines}
allowFontScaling={false}
seeMoreText="more"
seeLessText="less"
seeMoreStyle={{...style, ...styles.seeMoreLessStyle, ...seeMoreStyle}}
seeLessStyle={{...style, ...styles.seeMoreLessStyle, ...seeLessStyle}}
{...props}>
{renderText()}
</ReadMore>
i'm facing with this issue on samsung s20
IbrahimCanKALYA commented
i find the problem where he is. when i set allowFontScaling={false} this problem accoures but i need to set this parameter
i fixed this issue via this usage:
customTextComponent={(props: TextProps) => (
<Text {...props} allowFontScaling={false} />
)}
fawaz-ahmed commented
@IbrahimCanKALYA thanks for providing more info. I've fixed this issue. Now just passing allowFontScaling={false}
should be sufficient and you can remove customTextComponent
.
Upgrade to version ^1.1.4