{"id":14977446,"url":"https://github.com/styled-components/styled-components-native-code-mod","last_synced_at":"2025-10-19T11:30:35.882Z","repository":{"id":16416676,"uuid":"79902279","full_name":"styled-components/styled-components-native-code-mod","owner":"styled-components","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T01:37:05.000Z","size":928,"stargazers_count":28,"open_issues_count":11,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T14:58:15.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/styled-components.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-24T10:42:53.000Z","updated_at":"2023-06-16T18:53:39.000Z","dependencies_parsed_at":"2022-07-25T04:46:17.112Z","dependency_job_id":null,"html_url":"https://github.com/styled-components/styled-components-native-code-mod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fstyled-components-native-code-mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fstyled-components-native-code-mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fstyled-components-native-code-mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fstyled-components-native-code-mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styled-components","download_url":"https://codeload.github.com/styled-components/styled-components-native-code-mod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237116525,"owners_count":19258268,"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":[],"created_at":"2024-09-24T13:55:41.866Z","updated_at":"2025-10-19T11:30:35.551Z","avatar_url":"https://github.com/styled-components.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# styled-components-native-code-mod\n\nTransforms v1 styled-components to v2. It\n\n* Adds `px` units where relevant\n* Fixes `font-family` to include quotes\n\n```bash\nnpm install -g jscodeshift\nnpm install https://github.com/styled-components/styled-components-native-code-mod\njscodeshift -t styled-components-native-code-mod/transforms/units \u003cpath\u003e\n```\n\n**Will modify files in place, so make sure you can recover if it goes wrong!**\n\nIn\n\n```js\nstyled.View`\n  top: 10;\n  flex: 1;\n  margin: 10 20;\n  font-family: Georgia;\n  color: ${props =\u003e props.color};\n`;\n```\n\nOut\n\n```js\nstyled.View`\n  top: 10px;\n  flex: 1;\n  margin: 10px 20px;\n  font-family: \"Georgia\";\n  color: ${props =\u003e props.color};\n`;\n```\n\n# Caveats\n\nIf you interpolate values that need units, you'll have to do that manually.\n\n```js\nconst value = '10';\n\nstyled.View`\n  top: ${value};\n`;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyled-components%2Fstyled-components-native-code-mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyled-components%2Fstyled-components-native-code-mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyled-components%2Fstyled-components-native-code-mod/lists"}