expo / expo/react-native-read-more-text
溢出判断有问题
Open
- Dominant language
- JavaScript
- Stars
- 580
- Forks
- 111
- PR merge metrics
- No merged PRs in 30d
Description
if (parseInt(fullHeight) > parseInt(limitedHeight)) {
this.setState({ shouldShowReadMore: true }, () => {
this.props.onReady && this.props.onReady();
});
} else {
this.props.onReady && this.props.onReady();
}
需要加parseInt,小数点后面太多容易出现误差。

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.