Skip to content

Commit 2ddea0f

Browse files
author
aMarCruz
committed
v2.1.0
1 parent afc76ac commit 2ddea0f

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5-
## \[Unreleased]
5+
## \[2.1.0] - 2019-01-10
66

77
### Added
88

@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1212
### Changed
1313

1414
- Update Readme.
15+
- Limit peerDependency on RN to v0.56, rnTextSize v3 will support RN>=57
1516

1617
### Fixed
1718

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ react-native link react-native-text-size
4545

4646
**Requirements:**
4747

48-
- React Native v0.52.0 or later.
48+
- React Native v0.52 to v0.56.
4949
- Android API 16 or iOS 9.0 and above.
5050

5151
If you are using Gradle 4 or later, don't forget to change the `compile` directive to `implementation` in the dependencies block of the android/app/build.gradle file.
@@ -339,6 +339,10 @@ This is an **iOS only** function, on Android it always resolves to `null`.
339339

340340
## Known Issues
341341

342+
### Inconsistent width between platforms
343+
344+
In iOS, the resulting width of both, `measure` and `flatHeights`, includes leading whitespace while in Android these are discarded.
345+
342346
### Incorrent height (iOS)
343347

344348
On iOS, RN takes into account the absolute position on the screen to calculate the dimensions. rnTextSize can't do that and both, width and height, can have a difference of up to 1 pixel (not point).

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def getPackageVersion() {
55
}
66

77
def safeExtGet(prop, fallback) {
8-
rootProject.hasProperty(prop) ? rootProject.ext.get(prop) : fallback
8+
return rootProject.ext.hasProperty(prop) ? rootProject.ext.get(prop) : fallback
99
}
1010

1111
def _buildToolsVersion = safeExtGet('buildToolsVersion', '26.0.3')

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-text-size",
3-
"version": "2.0.4",
3+
"version": "2.1.0",
44
"description": "Measure text accurately before laying it out and get font information from your App",
55
"main": "index.js",
66
"keywords": [
@@ -25,6 +25,6 @@
2525
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && cd android && ./gradlew clean"
2626
},
2727
"peerDependencies": {
28-
"react-native": ">=0.52.0"
28+
"react-native": ">=0.52.0 <0.57.0"
2929
}
3030
}

0 commit comments

Comments
 (0)