Evan Bacon b4f0c02a6c Clean up
2020-06-30 14:36:26 -07:00
init 💙
2019-11-11 23:26:31 -08:00
init 💙
2019-11-11 23:26:31 -08:00
2020-06-30 14:36:26 -07:00
init 💙
2019-11-11 23:26:31 -08:00
2020-06-30 13:44:19 -07:00
init 💙
2019-11-11 23:26:31 -08:00
2019-11-11 23:41:42 -08:00
2020-06-30 13:44:19 -07:00
init 💙
2019-11-11 23:26:31 -08:00
init 💙
2019-11-11 23:26:31 -08:00
2020-06-30 14:36:26 -07:00
2019-11-11 23:42:25 -08:00
2020-06-30 14:36:26 -07:00
2020-06-30 14:36:26 -07:00

👋 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

If you're using a React Native app that wasn't bootstrapped with the expo-cli then you'll need to install and link the expo module to use this package.

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

Description
No description provided
Readme MIT 481 KiB
Languages
TypeScript 45.1%
JavaScript 28.4%
Shell 26.5%