{"id":13533339,"url":"https://github.com/callstack/react-native-paper-codemod","last_synced_at":"2025-10-07T20:09:04.699Z","repository":{"id":66129089,"uuid":"140567013","full_name":"callstack/react-native-paper-codemod","owner":"callstack","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-03T10:21:42.000Z","size":162,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-28T23:44:47.721Z","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/callstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-11T11:40:13.000Z","updated_at":"2025-03-18T12:43:36.000Z","dependencies_parsed_at":"2023-02-22T20:30:51.205Z","dependency_job_id":null,"html_url":"https://github.com/callstack/react-native-paper-codemod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/callstack/react-native-paper-codemod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstack%2Freact-native-paper-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstack%2Freact-native-paper-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstack%2Freact-native-paper-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstack%2Freact-native-paper-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callstack","download_url":"https://codeload.github.com/callstack/react-native-paper-codemod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callstack%2Freact-native-paper-codemod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278838434,"owners_count":26054720,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-01T07:01:18.872Z","updated_at":"2025-10-07T20:09:04.676Z","avatar_url":"https://github.com/callstack.png","language":"JavaScript","readme":"# react-native-paper-codemod\n\n[![Build Status][build-badge]][build]\n[![MIT License][license-badge]][license]\n[![PRs Welcome][prs-welcome-badge]][prs-welcome]\n[![Chat][chat-badge]][chat]\n\n## Setup \u0026 Run\n\n1. `yarn global add jscodeshift`\n1. `git clone https://github.com/callstack/react-native-paper-codemod.git` or download a zip file from `https://github.com/callstack/react-native-paper-codemod/archive/master.zip`\n1. Run `yarn install` in the react-native-paper-codemod directory\n1. `jscodeshift -t \u003ccodemod-script\u003e \u003cpath\u003e`\n   - `codemod-script` - path to the transform file, see available scripts below;\n   - `path` - files or directory to transform;\n   - use the `-d` option for a dry-run and use `-p` to print the output for comparison;\n   - use the `--extensions` option if your files have different extensions than `.js` (for example, `--extensions js,jsx`);\n   - if you use flowtype, you might also need to use `--parser=flow`;\n   - see all available [jscodeshift options](https://github.com/facebook/jscodeshift#usage-cli).\n\n## Included scripts\n\n### `material-next`\n\nMigrate codebase using react-native-paper v1.0 to v2.0. The full list of breaking changes can be found [here](https://github.com/callstack/react-native-paper/wiki/Migration-guide-for-2.0).\n\n```sh\njscodeshift -t react-native-paper-codemod/transforms/material-next.js \u003cpath\u003e\n```\n\n#### `material-next` script supports following transforms:\n\n#### It will rename imports and jsx tags:\n\n- `Toolbar` → `Appbar.Header`\n- `ToolbarBackAction` → `Appbar.BackAction`\n- `ToolbarContent` → `Appbar.Content`\n- `CardActions` → `Card.Actions`\n- `CardContent` → `Card.Content`\n- `CardCover` → `Card.Cover`\n- `DialogActions` → `Dialog.Actions`\n- `DialogContent` → `Dialog.Content`\n- `DialogScrollArea` → `Dialog.ScrollArea`\n- `DialogTitle` → `Dialog.Title`\n- `DrawerItem` → `Drawer.Item`\n- `DrawerSection` → `Drawer.Section`\n- `FABGroup` → `FAB.Group`\n- `ListAccordion` → `List.Accordion`\n- `ListItem` → `List.Item`\n- `ListSection` → `List.Section`\n- `RadioButtonGroup` → `RadioButton.Group`\n- `Paper` → `Surface`\n- `SearchBar` → `Searchbar`\n\nIt will wrap in Portal components that are no longer wrapped in Portal by default.\n\nIt will remove color prop from DrawerItem component and set the proper color via theme prop.\n\n## Contributing\n\nRead the [contribution guidelines](/CONTRIBUTING.md) before contributing.\n\n\u003c!-- badges --\u003e\n\n[build-badge]: https://img.shields.io/circleci/project/github/callstack/react-native-paper-codemod/master.svg?style=flat-square\n[build]: https://circleci.com/gh/callstack/react-native-paper-codemod\n[license-badge]: https://img.shields.io/npm/l/react-native-paper.svg?style=flat-square\n[license]: https://opensource.org/licenses/MIT\n[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs-welcome]: http://makeapullrequest.com\n[chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=flat-square\u0026colorB=758ED3\n[chat]: https://discord.gg/zwR2Cdh\n","funding_links":[],"categories":["Frameworks"],"sub_categories":["React.js"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallstack%2Freact-native-paper-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallstack%2Freact-native-paper-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallstack%2Freact-native-paper-codemod/lists"}