react-native-text-size
react-native-text-size copied to clipboard
Measure text accurately before laying it out and get font information from your App.
Fixes #38 Moved podspec file to root directory, as the podspec file needs to be in root directory in order for autolinking to work in react-native/cli v8
## Issue Due to change in react-native cli, https://github.com/react-native-community/cli/pull/1537 Autolinking is no longer working with React Native 0.69 ## Expected Behavior React Native autolinking to work with react-native-text-size ## Repro...
## Motivation We have some Text components that - Use the `numberOfLines` prop to limit lines - Use the `lineHeight` style to change from the default line height - Have...
This library looks very promising to me, it has a lot of options and seems to be even quite fast! However, I wonder why `line-height` is not supported yet as...
Hey @aMarCruz can you please support for macos and windows as well ?
When applying a textTransform uppercase to the Text style, the measures (width & lastLineWidth) are not accurate.
This change provides a cleaner npm package release by avoiding to pack more unnecessary files and folders (like `gradle` folder, `gradlew`, and `gradlew.bat` files in the android folder) which are...
This wraps the Android Gradle plugin dependency in the buildscripts section of android/build.gradle in a conditional: ``` if (project == rootProject) { // ... (dependency here) } ``` The Android...
As below example, `flatHeights` and `measure` provide different measurement. ``` import TextSize from 'react-native-text-size'; const demoText = await TextSize.flatHeights({ text: ['မြန်မာစာ'], }); const demoSingle = await TextSize.measure({ text: 'မြန်မာစာ', });...