{"id":4523,"url":"https://github.com/skevy/babel-preset-react-native-stage-0","last_synced_at":"2025-08-20T16:30:55.000Z","repository":{"id":65336367,"uuid":"55168574","full_name":"skevy/babel-preset-react-native-stage-0","owner":"skevy","description":"Use stage-0 Babel features with React Native","archived":false,"fork":false,"pushed_at":"2017-11-28T17:25:50.000Z","size":3,"stargazers_count":101,"open_issues_count":6,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-12T12:38:36.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/skevy.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":"2016-03-31T17:08:33.000Z","updated_at":"2022-07-15T03:44:08.000Z","dependencies_parsed_at":"2023-01-17T16:58:22.900Z","dependency_job_id":null,"html_url":"https://github.com/skevy/babel-preset-react-native-stage-0","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skevy%2Fbabel-preset-react-native-stage-0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skevy%2Fbabel-preset-react-native-stage-0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skevy%2Fbabel-preset-react-native-stage-0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skevy%2Fbabel-preset-react-native-stage-0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skevy","download_url":"https://codeload.github.com/skevy/babel-preset-react-native-stage-0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230438185,"owners_count":18225870,"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-01-05T20:17:15.173Z","updated_at":"2024-12-19T13:06:55.254Z","avatar_url":"https://github.com/skevy.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Build \u0026 Development"],"readme":"# babel-preset-react-native-stage-0\n\nHave you encountered weird errors in React Native when trying to use `babel-preset-react-native` and `babel-preset-stage-0` together? Are you generally just confused and frustrating by how hard it is to use the latest and greatest Babel features on RN? This preset is for you!\n\n## Installation\n\n```bash\nnpm install babel-preset-react-native-stage-0 --save\n```\n\n## Usage\n\nJust add a `.babelrc` file to your React Native project that looks like this:\n\n```json5\n{\n  \"presets\": [\"react-native-stage-0\"]\n}\n```\n\nDo you want/need experimental legacy decorator support (provided by [babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy))? Use this as your .babelrc instead:\n\n```json5\n{\n  \"presets\": [\"react-native-stage-0/decorator-support\"]\n}\n```\n\n## Troubleshooting\n\n**Q**: I added `stage-0` to my \"presets\" list, and now everything is broken!\n\n**A**: Don't do that! This preset supersedes the need for including the stage-0 preset, and works properly with React Native.\n\n---\n\n**Q**: I changed my .babelrc to the above, but I'm still getting strange Babel errors!\n\n**A**: Have you cleared your packager cache? Run the following:\n\n```bash\nwatchman watch-del-all\n[the command you use to start the packager] --reset-cache\n```\n\nIf things are still broken, open an issue and I'll try to help you. I may say \"not a problem with this preset\", and make you go open an issue on the react-native repo. Don't be mad at me if I do that!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskevy%2Fbabel-preset-react-native-stage-0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskevy%2Fbabel-preset-react-native-stage-0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskevy%2Fbabel-preset-react-native-stage-0/lists"}