1.6K Followers
·
Follow

The easiest way to create media queries universally!

TL;DR: Demo Component

Image for post
Image for post

A big open question we’ve had while developing Expo web is how would someone go about creating media queries.

A media query is a style rule that can be toggled based on device conditions. They’re a critical part of easily building a responsive layout that works on many different screen sizes or orientations.

Because there are already so many incredible libraries out there for using media queries with React I figured the best approach for a universal system would be to polyfill native and reuse the existing eco-system. …

About

Evan Bacon

React Native, Expo for Web, Bluetooth, React Native for Web, Firebase 👨🏻‍💻 Lego Master Builder

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store