{"id":4743,"url":"https://github.com/kayla-tech/react-native-card-io","last_synced_at":"2026-01-14T20:52:33.767Z","repository":{"id":57335980,"uuid":"43662552","full_name":"kayla-tech/react-native-card-io","owner":"kayla-tech","description":"card.io component for React Native","archived":false,"fork":false,"pushed_at":"2016-05-11T01:23:23.000Z","size":104463,"stargazers_count":174,"open_issues_count":5,"forks_count":24,"subscribers_count":15,"default_branch":"develop","last_synced_at":"2025-11-01T05:20:49.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kayla-tech.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-05T02:53:35.000Z","updated_at":"2024-09-09T01:56:52.000Z","dependencies_parsed_at":"2022-09-11T08:21:34.663Z","dependency_job_id":null,"html_url":"https://github.com/kayla-tech/react-native-card-io","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kayla-tech/react-native-card-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayla-tech%2Freact-native-card-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayla-tech%2Freact-native-card-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayla-tech%2Freact-native-card-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayla-tech%2Freact-native-card-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayla-tech","download_url":"https://codeload.github.com/kayla-tech/react-native-card-io/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayla-tech%2Freact-native-card-io/sbom","scorecard":{"id":552147,"data":{"date":"2025-08-11","repo":{"name":"github.com/kayla-tech/react-native-card-io","commit":"ea4470c53b9438e716d0fe7b8fe18a79675c3d37"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 7/24 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: android/libs/card.io-Android-SDK/SampleApp/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T11:10:16.470Z","repository_id":57335980,"created_at":"2025-08-20T11:10:16.470Z","updated_at":"2025-08-20T11:10:16.470Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:21.953Z","updated_at":"2026-01-14T20:52:33.750Z","avatar_url":"https://github.com/kayla-tech.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"readme":"# card.io component for React Native\n\nA fully featured implementation of [card.io](https://www.card.io/) for iOS and Android.\n\n![Screenshot of card.io in action](screenshot.png)\n\n## Installation iOS\n\n1. Run `npm install react-native-card-io --save` in your project directory.\n1. Open your project in XCode (make sure to open `.xcworkspace` NOT `.xcproject`), right click on `Libraries` and click `Add Files to \"Your Project Name\"`.\n1. Within `node_modules`, find `react-native-card-io/ios` and add `RCTCardIO.xcodeproj` to your project.\n1. Add `libRCTCardIO.a` to `Build Phases -\u003e Link Binary With Libraries`.\n1. Add the `-lc++` flag to `Build Settings -\u003e Other Linker Flags`.\n\n## Installation Android\n\nTODO: Currently building a react-native app for iOS and Android, so this will be done soon :)\n\n## Usage\n\n``` javascript\nimport {CardIOView, CardIOUtilities} from 'react-native-card-io'\n\n...\n\ncomponentDidMount() {\n  // The preload method prepares card.io to launch faster. Calling preload is optional but suggested.\n  // On an iPhone 5S, for example, preloading makes card.io launch ~400ms faster.\n  // The best time to call preload is when displaying a view from which card.io might be launched;\n  // e.g., inside your view controller's componentDidMount method.\n  // preload works in the background; the call to preload returns immediately.\n  CardIOUtilities.preload();\n},\n\nrender() {\n  if (CardIOUtilities.canReadCardWithCamera) {\n    return (\n      \u003cView\u003e\n        \u003cCardIOView\n          languageOrLocale=\"en_AU\"\n          guideColor=\"#FF0000\"\n          useCardIOLogo={true}\n          hideCardIOLogo={false}\n          allowFreelyRotatingCardGuide={true}\n          scanInstructions={'Hold card here. It will scan automatically.'}\n          scanExpiry={true}\n          scannedImageDuration={2}\n          detectionMode={CardIOView.cardImageAndNumber}\n          didScanCard={result =\u003e console.log(result)} /\u003e      \n      \u003c/View\u003e\n    );\n  }\n  return (\n    \u003cView style={styles.noCamera}\u003e\n      \u003cText\u003ecard.io requires a camera\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n}\n\n```\n\n## CardIOView\n\n### props\n\nSee `card_io_view.js` for all `React.PropTypes`.\nAll props are optional and the view can be used with simply:\n\n``` javascript\n\u003cCardIOView style={{flex: 1}} /\u003e\n```\n\n### didScanCard\n\nThe `didScanCard` function returns the following object:\n\n``` Javascript\n{\n  cardNumber: string,\n  redactedCardNumber: string,\n  expiryMonth: number, // January == 1\n  expiryYear: number,\n  cvv: string,\n  postalCode: string,\n  scanned: boolean,\n  cardImage: string, // base64\n  cardType: string,\n  logoForCardType: string, // base64\n}\n```\n\nTo display the images returned by `didScanCard` use the following:\n\n``` javascript\n\u003cImage source={{uri: 'data:image/png;base64,'+ cardImage, isStatic: true}} /\u003e\n```\n\n## TODO\n\n- [ ] Android implementation\n- [ ] implement `CardIOPaymentViewController`\n- [ ] add rotation notifications\n\n## Secure\n\ncard.io does not store or transmit credit card numbers.\nRecommend using the [Privacy Snapshot react-native component](https://github.com/kayla-tech/react-native-privacy-snapshot) if using with iOS to blur the screen when the app is backgrounded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayla-tech%2Freact-native-card-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayla-tech%2Freact-native-card-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayla-tech%2Freact-native-card-io/lists"}