Skip to content

React component that fullscreens a child component. Responds to browser resizes.

License

Notifications You must be signed in to change notification settings

ThomWright/react-fullscreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 2, 2015
54bedcc · Sep 2, 2015

History

18 Commits
Jul 17, 2015
Sep 2, 2015
Jul 17, 2015
Jul 17, 2015
Jul 17, 2015
Jul 17, 2015
Jul 17, 2015
Jul 17, 2015
Jul 17, 2015
Jul 17, 2015
Jul 18, 2015
Sep 2, 2015
Jul 17, 2015

Repository files navigation

react-fullscreen

Build Status npm David David

React component that fullscreens a child component. Responds to browser resizes.

Example

import FullScreen from 'react-fullscreen';
import MyChildComponent from './MyChildComponent';

const rootInstance = React.render(
  <FullScreen>
    <MyChildComponent />
  </FullScreen>,
  document.getElementById('someID')
);
import React from 'react';

export default class MyChildComponent extends React.Component {
  render() {
    return <SomeJSX style={{
      width: this.props.width,
      height: this.props.height
    }}/>;
  }
}

MyChildComponent.propTypes = {
  width: React.PropTypes.number,
  height: React.PropTypes.number
};

About

React component that fullscreens a child component. Responds to browser resizes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published