Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bhrott/react-native-masked-text
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.3.1
Choose a base ref
...
head repository: bhrott/react-native-masked-text
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Mar 20, 2017

  1. Exclude JetBrains IDE files from git

    Vlad Zhukov committed Mar 20, 2017
    Copy the full SHA
    17e70a5 View commit details
  2. Update npmignore as well

    Vlad Zhukov committed Mar 20, 2017
    Copy the full SHA
    60c961c View commit details
  3. fix

    Vlad Zhukov committed Mar 20, 2017
    Copy the full SHA
    d461361 View commit details
  4. Merge pull request #15 from Vlad-Zhukov/gitignore

    Ignore JetBrains IDE files
    Ben-hur Ott authored Mar 20, 2017
    Copy the full SHA
    79a4996 View commit details
  5. release(1.3.2)

    Ben-hur Santos Ott committed Mar 20, 2017
    Copy the full SHA
    53215b6 View commit details

Commits on Mar 23, 2017

  1. updating docs

    Ben-hur Santos Ott committed Mar 23, 2017
    Copy the full SHA
    e89a8f4 View commit details
  2. Update README.md

    Ben-hur Ott authored Mar 23, 2017
    Copy the full SHA
    3b39d1d View commit details

Commits on Mar 29, 2017

  1. Update deps

    Vlad Zhukov committed Mar 29, 2017
    Copy the full SHA
    0397f1c View commit details

Commits on Apr 2, 2017

  1. Merge branch 'Vlad-Zhukov-deps'

    * Vlad-Zhukov-deps:
      Update deps
    Ben-hur Santos Ott committed Apr 2, 2017
    Copy the full SHA
    42e66e0 View commit details
  2. update version

    Ben-hur Santos Ott committed Apr 2, 2017
    Copy the full SHA
    6013964 View commit details

Commits on May 9, 2017

  1. fix(issue 20): removing default value to allow placeholders

    Ben-hur Santos Ott committed May 9, 2017
    Copy the full SHA
    f81e083 View commit details

Commits on May 13, 2017

  1. Copy the full SHA
    d747e18 View commit details

Commits on May 15, 2017

  1. Merge pull request #22 from helloncanella/master

    Adapted TextInpuMask in order to make it able to use any specialization of TextInput
    Ben-hur Ott authored May 15, 2017
    Copy the full SHA
    8914a36 View commit details
  2. feat(customTextInput): upgrading version and documentation

    Ben-hur Santos Ott committed May 15, 2017
    Copy the full SHA
    09512c2 View commit details

Commits on May 22, 2017

  1. feat(custom): adding new engine to custom mask

    Ben-hur Santos Ott committed May 22, 2017
    Copy the full SHA
    249c042 View commit details

Commits on May 23, 2017

  1. Adding tinymask to fix some custom mask issues.

    Ben-hur Santos Ott committed May 23, 2017
    Copy the full SHA
    e604d61 View commit details

Commits on Jun 2, 2017

  1. feat(custom-mask): adding keyboardType

    Ben-hur Santos Ott committed Jun 2, 2017
    Copy the full SHA
    31eef08 View commit details

Commits on Jun 16, 2017

  1. Copy the full SHA
    9a04262 View commit details

Commits on Jun 17, 2017

  1. Merge pull request #28 from Symphony9/master

    Allowed blank values in custom mask
    Ben-hur Ott authored Jun 17, 2017
    Copy the full SHA
    4f88b7b View commit details
  2. fix 29

    Ben-hur Santos Ott committed Jun 17, 2017
    Copy the full SHA
    6e62f86 View commit details

Commits on Aug 12, 2017

  1. feat(custom-input): adding customInputProps to allow compatibility to…

    … components that set props in mount time.
    Ben-hur Santos Ott committed Aug 12, 2017
    Copy the full SHA
    a2fe766 View commit details

Commits on Aug 15, 2017

  1. fix(customTextInput): fixing duplicated element

    Ben-hur Santos Ott committed Aug 15, 2017
    Copy the full SHA
    2793cae View commit details

Commits on Aug 26, 2017

  1. Copy the full SHA
    2fb8e8c View commit details
  2. Update README.md

    Ben-hur Ott authored Aug 26, 2017
    Copy the full SHA
    26f0fac View commit details

Commits on Oct 4, 2017

  1. update licence

    Ben-hur Santos Ott committed Oct 4, 2017
    Copy the full SHA
    e472a68 View commit details
  2. Create LICENSE

    Ben-hur Ott authored Oct 4, 2017
    Copy the full SHA
    c0aaf71 View commit details

Commits on Oct 19, 2017

  1. Copy the full SHA
    8420a80 View commit details

Commits on Oct 30, 2017

  1. add build config

    notgiorgi committed Oct 30, 2017
    Copy the full SHA
    4150222 View commit details

Commits on Nov 3, 2017

  1. Update to Moment 2.19

    edcs authored Nov 3, 2017
    Copy the full SHA
    d0bfa00 View commit details
  2. Merge pull request #46 from edcs/patch-1

    Update to Moment 2.19
    Ben-hur Ott authored Nov 3, 2017
    Copy the full SHA
    7b8c385 View commit details
  3. Merge pull request #45 from notgiorgi/master

    added build config
    Ben-hur Ott authored Nov 3, 2017
    Copy the full SHA
    6185536 View commit details
  4. updating version

    Ben-hur Santos Ott committed Nov 3, 2017
    Copy the full SHA
    2fb3e6b View commit details

Commits on Nov 11, 2017

  1. fix(money-mask): fixing format for number with one decimal place

    Ben-hur Santos Ott committed Nov 11, 2017
    Copy the full SHA
    b486262 View commit details

Commits on Dec 12, 2017

  1. fix(validation): fixing validation when cpf or cnpj is empty

    Ben-hur Santos Ott committed Dec 12, 2017
    Copy the full SHA
    56de29c View commit details
  2. update readme

    Ben-hur Santos Ott committed Dec 12, 2017
    Copy the full SHA
    93b1499 View commit details

Commits on Jan 4, 2018

  1. [ci skip] Get more Open Source Helpers

    [CodeTriage](https://www.codetriage.com/) is an app I have maintained
    for the past 4-5 years with the goal of getting people involved in
    Open Source projects like this one. The app sends subscribers a random
    open issue for them to help "triage". For some languages you can also
    suggested areas to add documentation.
    
    The initial approach was inspired by seeing the work of the small
    core team spending countless hours asking "what version was
    this in" and "can you give us an example app". The idea is to
    outsource these small interactions to a huge team of volunteers
    and let the core team focus on their work.
    
    I want to add a badge to the README of this project. The idea is to
    provide an easy link for people to get started contributing to this
    project. A badge indicates the number of people currently subscribed
    to help the repo. The color is based off of open issues in the project.
    
    Here are some examples of other projects that have a badge in their
    README:
    
    - https://github.com/crystal-lang/crystal
    - https://github.com/rails/rails
    - https://github.com/codetriage/codetriage
    
    Thanks for building open source software, I would love to help you find some helpers.
    schneems committed Jan 4, 2018
    Copy the full SHA
    af07f13 View commit details
  2. Merge pull request #54 from schneems/schneems/codetriage-badge

    [ci skip] Get more Open Source Helpers
    Ben-hur Santos Ott authored Jan 4, 2018
    Copy the full SHA
    766c719 View commit details

Commits on May 29, 2018

  1. Copy the full SHA
    8fee1ed View commit details
  2. Updates lib version, dist and readme

    Fábio Henriques committed May 29, 2018
    Copy the full SHA
    66d918d View commit details
  3. Updates readme methods

    Fábio Henriques committed May 29, 2018
    Copy the full SHA
    cca30ff View commit details

Commits on Jun 2, 2018

  1. Copy the full SHA
    8346e26 View commit details

Commits on Jun 3, 2018

  1. Merge branch 'iiandrade-master'

    * iiandrade-master:
      Typescript type definition for using with Typescript development.
    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    8d492d0 View commit details
  2. test(custom): temporary commenting tests with error to ci

    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    793aa86 View commit details
  3. mr(73)

    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    df31029 View commit details
  4. mr(72)

    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    1670a07 View commit details
  5. t push origin masterMerge branch 'fabioh8010-master'

    * fabioh8010-master:
      Updates readme methods
      Updates lib version, dist and readme
      Adds toRawValue() method to service
    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    89559ab View commit details
  6. build

    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    3a515c3 View commit details
  7. mr(42)

    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    2a31839 View commit details
  8. Merge branch 'Yamilquery-master'

    * Yamilquery-master:
      feat: Replace old legacy ref string by the new callback
    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    27eb50b View commit details
  9. fix(1.7.1): fixing moment lib version

    Ben-hur Santos Ott committed Jun 3, 2018
    Copy the full SHA
    3c6c419 View commit details
Showing with 9,927 additions and 1,466 deletions.
  1. +1 −1 .babelrc
  2. +58 −0 .eslintrc
  3. +136 −1 .gitignore
  4. +8 −0 .npmignore
  5. +257 −0 CHANGELOG.md
  6. +21 −0 LICENSE
  7. +4 −0 Makefile
  8. +714 −212 README.md
  9. +490 −0 README.old.md
  10. +0 −125 __tests__/cel-phone.mask.test.js
  11. +0 −66 __tests__/cnpj.mask.test.js
  12. +0 −66 __tests__/cpf.mask.test.js
  13. +0 −74 __tests__/credit-card.mask.test.js
  14. +0 −133 __tests__/custom.mask.test.js
  15. +0 −103 __tests__/datetime.mask.test.js
  16. +165 −0 __tests__/mask/cel-phone.mask.test.js
  17. +81 −0 __tests__/mask/cnpj.mask.test.js
  18. +81 −0 __tests__/mask/cpf.mask.test.js
  19. +106 −0 __tests__/mask/credit-card.mask.test.js
  20. +184 −0 __tests__/mask/custom.mask.test.js
  21. +110 −0 __tests__/mask/datetime.mask.test.js
  22. +206 −0 __tests__/mask/money.mask.test.js
  23. +52 −0 __tests__/mask/only-numbers.mask.test.js
  24. +63 −0 __tests__/mask/zip-code.mask.test.js
  25. +0 −198 __tests__/money.mask.test.js
  26. +0 −44 __tests__/only-numbers.mask.js
  27. +0 −54 __tests__/zip-code.mask.test.js
  28. +1 −0 dist/lib/base-text-component.js
  29. +1 −0 dist/lib/internal-dependencies/vanilla-masker.js
  30. +1 −0 dist/lib/mask-resolver.js
  31. +1 −0 dist/lib/mask-service.js
  32. +1 −0 dist/lib/masks/_base.mask.js
  33. +1 −0 dist/lib/masks/cel-phone.mask.js
  34. +1 −0 dist/lib/masks/cnpj.mask.js
  35. +1 −0 dist/lib/masks/cpf.mask.js
  36. +1 −0 dist/lib/masks/credit-card.mask.js
  37. +1 −0 dist/lib/masks/custom.mask.js
  38. +1 −0 dist/lib/masks/datetime.mask.js
  39. +1 −0 dist/lib/masks/index.js
  40. +1 −0 dist/lib/masks/money.mask.js
  41. +1 −0 dist/lib/masks/only-numbers.mask.js
  42. +1 −0 dist/lib/masks/zip-code.mask.js
  43. +1 −0 dist/lib/text-input-mask.js
  44. +1 −0 dist/lib/text-mask.js
  45. +1 −0 dist/rnmt.js
  46. BIN docs/res/logo.png
  47. +106 −0 index.d.ts
  48. +57 −59 lib/base-text-component.js
  49. +2 −2 lib/mask-resolver.js
  50. +15 −7 lib/mask-service.js
  51. +29 −23 lib/masks/_base.mask.js
  52. +58 −45 lib/masks/cel-phone.mask.js
  53. +30 −22 lib/masks/cnpj.mask.js
  54. +62 −42 lib/masks/cpf.mask.js
  55. +50 −21 lib/masks/credit-card.mask.js
  56. +102 −11 lib/masks/custom.mask.js
  57. +27 −20 lib/masks/datetime.mask.js
  58. +18 −18 lib/masks/index.js
  59. +43 −20 lib/masks/money.mask.js
  60. +10 −6 lib/masks/only-numbers.mask.js
  61. +19 −9 lib/masks/zip-code.mask.js
  62. +73 −50 lib/text-input-mask.js
  63. +6 −3 lib/text-mask.js
  64. +56 −31 package.json
  65. 0 index.js → rnmt.js
  66. +6,409 −0 yarn.lock
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["react-native"]
"presets": ["react-native"]
}
58 changes: 58 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"extends": [
"airbnb",
"plugin:flowtype/recommended",
],
"plugins": [
"flowtype"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true,
"jest": true
},
"rules": {
"class-methods-use-this": [ 0, {
"exceptMethods": []
}],

"react/jsx-filename-extension": [ 1, {
"extensions": [".js", ".jsx"]
}],
"react/jsx-max-props-per-line": [ 1, {
"maximum": 2,
"when": "multiline"
}],
"react/prefer-stateless-function": [ 0, {} ],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}],
"react/sort-comp": [ 2, {
order: [
"type-annotations",
"static-methods",
"life-cycle",
"everything-else",
"render"
]
}],
"valid-jsdoc": ["error", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": true,
"requireReturnDescription": true
}]
}
}
137 changes: 136 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,140 @@
node_modules/
.vscode/
.idea/
npm-debug.log

poc.js
__tst.js

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
.idea/caches

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
#*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md


# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
node_modules/
.vscode/
.idea/
npm-debug.log
android/
ios/
App.js
app.json
.watchmanconfig
.buckconfig
.git
Loading