useMediaQuery
Evaluate a CSS media query on web and width/height queries on native, updating as the viewport changes.
Web: subscribes to a CSS media query via
window.matchMedia. Native: parses width/height queries ((min-width: 640px), (max-height: 480px)) and watches Dimensions.addEventListener('change'). Unparseable queries on native return the supplied initialValue.Platform Blocks
A comprehensive React Native design system with components that work seamlessly across iOS, Android, and Web.
Quick Links
Documentation
Resources