Skip to content

Releases: aMarCruz/react-native-text-size

v3.0.0

10 Jan 23:09
Compare
Choose a tag to compare

[3.0.0] - 2019-01-10

For RN prior to v0.57, use react-native-text-size v2.1.1

Added

  • Support textTransform:uppercase for 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

10 Jan 23:00
Compare
Choose a tag to compare

[2.1.1] - 2019-01-10

Added

  • Markdown lint rules.
  • lineInfoForLine option, 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 lineInfoForLine and replaces v2.1.0

v2.0.4

14 Sep 14:39
Compare
Choose a tag to compare

[2.0.4] - 2018-09-14

  • Patch to v2.0.3 published from wrong branch

[2.0.3] - 2018-09-14

Changed

  • Updated README

Fixed

v2.0.2

31 Aug 20:03
Compare
Choose a tag to compare

[2.0.2] - 2018-08-31

Changed

  • iOS: Give flatHeights better 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

23 Aug 07:22
Compare
Choose a tag to compare

[2.0.1] - 2018-08-22

Fixed

  • Silly typo error in last minute edition.

v2.0.0 (UNPUBLISHED)

22 Aug 20:43
Compare
Choose a tag to compare

[2.0.0] - 2018-08-22

Bump v2.0.0 🎉

Changed

  • Code cleanup, minor enhancements.

Removed

  • Removed the FontSize constants.

[2.0.0-beta.6] - 2018-08-21

Added

  • New function flatHeights to calculate the height of multiple strings at once, much faster than measure.
  • Revised REAME. Now it's clearer, part of its content moved to the Wiki.
  • Docummented the iOS only properties capHeight and xHeight from the fontFromSpecs result.
  • New flag usePreciseWidth (default false) request the most accurate calculation of the width (Android) and the value of lastWidth (both), but its is a bit slower.

Changed

  • iOS: The specsForTextStyles function returns fontSize amd letterSpacing with unscaled values, to allow the use with allowFontScaling.

Removed

  • To avoid interfering with the change tracking of rnTextSize, this application was moved to its own repository.

Fixed

  • Android: Arguments.fromList does not exists in RN 0.52, replaced with Arguments.fromArray
  • iOS: Fixes to errors in the sample App that prevented if from running in iOS.

v2.0.0-beta.4 - iOS is here.

18 Aug 01:44
9f42b88
Compare
Choose a tag to compare
Pre-release

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, and fontFamilyNames

Changed

  • 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, and RNTextSize for 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 measure now is the same as Android.
  • Makes the example works.

v1.0.0-beta.3

28 Mar 17:03
Compare
Choose a tag to compare
v1.0.0-beta.3 Pre-release
Pre-release

Tested compilation for SDK 21