expo / expo/react-native-read-more-text

溢出判断有问题

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
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,小数点后面太多容易出现误差。

WeChat4cc72858bc2ab0cc4217b42198b86d41

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.