{"id":13533254,"url":"https://github.com/lucasbento/rn-update-deprecated-modules","last_synced_at":"2025-03-16T18:31:47.276Z","repository":{"id":34629940,"uuid":"180129919","full_name":"lucasbento/rn-update-deprecated-modules","owner":"lucasbento","description":"Codemod to update import declarations as per react-native \u003e 0.59.x deprecations.","archived":false,"fork":false,"pushed_at":"2023-01-03T19:44:28.000Z","size":1250,"stargazers_count":72,"open_issues_count":16,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-18T09:19:38.364Z","etag":null,"topics":["cli","codemod","react-native"],"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/lucasbento.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":"2019-04-08T10:56:46.000Z","updated_at":"2024-04-30T07:22:52.000Z","dependencies_parsed_at":"2023-01-15T08:10:17.778Z","dependency_job_id":null,"html_url":"https://github.com/lucasbento/rn-update-deprecated-modules","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Frn-update-deprecated-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Frn-update-deprecated-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Frn-update-deprecated-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Frn-update-deprecated-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasbento","download_url":"https://codeload.github.com/lucasbento/rn-update-deprecated-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826783,"owners_count":20354220,"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":["cli","codemod","react-native"],"created_at":"2024-08-01T07:01:18.080Z","updated_at":"2025-03-16T18:31:46.869Z","avatar_url":"https://github.com/lucasbento.png","language":"JavaScript","funding_links":[],"categories":["Frameworks"],"sub_categories":["React.js"],"readme":"# Update Deprecated Modules for React Native\n\nThis project is intended to be used from version `0.59.x` which started the [Lean Core Hub] initiative that removes modules from the core of react-native into community-maintained projects.\n\n## Installation\n\nInstall [jscodeshift]:\n```sh\nyarn global add jscodeshift\n```\n\n\u003e This guide assumes that you have [npx] installed, if you wish to use this through a global installation just install it with `yarn global add rn-update-deprecated-modules` and remove `npx` from the example commands.\n\n## Usage\n\n\u003e All arguments specified in [jscodeshift][jscodeshift-args] are accepted.\n\n```sh\nnpx rn-update-deprecated-modules myFile.js\nnpx rn-update-deprecated-modules myFile.js mySecondFile.js myThirdFile.js\nnpx rn-update-deprecated-modules app/**/*.js\nnpx rn-update-deprecated-modules app/**/*.tsx --parser=tsx\n```\n\n### Example output\n\n```\n~/Documents/Projects/myNiceProject\n❯ npx rn-update-deprecated-modules ./app/**/*.js\nProcessing 50 files...\nSpawning 1 worker...\nSending 50 files to free worker...\nAll done.\nResults:\n0 errors\n588 unmodified\n0 skipped\n1 ok\nTime elapsed: 1.208seconds\n\n Import statements updated, run:\n    yarn add @react-native-community/async-storage\n```\n\n```diff\n-import { AsyncStorage, Image } from 'react-native';\n+import { Image } from 'react-native';\n+import AsyncStorage from '@react-native-community/async-storage';\n```\n\n## License\n\nMIT © [Lucas Bento](http://github.com/lucasbento)\n\n[Lean Core Hub]: https://github.com/facebook/react-native/issues/23313\n[jscodeshift]: https://github.com/facebook/jscodeshift\n[npx]: https://www.npmjs.com/package/npx\n[jscodeshift-args]: https://github.com/facebook/jscodeshift#usage-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasbento%2Frn-update-deprecated-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasbento%2Frn-update-deprecated-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasbento%2Frn-update-deprecated-modules/lists"}