🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-easyfullscreen

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-easyfullscreen

Component that performs fullscreen in DOM Elements

1.1.2
latest
Source
npm
Version published
Weekly downloads
283
-22.47%
Maintainers
1
Weekly downloads
 
Created
Source

React FullScreen

npm versionLicense: MITNode.js CINetlify StatusLanguage grade: JavaScript

Component that performs fullscreen in DOM Elements

Installation

npm i react-easyfullscreen
// OR
yarn add react-easyfullscreen

Local demo:

git clone https://github.com/andrelmlins/react-fullscreen.git
cd react-fullscreen
npm install && npm run start

Examples

import React from 'react';
import { render } from 'react-dom';
import ReactFullscreen from 'react-easyfullscreen';

const App = () => (
  <ReactFullscreen>
    {({ ref, onRequest, onExit }) => (
      <div
        ref={ref}
        style={{ backgroundColor: 'red', width: 120, height: 120 }}
      >
        <button onClick={() => onRequest()}>FullScreen</button>
        <button onClick={() => onExit()}>Screen</button>
      </div>
    )}
  </ReactFullscreen>
);

render(<App />, document.getElementById('root'));

Properties

Raw component props (before transform):

PropTypeDescription
onChangefuncCall in change
onErrorfuncCall in error

Children Function Properties

PropTypeDescription
refobjectRef dom element
isEnabledboolIf it's possible fullscreen
onTogglefuncCall for fullscreen toggle
onExitfuncCall for fullscreen exit
onRequestfuncCall for fullscreen enter

Browsers Support

You can see the list of supported browsers here

Browsers support

NPM Statistics

Download stats for this NPM package

NPM

License

React FullScreen is open source software licensed as MIT.

Keywords

react

FAQs

Package last updated on 26 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts