{"id":20631847,"url":"https://github.com/andrelmlins/react-fullscreen","last_synced_at":"2025-07-15T18:46:29.896Z","repository":{"id":35042964,"uuid":"195307097","full_name":"andrelmlins/react-fullscreen","owner":"andrelmlins","description":"Component that performs fullscreen in DOM Elements","archived":false,"fork":false,"pushed_at":"2022-12-10T21:25:02.000Z","size":2537,"stargazers_count":28,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T16:17:01.822Z","etag":null,"topics":["easyfullscreen","fullscreen","react","screenfull"],"latest_commit_sha":null,"homepage":"https://react-fullscreen.netlify.com/","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/andrelmlins.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":"2019-07-04T22:27:52.000Z","updated_at":"2025-02-28T13:09:02.000Z","dependencies_parsed_at":"2023-01-15T12:45:48.080Z","dependency_job_id":null,"html_url":"https://github.com/andrelmlins/react-fullscreen","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/andrelmlins/react-fullscreen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Freact-fullscreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Freact-fullscreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Freact-fullscreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Freact-fullscreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrelmlins","download_url":"https://codeload.github.com/andrelmlins/react-fullscreen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Freact-fullscreen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265451710,"owners_count":23767809,"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":["easyfullscreen","fullscreen","react","screenfull"],"created_at":"2024-11-16T14:13:55.399Z","updated_at":"2025-07-15T18:46:29.847Z","avatar_url":"https://github.com/andrelmlins.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React FullScreen\n\n[![npm version](https://badge.fury.io/js/react-easyfullscreen.svg)](https://www.npmjs.com/package/react-easyfullscreen) \u0026bull; [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/react-fullscreen/blob/master/LICENSE) \u0026bull; [![Node.js CI](https://github.com/andrelmlins/react-fullscreen/actions/workflows/nodejs.yml/badge.svg)](https://github.com/andrelmlins/react-fullscreen/actions/workflows/nodejs.yml) \u0026bull; [![Netlify Status](https://api.netlify.com/api/v1/badges/79ceb0f2-f703-4092-92aa-64d441c2e9c7/deploy-status)](https://app.netlify.com/sites/react-fullscreen/deploys) \u0026bull; [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/andrelmlins/react-fullscreen.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/andrelmlins/react-fullscreen/context:javascript)\n\nComponent that performs fullscreen in DOM Elements\n\n## Installation\n\n```\nnpm i react-easyfullscreen\n// OR\nyarn add react-easyfullscreen\n```\n\n## Demo [Link](https://react-fullscreen.netlify.com/)\n\nLocal demo:\n\n```\ngit clone https://github.com/andrelmlins/react-fullscreen.git\ncd react-fullscreen\nnpm install \u0026\u0026 npm run start\n```\n\n## Examples\n\n```jsx\nimport React from 'react';\nimport { render } from 'react-dom';\nimport ReactFullscreen from 'react-easyfullscreen';\n\nconst App = () =\u003e (\n  \u003cReactFullscreen\u003e\n    {({ ref, onRequest, onExit }) =\u003e (\n      \u003cdiv\n        ref={ref}\n        style={{ backgroundColor: 'red', width: 120, height: 120 }}\n      \u003e\n        \u003cbutton onClick={() =\u003e onRequest()}\u003eFullScreen\u003c/button\u003e\n        \u003cbutton onClick={() =\u003e onExit()}\u003eScreen\u003c/button\u003e\n      \u003c/div\u003e\n    )}\n  \u003c/ReactFullscreen\u003e\n);\n\nrender(\u003cApp /\u003e, document.getElementById('root'));\n```\n\n## Properties\n\nRaw component props (before transform):\n\n| Prop     | Type | Description    |\n| -------- | ---- | -------------- |\n| onChange | func | Call in change |\n| onError  | func | Call in error  |\n\n### Children Function Properties\n\n| Prop      | Type   | Description                 |\n| --------- | ------ | --------------------------- |\n| ref       | object | Ref dom element             |\n| isEnabled | bool   | If it's possible fullscreen |\n| onToggle  | func   | Call for fullscreen toggle  |\n| onExit    | func   | Call for fullscreen exit    |\n| onRequest | func   | Call for fullscreen enter   |\n\n## Browsers Support\n\nYou can see the list of supported browsers [here](https://caniuse.com/fullscreen)\n\n![Browsers support](assets/browser-support.png)\n\n## NPM Statistics\n\nDownload stats for this NPM package\n\n[![NPM](https://nodei.co/npm/react-easyfullscreen.png)](https://nodei.co/npm/react-easyfullscreen/)\n\n## License\n\nReact FullScreen is open source software [licensed as MIT](https://github.com/andrelmlins/react-fullscreen/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Freact-fullscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrelmlins%2Freact-fullscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Freact-fullscreen/lists"}