Skip to content

Commit

Permalink
Merge pull request #147 from benhurott/1.12.2
Browse files Browse the repository at this point in the history
refactor(1.12.2): performance improvements
  • Loading branch information
Ben-hur Santos Ott authored Apr 22, 2019
2 parents a4db993 + e6232c4 commit 601a070
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 79 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased

## [1.12.2] - 2019-04-22

### Refactor

- Performance improvements
- The `state` control was removed from the text mask component, using only the props to handle the mask.
- We changed the base text mask from `Component` to `PureComponent`.
- BREAKING: the `value` and `onChangeText` are now **required** props.
- These changes probably will fix (need to check with the reporters):
- [Wrong input inserting unwanted text #146](https://github.com/benhurott/react-native-masked-text/issues/146)
- [Flickering of uncontrolled input #136](https://github.com/benhurott/react-native-masked-text/issues/136)

## [1.12.1] - 2019-04-09

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import { TextInputMask } from 'react-native-masked-text'
// the options for your mask if needed
}
}

// dont forget to set the "value" and "onChangeText" props
value={this.state.text}
onChangeText={text => {
this.setState({
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/base-text-component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/text-input-mask.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 601a070

Please sign in to comment.