{"id":21540033,"url":"https://github.com/robinpowered/react-native-audio-jack","last_synced_at":"2025-04-10T03:26:42.018Z","repository":{"id":152881166,"uuid":"116055269","full_name":"robinpowered/react-native-audio-jack","owner":"robinpowered","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-23T16:17:30.000Z","size":154,"stargazers_count":10,"open_issues_count":1,"forks_count":12,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-24T04:43:40.152Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinpowered.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-02T20:41:44.000Z","updated_at":"2024-05-24T14:57:29.000Z","dependencies_parsed_at":"2024-01-22T22:51:38.263Z","dependency_job_id":null,"html_url":"https://github.com/robinpowered/react-native-audio-jack","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-audio-jack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-audio-jack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-audio-jack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinpowered%2Freact-native-audio-jack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinpowered","download_url":"https://codeload.github.com/robinpowered/react-native-audio-jack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248150065,"owners_count":21055851,"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-24T04:17:02.472Z","updated_at":"2025-04-10T03:26:41.991Z","avatar_url":"https://github.com/robinpowered.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-audio-jack\n\n## Getting started\n\n`$ npm install react-native-audio-jack --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-audio-jack`\n\n### Important Installation Step For Android\nThe line of code below should be added to `AndroidManifest.xml` for the audio jack listener to work.\n\n```xml\n\u003cuses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\" /\u003e\n```\n\n## Usage\n```javascript\nimport AudioJackManager from 'react-native-audio-jack';\n\n// Determine if audio jack is plugged in\nAudioJackManager.isPluggedIn().then(isPluggedIn =\u003e console.log(isPluggedIn));\n\n// Listener to listen for change in audio jack status\nvar audioJackListener = AudioJackManager.addListener(({isPluggedIn}) =\u003e console.log(isPluggedIn));\n\n// Later on.... (when component unmounts etc)\naudioJackListener.remove();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinpowered%2Freact-native-audio-jack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinpowered%2Freact-native-audio-jack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinpowered%2Freact-native-audio-jack/lists"}