1.1.0 • Published 2 years ago

@bigbee.dev/react-native-measure-text-size v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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