{"id":4593,"url":"https://github.com/frostney/react-native-bluetooth-state","last_synced_at":"2025-04-14T20:31:09.858Z","repository":{"id":35103007,"uuid":"39278479","full_name":"frostney/react-native-bluetooth-state","owner":"frostney","description":":signal_strength: Answering the question of \"Is my bluetooth on?\" in React Native","archived":false,"fork":false,"pushed_at":"2019-01-30T22:24:55.000Z","size":101,"stargazers_count":75,"open_issues_count":5,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T09:01:40.515Z","etag":null,"topics":["bluetooth","react-native"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"eduard-x/cnc-qt","license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frostney.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":"2015-07-17T22:45:37.000Z","updated_at":"2025-02-27T10:27:08.000Z","dependencies_parsed_at":"2022-08-18T01:40:48.808Z","dependency_job_id":null,"html_url":"https://github.com/frostney/react-native-bluetooth-state","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostney%2Freact-native-bluetooth-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostney%2Freact-native-bluetooth-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostney%2Freact-native-bluetooth-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostney%2Freact-native-bluetooth-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostney","download_url":"https://codeload.github.com/frostney/react-native-bluetooth-state/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507617,"owners_count":21115642,"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":["bluetooth","react-native"],"created_at":"2024-01-05T20:17:17.347Z","updated_at":"2025-04-14T20:31:09.284Z","avatar_url":"https://github.com/frostney.png","language":"Objective-C","readme":"# react-native-bluetooth-state\nAnswering the question of \"Is my bluetooth on?\" in React Native\n\nThis module only works for iOS at the moment.\n\n## Installation\n\n```\n$ npm install react-native-bluetooth-state\n```\n\nReact Native \u003e=0.7.0 is needed.\n\nYou then need to add the Objective-C part to your XCode project. Drag `RNBluetoothState.xcodeproj` from the `node_modules/react-native-bluetooth-state` folder into your XCode project. Click on the your project in XCode, goto Build Phases then Link Binary With Libraries and add `libRNBluetoothState.a` and `CoreBluetooth.framework`.\n\n(Alternatively you can use RNPM to link the library, but in any case you need to link against `CoreBluetooth.framework`.)\n\n## Usage\n\n```javascript\nimport BluetoothState from 'react-native-bluetooth-state';\n\nBluetoothState.subscribe(bluetoothState =\u003e {\n  // bluetoothState can either be \"on\", \"off\", \"unknown\", \"unauthorized\", \"resetting\" or \"unsupported‚\"\n});\n\n// Initialize needs to be called otherwise we don't get the initial state\nBluetoothState.initialize();\n```\n\n## License\nUnlicense or MIT. Whatever fits your purpose best.\n","funding_links":[],"categories":["Components"],"sub_categories":["System"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostney%2Freact-native-bluetooth-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostney%2Freact-native-bluetooth-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostney%2Freact-native-bluetooth-state/lists"}