0.4.0 ā¢ Published 2 years ago
@expo/match-media v0.4.0
TL;DR: Demo
š Setup
Install @expo/match-media
and expo-screen-orientation
in your project.
npx expo install @expo/match-media expo-screen-orientation
ā½ļø 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 likereact-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.
0.4.0
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.0
3 years ago
0.0.0-beta.2
4 years ago
0.0.0-beta.1
4 years ago
0.0.0-alpha.5
4 years ago
0.0.0-alpha.4
4 years ago
0.0.0-alpha.2
4 years ago
0.0.0-alpha.1
4 years ago
0.0.0-alpha.0
4 years ago