{"id":17274591,"url":"https://github.com/rip21/styled-components-native-to-plain-codemod","last_synced_at":"2025-03-26T13:41:39.713Z","repository":{"id":57373307,"uuid":"118598837","full_name":"RIP21/styled-components-native-to-plain-codemod","owner":"RIP21","description":"Codemods for the styled-components migrations","archived":false,"fork":false,"pushed_at":"2018-01-23T11:50:10.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T14:18:27.536Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RIP21.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":"2018-01-23T11:06:17.000Z","updated_at":"2018-01-23T11:49:16.000Z","dependencies_parsed_at":"2022-08-29T14:42:35.610Z","dependency_job_id":null,"html_url":"https://github.com/RIP21/styled-components-native-to-plain-codemod","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/RIP21%2Fstyled-components-native-to-plain-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RIP21%2Fstyled-components-native-to-plain-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RIP21%2Fstyled-components-native-to-plain-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RIP21%2Fstyled-components-native-to-plain-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RIP21","download_url":"https://codeload.github.com/RIP21/styled-components-native-to-plain-codemod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245666146,"owners_count":20652721,"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-10-15T08:54:16.949Z","updated_at":"2025-03-26T13:41:39.694Z","avatar_url":"https://github.com/RIP21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# styled-components-native-to-plain-codemod 🛠\n\nIt's a simple codemod to rename all imports and requires from `'styled-components/native'` to `'styled-components'` for\nReact Native apps.\n\n## Why?\nNew version (v3) of the styled-components is changed its API so now you can import React Native components directly from \n`styled-components` not from `styled-components/native`. This codemod will do everything for you, \nso you don't spent time doing that manually\n\n## Input/Output\n```javascript\n// in\nimport /* ... */ from 'styled-components/native';\nrequire('styled-components/native');\n\n// out\nimport /* ... */ from 'styled-components';\nrequire('styled-components');\n```\n\n## Usage\n1. Install jscodeshift`npm i -g jscodeshift`\n2. Download `sc-native-to-plain.js` from this repo or install it like \n`npm i styled-components-native-to-plain-codemod` and take it from `node_modules/styled-components-native-to-plain-codemod/sc-native-to-plain.js`\n3. In root of the project with sources under `/src` for example call will be\n`jscodemode -t \u003cpath-to-codemod\u003e/sc-native-to-plain.js ./src`\n4. PROFIT!\n\n## IT DOESN'T WORK!!!\nIf you use regular codestyle such as Prettier or Standard and not crazy one, this will do the trick :)\nTake a look at the code (it's pretty straightforward), and add PR for your crazy one to match it as well :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frip21%2Fstyled-components-native-to-plain-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frip21%2Fstyled-components-native-to-plain-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frip21%2Fstyled-components-native-to-plain-codemod/lists"}