Skip to content

Universal polyfill for match media API using Expo APIs on mobile

License

Notifications You must be signed in to change notification settings

lalitshahi/match-media

 
 

Repository files navigation

👋 Welcome to
@expo/match-media

Universal polyfill for match media API using Expo APIs on mobile

GitHub Actions status


TL;DR: Demo

🏁 Setup

Install @expo/match-media in your project.

yarn add @expo/match-media

⚽️ Usage

Import the polyfill at the top of your file before using the window.matchMedia API.

import '@expo/match-media';
// use the match media API

What this does

  • In the browser: Nothing
  • In React Native apps: Polyfills the matchMedia API so you can use awesome libraries like react-responsive.

License

The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.


License: MIT

About

Universal polyfill for match media API using Expo APIs on mobile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 44.3%
  • JavaScript 29.6%
  • Shell 26.1%