diff --git a/CHANGELOG.md b/CHANGELOG.md index a8f9b743..c74dbfdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ ## Unreleased +## [1.12.5] - 2019-08-03 + +### Fix + +- [#176](https://github.com/benhurott/react-native-masked-text/issues/176) Deprecation Warning: componentWillReceiveProps + - Thanks to [Maksim Markelov](https://github.com/mmarkelov) for contributing! + +### Chore + +- Use find instead of filter on mask resolver. + - Thanks to [rodineijf](https://github.com/rodineijf) for contributing! + ## [1.12.4] - 2019-07-12 ### Fix diff --git a/dist/lib/base-text-component.js b/dist/lib/base-text-component.js index 6334ef5f..f605f2bb 100644 --- a/dist/lib/base-text-component.js +++ b/dist/lib/base-text-component.js @@ -1 +1 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i { + let maskKey = maskKeys.find(m => { var handler = Masks[m]; return handler && handler.getType && handler.getType() === type; - })[0]; + }); let handler = Masks[maskKey]; diff --git a/package.json b/package.json index 33f1b690..574624ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-masked-text", - "version": "1.12.4", + "version": "1.12.5", "description": "Text and TextInput with mask for React Native applications", "licenses": [ {