{"id":18488512,"url":"https://github.com/expo/match-media","last_synced_at":"2025-04-05T10:08:15.836Z","repository":{"id":36056270,"uuid":"221155875","full_name":"expo/match-media","owner":"expo","description":"Universal polyfill for match media API using Expo APIs on mobile","archived":false,"fork":false,"pushed_at":"2023-03-04T05:10:13.000Z","size":2630,"stargazers_count":139,"open_issues_count":15,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T09:09:53.661Z","etag":null,"topics":["breakpoint","css-in-js","expo","polyfill","react","react-native","react-native-web","responsive"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/expo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-12T07:25:30.000Z","updated_at":"2025-02-08T09:13:58.000Z","dependencies_parsed_at":"2024-01-26T21:03:09.553Z","dependency_job_id":"392dce17-c2b9-4d16-afa4-5dfce67bcae6","html_url":"https://github.com/expo/match-media","commit_stats":{"total_commits":39,"total_committers":12,"mean_commits":3.25,"dds":0.641025641025641,"last_synced_commit":"bf6e058757360da8ecd47f42a658590d5402e34c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expo%2Fmatch-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expo%2Fmatch-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expo%2Fmatch-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expo%2Fmatch-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/expo","download_url":"https://codeload.github.com/expo/match-media/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318744,"owners_count":20919484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["breakpoint","css-in-js","expo","polyfill","react","react-native","react-native-web","responsive"],"created_at":"2024-11-06T12:51:50.760Z","updated_at":"2025-04-05T10:08:15.816Z","avatar_url":"https://github.com/expo.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003c!-- Title --\u003e\n\u003ch1 align=\"center\"\u003e\n👋 Welcome to \u003cbr\u003e\u003ccode\u003e@expo/match-media\u003c/code\u003e\n\u003c/h1\u003e\n\n\u003c!-- Header --\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eUniversal polyfill for match media API using Expo APIs on mobile\u003c/b\u003e\n    \u003cbr/\u003e\n    \u003cbr/\u003e\n    \u003ca aria-label=\"Well tested CSS Library\" href=\"https://github.com/expo/match-media/actions\"\u003e\n      \u003cimg align=\"center\" alt=\"GitHub Actions status\" src=\"https://github.com/expo/match-media/workflows/Check%20Universal%20Module/badge.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003c!-- Body --\u003e\n\nTL;DR: [Demo](App.js)\n\n## 🏁 Setup\n\nInstall `@expo/match-media` and `expo-screen-orientation` in your project.\n\n```sh\nnpx expo install @expo/match-media expo-screen-orientation\n```\n\n## ⚽️ Usage\n\nImport the polyfill at the top of your file before using the [`window.matchMedia` API][match-media].\n\n```js\nimport '@expo/match-media';\n// use the match media API\n```\n\n**What this does**\n\n- In the browser: Nothing\n- In React Native apps: Polyfills the [`matchMedia` API][match-media] so you can use awesome libraries like `react-responsive`.\n\n## License\n\nThe Expo source code is made available under the [MIT license](LICENSE). Some of the dependencies are licensed differently, with the BSD license, for example.\n\n\u003c!-- Footer --\u003e\n\n---\n\n\u003cp\u003e\n    \u003ca aria-label=\"sponsored by expo\" href=\"http://expo.io\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Sponsored_by-Expo-4630EB.svg?style=for-the-badge\u0026logo=EXPO\u0026labelColor=000\u0026logoColor=fff\" target=\"_blank\" /\u003e\n    \u003c/a\u003e\n    \u003ca aria-label=\"@expo/match-media is free to use\" href=\"/LICENSE\" target=\"_blank\"\u003e\n        \u003cimg align=\"right\" alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-success.svg?style=for-the-badge\u0026color=33CC12\" target=\"_blank\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n[match-media]: https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpo%2Fmatch-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpo%2Fmatch-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpo%2Fmatch-media/lists"}