{"id":15069958,"url":"https://github.com/itswendell/emotion-native-extended","last_synced_at":"2025-06-14T06:01:39.063Z","repository":{"id":38173737,"uuid":"253222353","full_name":"ItsWendell/emotion-native-extended","owner":"ItsWendell","description":"Better styling support for Emotion (React Native): Media queries, relative units, percents, operations and more...","archived":false,"fork":false,"pushed_at":"2023-01-06T03:30:28.000Z","size":4730,"stargazers_count":43,"open_issues_count":35,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T17:32:52.660Z","etag":null,"topics":["css-in-js","css3","emotion","expo","media-queries","react","react-native","react-native-web","responsive","styled-components","stylesheet"],"latest_commit_sha":null,"homepage":"","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/ItsWendell.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}},"created_at":"2020-04-05T11:49:02.000Z","updated_at":"2024-03-01T15:34:30.000Z","dependencies_parsed_at":"2023-02-05T05:31:47.596Z","dependency_job_id":null,"html_url":"https://github.com/ItsWendell/emotion-native-extended","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ItsWendell/emotion-native-extended","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsWendell%2Femotion-native-extended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsWendell%2Femotion-native-extended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsWendell%2Femotion-native-extended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsWendell%2Femotion-native-extended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsWendell","download_url":"https://codeload.github.com/ItsWendell/emotion-native-extended/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsWendell%2Femotion-native-extended/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768514,"owners_count":22908228,"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":["css-in-js","css3","emotion","expo","media-queries","react","react-native","react-native-web","responsive","styled-components","stylesheet"],"created_at":"2024-09-25T01:45:55.560Z","updated_at":"2025-06-14T06:01:39.026Z","avatar_url":"https://github.com/ItsWendell.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emotion Native Extended\n\n![npm](https://img.shields.io/npm/v/emotion-native-extended?style=flat-square)\n\nThis is a drop-in replacement optimized for React Native for the `styled` function / object coming from [Emotion](https://github.com/emotion-js/emotion). It extends the native styhesheets with [React Native Extended Stylesheet](https://github.com/vitalets/react-native-extended-stylesheet), adds support for media-queries, variables, dynamic themes, relative units, percents, math operations, scaling and a lot more CSS styling features.\n\nThis library also adds support for real-time responsive styling, in many cases using media queries on native or other methods this could been a chore todo.\n\n## Getting Started\n\n1. `npm install emotion-native-extended@next`\n2. Replace your existing `import styled from \"@emotion/native\";` with `import styled from \"emotion-native-extended\"`\n3. See the docs for [React Native Extended Stylesheet](https://github.com/vitalets/react-native-extended-stylesheet) and [Emotion](https://github.com/emotion-js/emotion) for the supported styling properties.\n\n## Styled System\n\nI started this project since I like using [Styled System](https://github.com/styled-system/styled-system) for rapid UI development using style props. It has support for React Native but it doesn't work for it's responsive features since media queries don't work. [React Native Extended Stylesheet](https://github.com/vitalets/react-native-extended-stylesheet) add's this functionality.\n\n### Quick note\n\nThere is a small script in this code that replaces all `@media screen and` media queries with regular `@media` media queries since these are not supported by Extended Stylesheet and Styled System is using them as their media queries. Styled System doesn't support custimization for media queries yet. See / follow [Issue #1113](https://github.com/styled-system/styled-system/issues/1113) \u0026 [Pull Request #1113](https://github.com/styled-system/styled-system/pull/1133).\n\n## Example\n\nThe example contains a [Expo](https://expo.io/) project with example usage with React Native for Web, Android and iOS with the use of the following libaries: Styled System / Emotion / Native Kitten.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitswendell%2Femotion-native-extended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitswendell%2Femotion-native-extended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitswendell%2Femotion-native-extended/lists"}