{"id":4836,"url":"https://github.com/lfkwtz/react-native-ruler","last_synced_at":"2025-04-13T21:52:25.104Z","repository":{"id":33917900,"uuid":"163589161","full_name":"lfkwtz/react-native-ruler","owner":"lfkwtz","description":"📏 A devtool for measuring pixel dimensions on your React Native screens","archived":false,"fork":false,"pushed_at":"2023-01-03T22:35:15.000Z","size":2557,"stargazers_count":34,"open_issues_count":12,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T05:34:48.192Z","etag":null,"topics":["devtools","expo","measure","react","react-native","ruler"],"latest_commit_sha":null,"homepage":"","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/lfkwtz.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-12-30T13:25:40.000Z","updated_at":"2023-06-09T08:48:30.000Z","dependencies_parsed_at":"2023-01-15T03:30:40.069Z","dependency_job_id":null,"html_url":"https://github.com/lfkwtz/react-native-ruler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfkwtz%2Freact-native-ruler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfkwtz%2Freact-native-ruler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfkwtz%2Freact-native-ruler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfkwtz%2Freact-native-ruler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfkwtz","download_url":"https://codeload.github.com/lfkwtz/react-native-ruler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788867,"owners_count":21161726,"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":["devtools","expo","measure","react","react-native","ruler"],"created_at":"2024-01-05T20:17:25.674Z","updated_at":"2025-04-13T21:52:25.082Z","avatar_url":"https://github.com/lfkwtz.png","language":"JavaScript","funding_links":[],"categories":["Utilities"],"sub_categories":["Other Platforms"],"readme":"# react-native-ruler\n\n[![npm version](https://badge.fury.io/js/react-native-ruler.svg)](https://badge.fury.io/js/react-native-ruler)\n\n📏 A devtool for measuring pixel dimensions on your React Native screens\n\n![iOS Example](./demo.gif)\n\nThis is a proof of concept I threw together on a flight. Eventual plans are to integrate within the devtools menu, support rotating the device, allow the bars to be on any of the 4 sides of the device, etc..\n\nHappy to take PRs or suggestions.\n\n## Getting Started\n\n### Installing\n\n`npm install react-native-ruler`\n\n### Usage\n\n```js\n// first, import the component\nimport { RNRuler } from 'react-native-ruler';\n\n// then drop it on any screen in your app (or in the root)\n\u003cRNRuler /\u003e;\n```\n\n-   Tap the bottom right corner of the ruler (or two-finger tap the bar) to swap between axis\n\n## License\n\nreact-native-ruler is [MIT licensed](https://github.com/lfkwtz/react-native-ruler/tree/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfkwtz%2Freact-native-ruler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfkwtz%2Freact-native-ruler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfkwtz%2Freact-native-ruler/lists"}