{"_id":"@daiosfoundation/react-native-credit-card-input","_rev":"4-6f5f48ab92028dff111bee37fb8832e3","name":"@daiosfoundation/react-native-credit-card-input","dist-tags":{"latest":"0.4.5"},"versions":{"0.4.1":{"name":"@daiosfoundation/react-native-credit-card-input","version":"0.4.1","description":"React native credit card input component","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"eslint --ext .js ."},"repository":{"type":"git","url":"git+https://github.com/DAIOSFoundation/react-native-credit-card-input.git"},"keywords":["react-native","ios","android","credit-card","credit-card input","skeuomorphic credit-card","form","flip","card","input","component","react-component","react-native-component"],"author":{"name":"DAIOSFoundation"},"license":"MIT","bugs":{"url":"https://github.com/DAIOSFoundation/react-native-credit-card-input/issues"},"homepage":"https://github.com/DAIOSFoundation/react-native-credit-card-input#readme","dependencies":{"card-validator":"^3.0.0","prop-types":"^15.6.0","react-native-flip-card":"^3.4.1","lodash.compact":"^3.0.1","lodash.every":"^4.6.0","lodash.pick":"^4.4.0","lodash.values":"^4.3.0"},"devDependencies":{"babel-eslint":"^5.0.0","babel-polyfill":"^6.6.1","babel-preset-react-native":"^1.8.0","eslint":"~2.2.0","eslint-config-airbnb":"6.0.2","eslint-plugin-react":"^4.2.0"},"gitHead":"925326c0dc6c9dcb2c4ecc077fecfa46be608099","_id":"@daiosfoundation/react-native-credit-card-input@0.4.1","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-I/sIy62QLzmUpGcyWS9fiX80sGo7pv2r3LAO+tuJ6Fmw6UO440FV8x799x1EpYhm8G7ACaWMa1B4WBcNR3+nQg==","shasum":"71c372362a4b75ac05363ddf91ef9f65c6196335","tarball":"https://registry.npmjs.org/@daiosfoundation/react-native-credit-card-input/-/react-native-credit-card-input-0.4.1.tgz","fileCount":513,"unpackedSize":14058328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWbPkCRA9TVsSAnZWagAAe1IP/RBiG5muxrz79z/DXIvb\nP2KqlkIKepIuT7LUh1ElnaUFsFoNvomBoWojB59wzFZN1Etgws2/hIMMDaaC\nS+jyQ8hSHDuXaOsk1h2kV34ISGtfAcOnKIQANUFy85R5N9zJU6A564wHBKW6\ngu6FwMss5kaAQg5VX9JB2Y711jfWbPIZ1J+hnAkRJWAei5nuFadHuHvrWJDQ\nOTo8gZ6ib72WsZ/FGhwbOitg+b72+H+MNhMkLtNNSq0gqvP2UEFYrlDK6Dhf\nrYy+G4zuk/jG/HK+3qMe4p0p1QGSxgcVxzKQ6WOb1sX3Id/J2EGNdqFiVOx7\nbuqcW2p4hQrcyKWATlDVuSWg9FYB9ZxkX4rCHLdnxe10BpCDjp4cTh7j2xJz\nLOLklmW4VoVGpEue2D67+Um6T0wjyf23cBa6bjsnoM6DpZpink8A/zRCMqk9\nrPT3A7T7RMJcZK2utkHbMo/VmVYEcbXp/skNjQDSjgDZ2gRrGOQmjWe3GPw4\n2/QEwDgPkxE+50DgcRHa9s2vQLJNm9poE/QYOhg+49PwPeTOLiCvpJmRxzAb\n9D/jC1m5HFAULhG+IOK7k2xRwa1ed65AX1rOH8vtkfdl+h9mzY47rlFFrdud\nZP+bb813+aN1JxdlZFDsANICGU6iwBL5naWoQv9gMH33WGYgPWG83wn5Gk4I\nVfaf\r\n=td8c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+0+ISOlNIeuqan2hZI1THHZnRt1FHXlJ6gkGR795ocAiEAskmAI9fipQJajusmOQwTBORfcOy8gg47gVD0TBxNtUM="}]},"maintainers":[{"name":"0strich","email":"rich@daiblab.com"},{"name":"secrecy418","email":"secrecy418@gmail.com"},{"name":"whackur","email":"ioumelon7@gmail.com"}],"_npmUser":{"name":"0strich","email":"rich@daiblab.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-credit-card-input_0.4.1_1599714275956_0.9666757222268951"},"_hasShrinkwrap":false},"0.4.2":{"name":"@daiosfoundation/react-native-credit-card-input","version":"0.4.2","description":"React native credit card input component","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"eslint --ext .js ."},"repository":{"type":"git","url":"git+https://github.com/DAIOSFoundation/react-native-credit-card-input.git"},"keywords":["react-native","ios","android","credit-card","credit-card input","skeuomorphic credit-card","form","flip","card","input","component","react-component","react-native-component"],"author":{"name":"daiosfoundation"},"license":"MIT","bugs":{"url":"https://github.com/DAIOSFoundation/react-native-credit-card-input/issues"},"homepage":"https://github.com/DAIOSFoundation/react-native-credit-card-input#readme","dependencies":{"card-validator":"^3.0.0","prop-types":"^15.6.0","react-native-flip-card":"^3.4.1","lodash.compact":"^3.0.1","lodash.every":"^4.6.0","lodash.pick":"^4.4.0","lodash.values":"^4.3.0"},"devDependencies":{"babel-eslint":"^5.0.0","babel-polyfill":"^6.6.1","babel-preset-react-native":"^1.8.0","eslint":"~2.2.0","eslint-config-airbnb":"6.0.2","eslint-plugin-react":"^4.2.0"},"gitHead":"f5af04b5b10f352eecb0e889879ad374945fe151","_id":"@daiosfoundation/react-native-credit-card-input@0.4.2","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-6/EujVjr8sTUqGybtur4ntAP9DN772u3v82T1Y7/TprWW0mNEqfOihhwng/+fpOMEFJysQ0uL79SlWutdN2ppg==","shasum":"db5b957d80bfd27aa2703c00cee9cc43c9bb9b98","tarball":"https://registry.npmjs.org/@daiosfoundation/react-native-credit-card-input/-/react-native-credit-card-input-0.4.2.tgz","fileCount":33,"unpackedSize":976560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXB9qCRA9TVsSAnZWagAAeyoQAJsTUVm5USnrRDUtDZHL\nCL6bKEGpUWCRuWwHrli2GuriPtAvdftz1gIwHUH5TVjhxxGviTD8yNZ6cZYN\nbHFxQUxrloZQhu7qJLq4lHDtpKXvg4ejTcOsZXAkHg3pse8C8gPGJPDGjqUZ\noacaoKVvse41Z08TZ1le5PqBzIUecUhkmvT05iUDfeuV+wkPylP4HXMy+xZM\nuDMuEn/Bl/kHhSVxXBIVjgCVU9c2jzmP+/CWXBEiGJMnvLA8OKY4fx+haKA0\nrBnmtdI/FktODux/tT0GxP8x1bne0FsUvZAml1PJH17Ue/Z26nXQhw6CXzfd\nZmKFAQ4MfyLFSQFXOncCw2HRKmUkj/uHPPa6eWka95HpenjSvq5HbPsOatF5\nmoGT5bQvDKw/Yr3oxwoa4lfj05KVqZs7VOiHzxuvY4YRgN9OD9RtqqUzu6gD\nsB7E2FlMj4UvcISf4mKdAeQ9m/K082OHiYgUi5Y3ALhX7l/rWjHbiTvzrAmD\nFl7wdgP1meJDEX1Oo3cpwKcfAraKNAaYx/qX68hhW7asROMajzAFZSp4dbS/\ni2XhT+wKYvNY2mqQC6ZoQb3rGr/A1fqLo2l2zvqhgDlrprUHy3LwjWTm2rLt\nYnTpM69MbDl+1sK10AitW7XTbfoJ8JCxELXSGArzPy6KruOh1lZ/XaOIH6BY\naAzZ\r\n=Gvdm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEsC0TTkM6wQfm/EmEWL47SLqjgieviczxRJ65nMAFGAiEA+p2JXqtE0UPAeizl1wIVfQvQk6AnCujMRs4Wd5l/M7U="}]},"maintainers":[{"name":"0strich","email":"rich@daiblab.com"},{"name":"secrecy418","email":"secrecy418@gmail.com"},{"name":"whackur","email":"ioumelon7@gmail.com"}],"_npmUser":{"name":"0strich","email":"rich@daiblab.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-credit-card-input_0.4.2_1599872874201_0.4003508518698673"},"_hasShrinkwrap":false},"0.4.5":{"name":"@daiosfoundation/react-native-credit-card-input","version":"0.4.5","description":"React native credit card input component","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"eslint --ext .js ."},"repository":{"type":"git","url":"git+https://github.com/DAIOSFoundation/react-native-credit-card-input.git"},"keywords":["react-native","ios","android","credit-card","credit-card input","skeuomorphic credit-card","form","flip","card","input","component","react-component","react-native-component"],"author":{"name":"daiosfoundation"},"license":"MIT","bugs":{"url":"https://github.com/DAIOSFoundation/react-native-credit-card-input/issues"},"homepage":"https://github.com/DAIOSFoundation/react-native-credit-card-input#readme","dependencies":{"card-validator":"^3.0.0","lodash.compact":"^3.0.1","lodash.every":"^4.6.0","lodash.pick":"^4.4.0","lodash.values":"^4.3.0","prop-types":"^15.6.0","react-native-flip-card":"^3.4.1","styled-components":"^5.1.1"},"devDependencies":{"babel-eslint":"^5.0.0","babel-polyfill":"^6.6.1","babel-preset-react-native":"^1.8.0","eslint":"~2.2.0","eslint-config-airbnb":"6.0.2","eslint-plugin-react":"^4.2.0"},"gitHead":"6f6bcd5be8f09f7b32a5c6f0c9bfc02c7fb35479","_id":"@daiosfoundation/react-native-credit-card-input@0.4.5","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-kinF1z84kqXZ7Wk/t/dqnXnqBu33zpkNHgr6PX57CoCzHoZNqvYZU149hHlXtHWqcWsy8o8alx/efRn+0o1ilw==","shasum":"f400804a6cc23ddec89b39c040664f7ff5265f05","tarball":"https://registry.npmjs.org/@daiosfoundation/react-native-credit-card-input/-/react-native-credit-card-input-0.4.5.tgz","fileCount":44,"unpackedSize":999445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXCd7CRA9TVsSAnZWagAAK74P/1X/fHpBQWvayhr1q6qx\nC7TR7xvKxVTec3HoM8S7Pjh64FqTD85O4Q0DyZJINTja/nSbc2pxXaGWq+vc\nFVtUicdV5q5tFKEpejhUqEa+0L1Eojwhoro7LULFn4FoM3fYOQ0q4IeC+Xj7\nCDXnJbpnlMpm+ZL8CcOKJagvGQUYryn4GqZCmaQq2s/F+6TQeCpzck8WrHvq\nrsK7zWG82/VBBFwsUTYybk3zsou4zy5g56z0OakYP6B/RaVc0+rPoROp62fu\nMFH0OnrQv2NamE1kP1fiyoOk1MYW6Hfd97AZPgVVcRST5UTwpq5RYFS1Hlop\ne9XpJC0jWM9vzeMnrhXOymeo4Td9Xwcpb1Fp66oIeuKgPKRL38JrGEQNM65i\nR4C+aut/rGqR/IDpGRVBTQ5j/Cvm0tSdzD4AidXkcfoD/OTiJ+LU672gbvNu\nBgFdBdgOtYHRqEW2U99IfzOtv1p2Fu9y5NqyxPmWUBpl4ovWWkjgZOt/771Q\nZbj5h6yf9eN88/AfJ6rI8k0dfM7d6Jl0L223tSnp13+Hm9+WvtEYkEY5oMBp\nAbOPKTMwGhOpS63VJV3LkYzvqaY5S9D5Viy5MTCDbY11aNwI8XWJZVVQOCic\n+2J5+wv+eYeQC9V/VCEcYLkkXRTWY/6PNmrwC948B0ffYUi4zyQbkrYa29xg\n7XJA\r\n=jbi9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrlxJtrSGLPaCqANnXqUhUFhku/M1cocriClT/nzeT9gIgXxg/fMFEDBaopF8P3fyvpbTIBcWobEwtd47oAtGtZmg="}]},"maintainers":[{"name":"0strich","email":"rich@daiblab.com"},{"name":"secrecy418","email":"secrecy418@gmail.com"},{"name":"whackur","email":"ioumelon7@gmail.com"}],"_npmUser":{"name":"0strich","email":"rich@daiblab.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-credit-card-input_0.4.5_1599874939269_0.8011476750056301"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-10T05:04:35.690Z","0.4.1":"2020-09-10T05:04:36.466Z","modified":"2022-04-05T02:34:16.366Z","0.4.2":"2020-09-12T01:07:54.386Z","0.4.5":"2020-09-12T01:42:19.442Z"},"maintainers":[{"email":"rkdgur7007@gmail.com","name":"kanghyeok93"},{"email":"rich@daiblab.com","name":"0strich"},{"email":"secrecy418@gmail.com","name":"secrecy418"},{"email":"ioumelon7@gmail.com","name":"whackur"}],"description":"React native credit card input component","homepage":"https://github.com/DAIOSFoundation/react-native-credit-card-input#readme","keywords":["react-native","ios","android","credit-card","credit-card input","skeuomorphic credit-card","form","flip","card","input","component","react-component","react-native-component"],"repository":{"type":"git","url":"git+https://github.com/DAIOSFoundation/react-native-credit-card-input.git"},"author":{"name":"daiosfoundation"},"bugs":{"url":"https://github.com/DAIOSFoundation/react-native-credit-card-input/issues"},"license":"MIT","readme":"# DAIOSFoundation Fork Version\n\n# React Native Credit Card Input\nEasy (and good looking) credit-card input for your React Native Project 💳 💳\n\n<p align=\"center\">\n<img src=\"https://github.com/sbycrosz/react-native-credit-card-input/blob/master/preview-ios.gif?raw=true\" width=200/>\n<img src=\"https://github.com/sbycrosz/react-native-credit-card-input/blob/master/preview-ios-lite.gif?raw=true\" width=200/>\n<img src=\"https://github.com/sbycrosz/react-native-credit-card-input/blob/master/preview-android.gif?raw=true\" width=200/>\n<img src=\"https://github.com/sbycrosz/react-native-credit-card-input/blob/master/preview-android-lite.gif?raw=true\" width=200/>\n</p>\n\nCode:\n\n```js\n<CreditCardInput onChange={this._onChange} />\n// or\n<LiteCreditCardInput onChange={this._onChange} />\n```\n\n\n# Features\n* Skeuomorphic credit-card 💳 (inspired by: [card](https://jessepollak.github.io/card/), [react-native-credit-card](https://github.com/sonnylazuardi/react-native-credit-card))\n* **!!NEW!!** Now you could scale the Credit Card for smaller screens\n* **!!NEW!!** Now you could use CardView as a Component. example use case: showing saved payment details, etc.\n* Lite version for smaller screens (or if skeuomorphic is not really your thing)\n* Credit-card input validations & formatting while you're typing\n* Form is fully navigatable using keypad\n* Works on both Android and iOS\n\n# Usage\n\n```bash\nnpm i --save react-native-credit-card-input\n```\n\nthen add these lines in your react-native codebase\n\n```js\nimport { CreditCardInput, LiteCreditCardInput } from \"react-native-credit-card-input\";\n\n<CreditCardInput onChange={this._onChange} />\n// or\n<LiteCreditCardInput onChange={this._onChange} />\n\n// Note: You'll need to enable LayoutAnimation on android to see LiteCreditCardInput's animations\n// UIManager.setLayoutAnimationEnabledExperimental(true);\n\n```\n\nAnd then on your onChange handler:\n\n```js\n_onChange => form => console.log(form);\n\n// will print:\n{\n  valid: true, // will be true once all fields are \"valid\" (time to enable the submit button)\n  values: { // will be in the sanitized and formatted form\n  \tnumber: \"4242 4242\",\n  \texpiry: \"06/19\",\n  \tcvc: \"300\",\n  \ttype: \"visa\", // will be one of [null, \"visa\", \"master-card\", \"american-express\", \"diners-club\", \"discover\", \"jcb\", \"unionpay\", \"maestro\"]\n  \tname: \"Sam\",\n  \tpostalCode: \"34567\",\n  },\n  status: {  // will be one of [\"incomplete\", \"invalid\", and \"valid\"]\n\tnumber: \"incomplete\",\n\texpiry: \"incomplete\",\n\tcvc: \"incomplete\",\n\tname: \"incomplete\", \n\tpostalCode: \"incomplete\",\n  },\n};\n\n// Notes: \n// cvc, name, & postalCode will only be available when the respective props is enabled (e.g. requiresName, requiresCVC)\n```\n\n# Props\n\n## LiteCreditCardInput\n| Property | Type | Description |\n| --- | --- | --- |\n|autoFocus | PropTypes.bool | Automatically focus Card Number field on render|\n|onChange | PropTypes.func | Receives a `formData` object every time the form changes |\n|onFocus | PropTypes.func | Receives the name of currently focused field |\n|placeholders | PropTypes.object | Defaults to <br/>`{ number: \"1234 5678 1234 5678\", expiry: \"MM/YY\", cvc: \"CVC\" }` |\n|inputStyle | Text.propTypes.style | Style for credit-card form's textInput |\n|validColor | PropTypes.string | Color that will be applied for valid text input. Defaults to: \"{inputStyle.color}\" |\n|invalidColor | PropTypes.string | Color that will be applied for invalid text input. Defaults to: \"red\" |\n|placeholderColor | PropTypes.string | Color that will be applied for text input placeholder. Defaults to: \"gray\" |\n| additionalInputsProps | PropTypes.objectOf(TextInput.propTypes) | An object with Each key of the object corresponding to the name of the field. Allows you to change all props documented in [RN TextInput](https://facebook.github.io/react-native/docs/textinput.html).\n\n#### NOTES\nLiteCreditCardInput does not support `requiresName`, `requiresCVC`, and `requiresPostalCode` at the moment, PRs are welcome :party:\n\n\n## CreditCardInput\n| Property | Type | Description |\n| --- | --- | --- |\n|autoFocus | PropTypes.bool | Automatically focus Card Number field on render|\n|onChange | PropTypes.func | Receives a `formData` object every time the form changes |\n|onFocus | PropTypes.func | Receives the name of currently focused field |\n|labels | PropTypes.object | Defaults to <br/>`{ number: \"CARD NUMBER\", expiry: \"EXPIRY\", cvc: \"CVC/CCV\" }` |\n|placeholders | PropTypes.object | Defaults to <br/>`{ number: \"1234 5678 1234 5678\", expiry: \"MM/YY\", cvc: \"CVC\" }` |\n|cardScale | PropTypes.number | Scales the credit-card view.<br/>Defaults to `1`, which translates to `{ width: 300, height: 190 }` |\n|cardFontFamily | PropTypes.string | Font family for the CreditCardView, works best with monospace fonts. Defaults to Courier (iOS) or monospace (android) |\n|cardImageFront | PropTypes.number | Image for the credit-card view `e.g. require(\"./card.png\")` |\n|cardImageBack | PropTypes.number | Image for the credit-card view `e.g. require(\"./card.png\")` |\n|labelStyle | Text.propTypes.style | Style for credit-card form's labels |\n|inputStyle | Text.propTypes.style | Style for credit-card form's textInput |\n|inputContainerStyle | ViewPropTypes.style | Style for textInput's container<br/> Defaults to: `{ borderBottomWidth: 1, borderBottomColor: \"black\" }` |\n|validColor | PropTypes.string | Color that will be applied for valid text input. Defaults to: \"{inputStyle.color}\" |\n|invalidColor | PropTypes.string | Color that will be applied for invalid text input. Defaults to: \"red\" |\n|placeholderColor | PropTypes.string | Color that will be applied for text input placeholder. Defaults to: \"gray\" |\n|requiresName | PropTypes.bool | Shows cardholder's name field<br/> Default to `false` |\n|requiresCVC | PropTypes.bool | Shows CVC field<br/> Default to `true` |\n|requiresPostalCode | PropTypes.bool | Shows postalCode field<br/> Default to `false` |\n|validatePostalCode | PropTypes.func | Function to validate postalCode, expects `incomplete`, `valid`, or `invalid` as return values|\n|allowScroll | PropTypes.bool | enables horizontal scrolling on CreditCardInput <br/> Defaults to `false` |\n|cardBrandIcons | PropTypes.object | brand icons for CardView. see `./src/Icons.js` for details |\n| additionalInputsProps | PropTypes.objectOf(TextInput.propTypes) | An object with Each key of the object corresponding to the name of the field. Allows you to change all props documented in [RN TextInput](https://facebook.github.io/react-native/docs/textinput.html).\n\n##CardView\n\n| Property | Type | Description |\n| --- | --- | --- |\n|focused | PropTypes.string | Determines the front face of the card|\n|brand | PropTypes.string | Brand of the credit card|\n|name | PropTypes.string | Cardholder's name (Use empty string if you need to hide the placeholder) |\n|number | PropTypes.string | Credit card number (you'll need to the formatting yourself) |\n|expiry | PropTypes.string | Credit card expiry (should be in MM/YY format)|\n|cvc | PropTypes.string | Credit card CVC |\n|placeholder | PropTypes.object | Placeholder texts|\n|scale | PropTypes.number | Scales the card|\n|fontFamily | PropTypes.string | Defaults to `Courier` and `monospace` in iOS and Android respectively|\n|imageFront | PropTypes.number | Image for the credit-card |\n|imageBack | PropTypes.number | Image for the credit-card |\n|customIcons | PropTypes.object | brand icons for CardView. see `./src/Icons.js` for details |\n\n#### Note on additionalInputsProps\n\nadditionalInputsProps gives you more control over the inputs in LiteCreditCardInput and CreditCardInput. An example object is as follows:\n```javascript\naddtionalInputsProps = {\n  name: {\n    defaultValue: 'my name',\n    maxLength: 40,\n  },\n  postalCode: {\n    returnKeyType: 'go',\n  },\n};\n```\n\nThe above would set the default value of the name field to `my name` and limit the input to a maximum of 40 character. In addition, it would set the returnKeyType of the postalcode field to `go`.\n\n# Methods\n## setValues\nSet values into credit card form\n\n\n```js\n\t// sets 4242 on credit card number field\n\t// other fields will stay unchanged\n\tthis.refs.CCInput.setValues({ number: \"4242\" });\n```\n\n**Known issues:** clearing a field e.g. `setValues({ expiry: \"\" })` will trigger the logic to `move to previous field` and trigger other kind of weird side effects. **PR plz**\n\n\n## focus\nfocus on to specified field\n\n```js\n\t// focus to expiry field\n\tthis.refs.CCInput.focus(\"expiry\");\n```\n\n# Example\n\n[Expo Snack](https://snack.expo.io/@sbycrosz/react-native-credit-card-example)\n\nIn the `example` directory, run:\n\n```bash\nnpm install\n\nreact-native run-ios\n# or\nreact-native run-android\n```\n\n# Missing Something? Something is not working?\n* Open a GitHub issue, or\n* Send a pull request :D\n* Make sure `npm run lint` passed\n\n# Future Improvement\n* Add unit tests\n* Create example with [react-native-awesome-card-io](https://github.com/Kerumen/react-native-awesome-card-io)\n\n# Breaking Changes from 0.2.*\n* `cardViewSize` prop are removed from `CreditCardInput`, use `cardScale` instead (because changing the size will break most of the texts)\n* `bgColor` prop are removed from `CreditCardInput`, ask your designer friend to make a credit card image instead (or use the prebundled image)\n* `imageFront` and `imageBack` props are renamed to `cardImageFront` and `cardImageBack` respectively,\n* Android `monospace` fonts doesn't looks as nice as iOS `Courier`, bundle custom fonts into your app and override the default using `cardFontFamily` instead\n\n# Production App using react-native-credit-card-input\n* Grain.com.sg ([iOS](https://grain.com.sg/mobile/ios/download), [Android](https://grain.com.sg/mobile/android/download)) – Gourmet food delivery in Singapore\n","readmeFilename":"readme.md"}