{"id":21658666,"url":"https://github.com/mapaiva/react-native-usbserial","last_synced_at":"2025-07-17T21:31:25.704Z","repository":{"id":57341167,"uuid":"67357856","full_name":"mapaiva/react-native-usbserial","owner":"mapaiva","description":"A USB serial React Native bridge","archived":false,"fork":false,"pushed_at":"2017-08-23T20:44:35.000Z","size":24,"stargazers_count":58,"open_issues_count":9,"forks_count":35,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-13T18:48:46.476Z","etag":null,"topics":["react","react-module","usbserial"],"latest_commit_sha":null,"homepage":"","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/mapaiva.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":"2016-09-04T17:07:58.000Z","updated_at":"2024-11-07T13:19:47.000Z","dependencies_parsed_at":"2022-09-08T03:52:33.360Z","dependency_job_id":null,"html_url":"https://github.com/mapaiva/react-native-usbserial","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mapaiva/react-native-usbserial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapaiva%2Freact-native-usbserial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapaiva%2Freact-native-usbserial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapaiva%2Freact-native-usbserial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapaiva%2Freact-native-usbserial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapaiva","download_url":"https://codeload.github.com/mapaiva/react-native-usbserial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapaiva%2Freact-native-usbserial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265228228,"owners_count":23731068,"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":["react","react-module","usbserial"],"created_at":"2024-11-25T09:29:38.198Z","updated_at":"2025-07-17T21:31:25.404Z","avatar_url":"https://github.com/mapaiva.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# react-native-usbserial\n\nThis wrapper implementation is totally based on [usb-serial-for-android](https://github.com/mik3y/usb-serial-for-android). Thanks [mik3y](https://github.com/mik3y) for the awesome project.\n\n## Installation\n\n```\nnpm install react-native-usbserial --save\n```\n\n## Integrate module\n\nTo integrate `react-native-usbserial` with the rest of your react app just execute:\n```\nreact-native link react-native-usbserial\n```\n\n### Android\n\nTo integrate it with your android application you also need to add these following lines on your `android/app/build.gradle`:\n\n```gradle\nrepositories {\n        maven { url \"https://oss.sonatype.org/content/repositories/snapshots/\" }\n}\n```\n\n## Usage\n\n```javascript\nimport { UsbSerial} from 'react-native-usbserial';\n\nconst usbs = new UsbSerial();\n\nasync function getDeviceAsync() {\n\n    try {\n        const deviceList = await usbs.getDeviceListAsync();\n        const firstDevice = deviceList[0];\n        \n        console.log(firstDevice);\n\n        if (firstDevice) {\n            const usbSerialDevice = await usbs.openDeviceAsync(firstDevice);\n            \n            console.log(usbSerialDevice);\n        }\n    } catch (err) {\n        console.warn(err);\n    }\n}\n\ngetDeviceAsync();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapaiva%2Freact-native-usbserial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapaiva%2Freact-native-usbserial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapaiva%2Freact-native-usbserial/lists"}