{"id":4620,"url":"https://github.com/cristianszwarc/RNDeviceAngles","last_synced_at":"2025-08-04T01:32:47.855Z","repository":{"id":57336523,"uuid":"66119169","full_name":"cristianszwarc/RNDeviceAngles","owner":"cristianszwarc","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-17T22:13:26.000Z","size":168,"stargazers_count":14,"open_issues_count":2,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-05T00:52:24.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/cristianszwarc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-19T23:57:33.000Z","updated_at":"2021-11-29T12:36:14.000Z","dependencies_parsed_at":"2022-09-03T08:01:30.278Z","dependency_job_id":null,"html_url":"https://github.com/cristianszwarc/RNDeviceAngles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianszwarc%2FRNDeviceAngles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianszwarc%2FRNDeviceAngles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianszwarc%2FRNDeviceAngles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianszwarc%2FRNDeviceAngles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristianszwarc","download_url":"https://codeload.github.com/cristianszwarc/RNDeviceAngles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228219635,"owners_count":17887058,"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-01-05T20:17:18.162Z","updated_at":"2024-12-07T08:30:46.055Z","avatar_url":"https://github.com/cristianszwarc.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["System"],"readme":"# React Native - Device Angles\n\n-------------------------------\nGet rotation information (pitch, yaw, roll) - ios\n\n\n## Getting started\n\n`$ npm install react-native-device-angles --save`\n\nor \n\n`$ yarn add react-native-device-angles`\n\n### Mostly automatic installation ( react-native \u003c 0.60 )\n\n`$ react-native link react-native-device-angles`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-device-angles` and add `DeviceAngles.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libDeviceAngles.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n\n## Usage\n```javascript\nimport { DeviceEventEmitter } from 'react-native';\nimport DeviceAngles from 'react-native-device-angles';\n\nDeviceAngles.setDeviceMotionUpdateInterval(0.1);\n...\nDeviceAngles.startMotionUpdates();\n...\nDeviceEventEmitter.addListener('AnglesData', function (data) {\n  console.log(data.pitch);\n  console.log(data.roll);\n  console.log(data.yaw);\n});\n```\n\n**Log**\n0.1.0 updated import statement by srt0422\n0.1.2 Support for react-native 0.60+\n\n**ToDo**\nimprove this readme\n\n**Screens**\n\n![example](screens/example.png)\n\n**License**\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianszwarc%2FRNDeviceAngles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristianszwarc%2FRNDeviceAngles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianszwarc%2FRNDeviceAngles/lists"}