The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Support
textTransform:uppercase
for specsForTextStyles in Android.
- peerDependency on react-native to >=57.0
- Update gradle files to be consistent with RN 0.57
- Update License year.
- Unused 'example' directory.
- Markdown lint rules.
lineInfoForLine
option, to get information for a given line.
- Update Readme.
- Limit peerDependency on RN to v0.56, rnTextSize v3 will support RN>=57
- Linting errors in the markdown of the Changelog and Readme files.
- Patch to v2.0.3 published from wrong branch
- Updated README
- PR #6 Fix podspec sysntax. Thanks to @Jyrno42
- iOS: Give
flatHeights
better performace by avoiding multiple creation of NSTextStorage. - Android: Now Studio can check versions in android/build.gradle
- Closes #5: Inconsistency in flatHeights between Android and iOS.
- Some error in the README and include note about unlink the previous version.
- Silly typo error in last minute edition.
Bump v2.0.0 🎉
- Code cleanup, minor enhancements.
- Removed the
FontSize
constants.
- New function
flatHeights
to calculate the height of multiple strings at once, much faster thanmeasure
. - Revised Readme. Now it's clearer, part of its content moved to the Wiki.
- Docummented the iOS-only properties
capHeight
andxHeight
from thefontFromSpecs
result. - New flag
usePreciseWidth
(defaultfalse
) request the most accurate calculation of the width (Android) and the value oflastWidth
(both), but its is a bit slower.
- iOS: The
specsForTextStyles
function returns fontSize amd letterSpacing with unscaled values, to allow its use withallowFontScaling
.
- Android:
Arguments.fromList
does not exists in RN 0.52, replaced withArguments.fromArray
- iOS: Fix errors in the sample App that prevented it from running in iOS.
- To avoid interfering with this changelog, the sample application was moved to its own repository.
WARNING:
The package id has changed, you must uninstall the previous version before using this one.
- Note on the README of the sample App, to test it with a different version of RN.
- Adds flow typings (almost) working with Flow 0.61.x
- Enhancements to the sample App with RN 0.56 and Flow
- New functions
specsForTextStyles
,fontFromSpecs
, andfontFamilyNames
- Complete rewrite of the sample app.
- Simplify anroid/build.gradle and adjust the configuration.
allowFontScaling
is handled in the native side, index.js was simplified a lot.- Migration of example to RN 0.52 and Typescript, enhanced features.
- Minimum supported versions: RN 0.52.x, Android SDK 16, iOS 9.0
- New fformat of the CHANGELOG to follow the Keep a Changelog recommendations.
- Package ID now is
com.github.amarcruz.rntextsize
for Android, andRNTextSize
for iOS. - Fixes to typings.
- Drop support for iOS 8 and RN below 0.52
- Tested on iOS 9 & 11 simulators, Android devices 5.1 & 7, simulator 4.4 & 11, all with RN 0.52.0 and 0.56.0
- Improved measurement on both platforms, accuracy is more than 5 decimals.
- The iOS API and behavior of
measure
now is the same as Android. - Makes the example works.
- Preliminary implementation for iOS (thanks to @xuhom)
- The license is changed to BSD 2-Clause as react-native-measure-text, on which this library is based.
- Now the SDK versions are compatible with global rootProject.ext for flexible configuration.
Published to npm, tested with Android SDK 21.
- Updates compileSdkVersion, buildToolsVersion and targetSdkVersion.
- Gradle plugin to 2.3.3
- Using ES6 for index.js
- Correction to the default export in the index
- compileSdkVersion 25, buildToolsVersion 25.0.3, targetSdkVersion 25
- Revision to README
- targetSdkVersion from 22 to 23.
- Fix error in android path
- Android package id is 'io.amarcruz.rnmeasuretext'
- Suppport for
includeFontPadding
- Using gradle 2.2.3
- Returned info includes
lineCount
with the number of lines andlastLineWidth
with the last line width (Android). - Uses scaled
fontSize
(withallowFontScaling
, automatic).
- Makes
width
property optional in parameters (Android). - Minor fixes, now working.
- First commit, Android only.