All Projects → stereobooster → mobile-safari-fullscreen

stereobooster / mobile-safari-fullscreen

Licence: MIT license
Fix for Mobile Safari fullscreen issue

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

mobile-safari-fullscreen

Fix for mobile Safari fullscreen issue


Build Status Code Coverage version downloads MIT License

All Contributors PRs Welcome Code of Conduct

Watch on GitHub Star on GitHub Tweet

The problem

There is long standing bug in Mobile Safari https://bugs.webkit.org/show_bug.cgi?id=153852.

This solution

This React component implements solution described in https://www.eventbrite.com/engineering/mobile-safari-why/ e.g. it always shows top and bottom bars in the Mobile Safari.

Table of Contents

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies:

npm install --save mobile-safari-fullscreen

Usage

import FullScreen from 'mobile-safari-fullscreen'
import styles from 'mobile-safari-fullscreen/index.module.css'

;<FullScreen classNames={styles} isOpen={isOpen}>
  <YourModalHere isOpen={isOpen} />
</FullScreen>

Inspiration

https://www.eventbrite.com/engineering/mobile-safari-why/

Other Solutions

I'm not aware of any, if you are please make a pull request and add it here!

Contributors

Thanks goes to these people (emoji key):


stereobooster

💻 📖 🚇 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

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].