Skip to content

bigbee-dev/react-native-measure-text-size

Repository files navigation

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