Releases: aMarCruz/react-native-text-size
Releases · aMarCruz/react-native-text-size
v3.0.0
[3.0.0] - 2019-01-10
For RN prior to v0.57, use react-native-text-size v2.1.1
Added
- Support
textTransform:uppercasefor specsForTextStyles in Android.
Changed
- peerDependency on react-native to >=57.0
- Update gradle files to be consistent with RN 0.57
- Update License year.
Removed
- Unused 'example' directory.
v2.1.1
[2.1.1] - 2019-01-10
Added
- Markdown lint rules.
lineInfoForLineoption, to get information for a given line.
Changed
- Update Readme.
- Limit peerDependency on RN to v0.56, rnTextSize v3 will support RN>=57
Fixed
- Linting errors in the markdown of the Changelog and Readme files.
- Fixes overflow in
lineInfoForLineand replaces v2.1.0
v2.0.4
v2.0.2
[2.0.2] - 2018-08-31
Changed
- iOS: Give
flatHeightsbetter performace by avoiding multiple creation of NSTextStorage. - Android: Now Studio can check versions in android/build.gradle
Fixed
- Closes #5: Inconsistency in flatHeights between Android and iOS.
- Some error in the README and include note about unlink the previous version.
v2.0.1
v2.0.0 (UNPUBLISHED)
[2.0.0] - 2018-08-22
Bump v2.0.0 🎉
Changed
- Code cleanup, minor enhancements.
Removed
- Removed the
FontSizeconstants.
[2.0.0-beta.6] - 2018-08-21
Added
- New function
flatHeightsto calculate the height of multiple strings at once, much faster thanmeasure. - Revised REAME. Now it's clearer, part of its content moved to the Wiki.
- Docummented the iOS only properties
capHeightandxHeightfrom thefontFromSpecsresult. - New flag
usePreciseWidth(defaultfalse) request the most accurate calculation of the width (Android) and the value oflastWidth(both), but its is a bit slower.
Changed
- iOS: The
specsForTextStylesfunction returns fontSize amd letterSpacing with unscaled values, to allow the use withallowFontScaling.
Removed
- To avoid interfering with the change tracking of rnTextSize, this application was moved to its own repository.
Fixed
- Android:
Arguments.fromListdoes not exists in RN 0.52, replaced withArguments.fromArray - iOS: Fixes to errors in the sample App that prevented if from running in iOS.
v2.0.0-beta.4 - iOS is here.
WARNING
The package id has changed, you must uninstall the previous version before using this one.
Added
- 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
Changed
- Complete rewrite of the sample app.
- Simplify anroid/build.gradle and adjust the configuration.
allowFontScalingis 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.rntextsizefor Android, andRNTextSizefor iOS. - Fixes to typings.
Removed
- Drop support for iOS 8 and RN below 0.52
Fixes
- 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
measurenow is the same as Android. - Makes the example works.
v1.0.0-beta.3
Tested compilation for SDK 21