Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
364
decreased by-22.88%
Maintainers
1
Weekly downloads
 
Created
Source

React FullScreen

npm versionLicense: MITBuild StatusDependenciesNetlify 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/example
yarn install && yarn start

Examples

import React, { PureComponent } from 'react';
import { render } from 'react-dom';
import ReactFullscreeen from 'react-easyfullscreen';

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

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

Properties

Raw component props (before transform):

PropTypeDescription
onChangefuncCall in change
onErrorfuncCall in error

Keywords

FAQs

Package last updated on 01 Sep 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc