All Projects → andrelmlins → react-fullscreen

andrelmlins / react-fullscreen

Licence: MIT License
Component that performs fullscreen in DOM Elements

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-fullscreen

Zhpopupcontroller
Help you pop up custom views easily. and support pop-up animation, layout position, mask effect and gesture interaction etc.
Stars: ✭ 1,481 (+8127.78%)
Mutual labels:  fullscreen
SwiftyBase
SwiftyBase - A Swift library for Create Project in iOS ( Base Project)
Stars: ✭ 33 (+83.33%)
Mutual labels:  fullscreen
LibQtScreen
Qt library for making directx and opengl screenshots.
Stars: ✭ 43 (+138.89%)
Mutual labels:  fullscreen
Angular Fullpage
Official Angular wrapper for fullPage.js https://alvarotrigo.com/angular-fullpage/
Stars: ✭ 131 (+627.78%)
Mutual labels:  fullscreen
Glsl Godrays
This module implements a volumetric light scattering effect(godrays)
Stars: ✭ 155 (+761.11%)
Mutual labels:  fullscreen
ezdmb
A dead-simple digital menu board display and configuration, written in Python.
Stars: ✭ 17 (-5.56%)
Mutual labels:  fullscreen
Fullscreen
Fullscreen API Standard
Stars: ✭ 78 (+333.33%)
Mutual labels:  fullscreen
LXFProtocolTool
由Swift中协议方式实现功能的实用工具库【Refreshable、EmptyDataSetable 支持 Rx 】
Stars: ✭ 101 (+461.11%)
Mutual labels:  fullscreen
Snowflakes
❄️ Snowflakes in JavaScript
Stars: ✭ 170 (+844.44%)
Mutual labels:  fullscreen
nsplayer
A web player with shakaplayer & hls.js both supported
Stars: ✭ 23 (+27.78%)
Mutual labels:  fullscreen
Postcss Viewport Height Correction
PostCSS plugin to solve the popular problem when 100vh doesn’t fit the mobile browser screen.
Stars: ✭ 137 (+661.11%)
Mutual labels:  fullscreen
React Intense
A React component for viewing large images up close 🔍
Stars: ✭ 152 (+744.44%)
Mutual labels:  fullscreen
chrome-extension-aspectratio219
🖥️ Fit the screen properly in fullscreen mode on monitor ultrawide with 21:9 aspect ratio (Netflix, Youtube, PrimeVideo, Crunchyroll)
Stars: ✭ 28 (+55.56%)
Mutual labels:  fullscreen
Vue Fullpage.js
Official Vue.js wrapper for fullPage.js http://alvarotrigo.com/vue-fullpage/
Stars: ✭ 1,626 (+8933.33%)
Mutual labels:  fullscreen
h5-video-player
Browser full-screen H5 video player.
Stars: ✭ 14 (-22.22%)
Mutual labels:  fullscreen
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (+338.89%)
Mutual labels:  fullscreen
fullscreenizer
Source Code of Fullscreenizer
Stars: ✭ 56 (+211.11%)
Mutual labels:  fullscreen
wangEditor-fullscreen-plugin
富文本编辑器wangEditor的全屏插件
Stars: ✭ 45 (+150%)
Mutual labels:  fullscreen
Flurry-WebGL
WebGL port of Flurry screensaver
Stars: ✭ 58 (+222.22%)
Mutual labels:  fullscreen
fullscreen-card
Make your Home Assistant browser fullscreen with one tap.
Stars: ✭ 23 (+27.78%)
Mutual labels:  fullscreen

React FullScreen

npm versionLicense: MITBuild StatusNetlify StatusLanguage grade: JavaScript

Component that performs fullscreen in DOM Elements

Installation

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

Demo Link

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):

Prop Type Description
onChange func Call in change
onError func Call in error

Children Function Properties

Prop Type Description
ref object Ref dom element
isEnabled bool If it's possible fullscreen
onToggle func Call for fullscreen toggle
onExit func Call for fullscreen exit
onRequest func Call 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].