Skip to content

Commit

Permalink
v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed Jan 10, 2019
1 parent 2ddea0f commit bae72c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

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).

## \[2.1.0] - 2019-01-10
## \[2.1.1] - 2019-01-10

Replaces the unpublished v2.1.0

### Added

Expand All @@ -17,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed

- Linting errors in the markdown of the Changelog and Readme files.
- Overflow in `lineInfoForLine`

## \[2.0.4] - 2018-09-14

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void measure(@Nullable final ReadableMap specs, final Promise promise) {

Integer lineInfoForLine = conf.getIntOrNull("lineInfoForLine");
if (lineInfoForLine != null && lineInfoForLine >= 0) {
final int line = Math.max(lineInfoForLine, lineCount);
final int line = Math.min(lineInfoForLine, lineCount);
final WritableMap info = Arguments.createMap();
info.putInt("line", line);
info.putInt("start", layout.getLineStart(line));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-text-size",
"version": "2.1.0",
"version": "2.1.1",
"description": "Measure text accurately before laying it out and get font information from your App",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit bae72c5

Please sign in to comment.