{"id":17677434,"url":"https://github.com/jskits/react-native-px2dp","last_synced_at":"2026-06-19T14:01:22.485Z","repository":{"id":57339391,"uuid":"88592287","full_name":"unadlib/react-native-px2dp","owner":"unadlib","description":"Pixels convert to density-independent pixels.","archived":false,"fork":false,"pushed_at":"2017-04-20T03:15:41.000Z","size":4,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:17:56.237Z","etag":null,"topics":["react-native"],"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/unadlib.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":"2017-04-18T06:54:55.000Z","updated_at":"2024-05-10T21:57:09.000Z","dependencies_parsed_at":"2022-09-16T07:50:47.950Z","dependency_job_id":null,"html_url":"https://github.com/unadlib/react-native-px2dp","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/unadlib%2Freact-native-px2dp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unadlib%2Freact-native-px2dp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unadlib%2Freact-native-px2dp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unadlib%2Freact-native-px2dp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unadlib","download_url":"https://codeload.github.com/unadlib/react-native-px2dp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249942123,"owners_count":21348967,"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":["react-native"],"created_at":"2024-10-24T07:28:41.402Z","updated_at":"2026-06-19T14:01:18.640Z","avatar_url":"https://github.com/unadlib.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-px2dp\npixels convert to density-independent pixels.\n\n### Default UI Size\nDefault UI design size is based on 1280x720.\n\n### Installation\n```bash\nnpm install react-native-px2dp --save\n```\n\n### Usage\n```javascript\nimport px,{px2dp} from 'react-native-px2dp';\nconst style = {\n    width: 720 * px,//UI height size is 1280.\n}\nconst otherStyle = {\n    width: 720 * px2dp(480),//UI height size is 960. \n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjskits%2Freact-native-px2dp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjskits%2Freact-native-px2dp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjskits%2Freact-native-px2dp/lists"}