{"id":18389333,"url":"https://github.com/rightpoint/react-native-touch-sensor","last_synced_at":"2025-04-12T06:28:51.759Z","repository":{"id":143418235,"uuid":"92438829","full_name":"Rightpoint/react-native-touch-sensor","owner":"Rightpoint","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-05T12:23:03.000Z","size":1146,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-16T00:48:12.738Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rightpoint.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-25T19:49:18.000Z","updated_at":"2017-07-12T17:47:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"60cfd90a-def4-4d63-bb36-6b543464ddf7","html_url":"https://github.com/Rightpoint/react-native-touch-sensor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Freact-native-touch-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Freact-native-touch-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Freact-native-touch-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Freact-native-touch-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rightpoint","download_url":"https://codeload.github.com/Rightpoint/react-native-touch-sensor/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248527914,"owners_count":21119179,"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","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-11-06T01:42:40.187Z","updated_at":"2025-04-12T06:28:51.740Z","avatar_url":"https://github.com/Rightpoint.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-touch-sensor\n\nBridging for accesing the Touch Sensor on both iOS and Android using TouchID and Android Fingerprint\n\n# Installation\n\n`npm install -s react-native-touch-sensor`\n`react-native link react-native-touch-sensor`\n\n# Android Setup\n\nBe sure to add the Fingerprint permission to your `AndroidManaifest.xml` file\n\n`\u003cuses-permission android:name=\"android.permission.USE_FINGERPRINT\" /\u003e`\n\nCurrently `react-native-touch-sensor` requires Android sdk 23 to work.  Update this in your `app.gradle` file\n\n# Example\n```\nimport React, { Component } from 'react'\nimport { View, Text, Button } from 'react-native'\n\nimport Touch from 'react-native-touch-sensor'\n\nexport default class TouchExample extends Component {\n  \n\n    _isSupported() {\n        Touch.isSupported()\n            .then( () =\u003e alert('Android fingerprint supported'))\n            .catch( (error) =\u003e alert(`unsupported: ${error}`))\n    }\n    _authenticatePressed() {\n        Touch.authenticate(\"To test out the app\")\n            .then( () =\u003e alert('authenticated') )\n            .catch( (error) =\u003e alert(`Failed: ${error}`) )\n    }\n\n    render() {\n        return (\n            \u003cView\u003e\n                \u003cText\u003eCheck to see if all conditions are met to use Fingerprint\u003c/Text\u003e\n                \u003cButton \n                    title=\"IsSupported()\"\n                    onPress={() =\u003e this._isSupported()}\n                    /\u003e\n                \u003cText\u003eBegins Authentication process\u003c/Text\u003e\n                \u003cButton \n                    title=\"Authenticate()\"\n                    onPress={() =\u003e this._authenticatePressed()}\n                    /\u003e\n            \u003c/View\u003e\n        );\n    }\n}\n\n```\n\n# Reference:\n    TouchID: https://github.com/naoufal/react-native-touch-id\n    AndroidFingerprint: https://github.com/googlesamples/android-FingerprintDialog\n                        https://github.com/jariz/react-native-fingerprint-android\n                        https://material.io/guidelines/patterns/fingerprint.html#fingerprint-enrollment\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frightpoint%2Freact-native-touch-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frightpoint%2Freact-native-touch-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frightpoint%2Freact-native-touch-sensor/lists"}