@bigbee.dev/react-native-measure-text-size
v1.1.0
Published
Measure text height without laying it out
Downloads
110
Maintainers
Readme
react-native-measure-text-size
Measure text height without laying it out
Installation
yarn add @bigbee.dev/react-native-measure-text-size
npm install @bigbee.dev/react-native-measure-text-size
Usage
import { measureHeights } from "@bigbee.dev/react-native-measure-text-size";
// ...
const result = await measureHeights({
texts: ['Hello', 'World'],
width: 200,
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT