{"id":24707743,"url":"https://github.com/ashinga48/react-native-nfc-module","last_synced_at":"2025-10-09T09:31:36.777Z","repository":{"id":57338701,"uuid":"112823202","full_name":"ashinga48/react-native-nfc-module","owner":"ashinga48","description":"Custom NFC module for android ","archived":false,"fork":false,"pushed_at":"2017-12-02T08:17:09.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T17:33:44.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashinga48.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-02T07:47:33.000Z","updated_at":"2021-11-15T09:48:16.000Z","dependencies_parsed_at":"2022-08-31T04:02:39.118Z","dependency_job_id":null,"html_url":"https://github.com/ashinga48/react-native-nfc-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashinga48/react-native-nfc-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashinga48%2Freact-native-nfc-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashinga48%2Freact-native-nfc-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashinga48%2Freact-native-nfc-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashinga48%2Freact-native-nfc-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashinga48","download_url":"https://codeload.github.com/ashinga48/react-native-nfc-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashinga48%2Freact-native-nfc-module/sbom","scorecard":{"id":211604,"data":{"date":"2025-08-11","repo":{"name":"github.com/ashinga48/react-native-nfc-module","commit":"7313373ac36b9557eb595bba63db8aea7322b712"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","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":"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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 'master'"],"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"}}]},"last_synced_at":"2025-08-17T00:51:59.994Z","repository_id":57338701,"created_at":"2025-08-17T00:51:59.994Z","updated_at":"2025-08-17T00:51:59.994Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001135,"owners_count":26083022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-01-27T06:18:51.781Z","updated_at":"2025-10-09T09:31:36.436Z","avatar_url":"https://github.com/ashinga48.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-nfc-module\nA NFC Android native module to integrate react-native application\n\n# Only Manual Installation\n\n# Step 1 : First, install the library from npm\n```\nnpm install --save react-native-nfc-module\n```\n\n# Step 2, Link the native dependencies\n\n### Mostly automatic installation\n\n```\nreact-native link react-native-nfc-module\n```\n\n## Usage\n\n1. import NFCScanner from 'react-native-nfc-module';\n\n2. To check NFC availability \n\n    ```\n    NFCScanner.NFCavailability( (resp) =\u003e {\n            if(resp.nfcAvailable == \"yes\" || resp.nfcAvailable == \"no\") {\n                if(resp.nfcAvailable == \"yes\")\n                this.setState({nfcOpen: true});\n\n                this.requestPermission();\n            }\n        });\n    ```\n\n3. Listening for NFC events\n    \n    step #1\n    \n    ```\n    import {DeviceEventEmitter} from 'react-native';\n    ```\n    \n    step #2\n    \n    ```\n    componentDidMount() {\n        /*\n        Register listener\n        */\n        DeviceEventEmitter.addListener('onScanned', this.onScanned);\n        \n        /*\n            onload check if there is NFC data \n            \n            Caution : For multi window apps, there might be an issue if you dont handle the onResume \u0026 onStart events\n        */\n        NFCScanner.getInitialID(\"sample\");\n    }\n\n    componentWillUnmount() {\n        /*\n        Unregister Listener\n        */\n        DeviceEventEmitter.removeListener('onScanned', this.onScanned);\n    }\n    ```\n\n# Checklist\n    \n    Check #1 : Android Manifest.xml NFC permission\n    \n    ```\n    \u003cuses-permission android:name=\"android.permission.NFC\" /\u003e\n    ```\n    \n    Check #2 : Register What types of NFC should be handled\n    \n    ```\n    \u003cactivity\n            android:name=\".MainActivity\"\n            ... \u003e\n\n            \u003cintent-filter\u003e\n                \u003caction android:name=\"android.nfc.action.TAG_DISCOVERED\" /\u003e\n                \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n            \u003c/intent-filter\u003e\n\n            \u003cintent-filter\u003e\n                \u003caction android:name=\"android.nfc.action.NDEF_DISCOVERED\"/\u003e\n                \u003ccategory android:name=\"android.intent.category.DEFAULT\"/\u003e\n                \u003cdata android:mimeType=\"application/vnd.com.touchon.user\"/\u003e\n            \u003c/intent-filter\u003e\n\n            \u003cintent-filter\u003e\n                \u003caction android:name=\"android.nfc.action.TECH_DISCOVERED\" /\u003e\n                \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n            \u003c/intent-filter\u003e\n\n            \u003cmeta-data\n                android:name=\"android.nfc.action.TECH_DISCOVERED\"\n                android:resource=\"@xml/nfc_tech_filter\" /\u003e\n\n        \u003c/activity\u003e\n        ```\n\n\n# Issues\n\nCheck #1\n\nthis step is not necessary if the android manifest file is added with following dependencies\n\n check \"react-native-nfc-module\" project --\u003e build.gradle\n\n\tadd following\n\t    compile 'com.google.guava:guava:22.0-android'\n\n\tshould look like\n\n\tdependencies {\n\t    compile 'com.facebook.react:react-native:+'\n\t    compile 'com.google.guava:guava:22.0-android'\n\t}\n\nelse do this\n\nOpen Android studio and open android project you will see \"react-native-nfc-module\" module \n        --\u003e add \"File dependency\" in Module Settings --\u003e choose \"gauvalib.jar\"\n        \n        ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashinga48%2Freact-native-nfc-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashinga48%2Freact-native-nfc-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashinga48%2Freact-native-nfc-module/lists"}