{"id":16193753,"url":"https://github.com/chilijung/react-native-device-size","last_synced_at":"2025-03-19T04:30:40.789Z","repository":{"id":86704712,"uuid":"99557488","full_name":"chilijung/react-native-device-size","owner":"chilijung","description":"classify mobile device size in react-native","archived":false,"fork":false,"pushed_at":"2018-03-03T14:48:30.000Z","size":63,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T15:18:11.228Z","etag":null,"topics":["devices","dimensions","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chilijung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T08:54:51.000Z","updated_at":"2021-02-02T00:47:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c0f1d04-e7ce-4e4e-a437-c00be34fd46a","html_url":"https://github.com/chilijung/react-native-device-size","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/chilijung%2Freact-native-device-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-device-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-device-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-device-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chilijung","download_url":"https://codeload.github.com/chilijung/react-native-device-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243968507,"owners_count":20376406,"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":["devices","dimensions","react-native"],"created_at":"2024-10-10T08:16:28.882Z","updated_at":"2025-03-19T04:30:40.784Z","avatar_url":"https://github.com/chilijung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-device-size\n\n[![Build Status](https://travis-ci.org/Canner/react-native-device-size.svg?branch=master)](https://travis-ci.org/Canner/react-native-device-size)\n\nclassify mobile device size in react-native.\n\n## Usage\n\n```js\nimport deviceSize from 'react-native-device-size';\n\nconsole.log(deviceSize); // return one of xsmall, small, normal, large, xlarge\n```\n\n## Device size category\n\niOS and android use different standard to classify, iOS use iphone versions, and android use [official classification](https://developer.android.com/guide/practices/screens_support.html) .\n\nAccording to the documents:\n\n- xlarge screens are at least 960dp x 720dp\n- large screens are at least 640dp x 480dp\n- normal screens are at least 470dp x 320dp\n- small screens are at least 426dp x 320dp \n\n#### xsmall\n\n- iOS: iphone 4\n- android: less than 426dp x 320dp\n\n#### small\n\n- iOS: iphone 5\n- android: less than 470dp x 320dp\n\n#### normal\n\n- iOS: iphone 6\n- android: less than 640dp x 480dp\n\n#### large\n\n- iOS: iphone 6 plus\n- android: less than 960dp x 720dp\n\n#### xlarge\n\n- iOS: larger than iphone 6 plus\n- android: larger than 960dp x 720dp\n\n## Device Metric\n\nhttps://material.io/devices/\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Freact-native-device-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchilijung%2Freact-native-device-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Freact-native-device-size/lists"}