{"id":19623863,"url":"https://github.com/appleple/react-device-mode","last_synced_at":"2025-10-27T22:16:19.458Z","repository":{"id":44317605,"uuid":"148440525","full_name":"appleple/react-device-mode","owner":"appleple","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T07:46:58.000Z","size":1814,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T02:44:15.620Z","etag":null,"topics":["component","npm","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/appleple.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-12T07:34:17.000Z","updated_at":"2024-07-22T09:58:03.292Z","dependencies_parsed_at":"2024-04-11T07:33:54.023Z","dependency_job_id":"f608b5b0-4ee4-4cf6-8829-a62ac5410c64","html_url":"https://github.com/appleple/react-device-mode","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Freact-device-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Freact-device-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Freact-device-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Freact-device-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleple","download_url":"https://codeload.github.com/appleple/react-device-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224096563,"owners_count":17255115,"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","npm","react"],"created_at":"2024-11-11T11:35:53.624Z","updated_at":"2025-10-27T22:16:19.337Z","avatar_url":"https://github.com/appleple.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-device-mode\n\n![](./screenshot.png)\n\n# Install\n\n```sh\n$ npm install react-device-mode --save\n```\n\n# Usage\n\n```js\n\u003cReactDeviceMode\n  src={src}\n  i18n={{ fitWindow: '画面サイズにあわせる' }}\n  onClose={() =\u003e {}}\n  devices={[\n    {\n      name: 'PC',\n      ua: 'none',\n      width: window.innerWidth - 100,\n      height: window.innerHeight - 300,\n      resizable: true\n    },\n    {\n      name: 'iPhone 6/7/8',\n      ua: 'Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',\n      width: 375,\n      height: 667,\n      resizable: false\n    },\n  ]}\n/\u003e);\n```\n\n# Options\n|Name|Default|Description|\n| ------ |---|---|\n| src | - | Set the URL of the page you want to display. |\n| defaultDevice | - | First, set the device to be displayed. |\n| devices | - | Set the device information that can be displayed. |\n| hasHstoryDevice | true | Saves the most recently used device method　in local storage. |\n| historyDeviceKey | 'reactDeviceModeHistory' | Set the local storage key. |\n| hasCloseBtn | true | Sets the display of the close button. |\n| isLoading | false | Set loading display. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Freact-device-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleple%2Freact-device-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Freact-device-mode/lists"}