@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    231
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    231
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

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