{"id":20283163,"url":"https://github.com/bsonntag/react-device-orientation","last_synced_at":"2025-04-11T08:21:15.920Z","repository":{"id":34502569,"uuid":"138649080","full_name":"bsonntag/react-device-orientation","owner":"bsonntag","description":"A react wrapper for device orientation events.","archived":false,"fork":false,"pushed_at":"2023-10-19T17:18:28.000Z","size":374,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T05:51:16.667Z","etag":null,"topics":["component","device-orientation","react"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bsonntag.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":"2018-06-25T20:54:50.000Z","updated_at":"2023-03-10T09:31:41.000Z","dependencies_parsed_at":"2023-01-15T07:31:14.103Z","dependency_job_id":null,"html_url":"https://github.com/bsonntag/react-device-orientation","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsonntag%2Freact-device-orientation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsonntag%2Freact-device-orientation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsonntag%2Freact-device-orientation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsonntag%2Freact-device-orientation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsonntag","download_url":"https://codeload.github.com/bsonntag/react-device-orientation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360906,"owners_count":21090780,"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":["component","device-orientation","react"],"created_at":"2024-11-14T14:13:30.172Z","updated_at":"2025-04-11T08:21:15.902Z","avatar_url":"https://github.com/bsonntag.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-device-orientation\n\n\u003e A react wrapper for device orientation events.\n\n## Installation\n\nUsing npm:\n\n```sh\n$ npm install --save react-device-orientation\n```\n\nUsing yarn:\n\n```sh\n$ yarn add react-device-orientation\n```\n\n## Example\n\n```js\nimport DeviceOrientation from 'react-device-orientation';\nimport React from 'react';\n\nconst App = () =\u003e (\n  \u003cDeviceOrientation\u003e\n    {({ absolute, alpha, beta, gamma }) =\u003e (\n      \u003cdiv\u003e\n        {`Absolute: ${absolute}`}\n        {`Alpha: ${alpha}`}\n        {`Beta: ${beta}`}\n        {`Gamma: ${gamma}`}\n      \u003c/div\u003e\n    )}\n  \u003c/DeviceOrientation\u003e\n);\n```\n\n## Contributing\n\nPlease feel free to submit any issues or pull requests.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsonntag%2Freact-device-orientation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsonntag%2Freact-device-orientation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsonntag%2Freact-device-orientation/lists"}