@bigbee.dev/react-native-measure-text-size
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (20)

    Package Sidebar

    Install

    npm i @bigbee.dev/react-native-measure-text-size

    Weekly Downloads

    178

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    34.3 kB

    Total Files

    21

    Last publish

    Collaborators

    • jittuu