# babel-preset-react-native-stage-0

> Enable stage-0 Babel features on React Native.

Latest version **1.0.1** (published 2016-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-preset-react-native-stage-0
pnpm add babel-preset-react-native-stage-0
yarn add babel-preset-react-native-stage-0
bun add babel-preset-react-native-stage-0
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-03-31 |
| First published | 2016-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 101 |
| Author | Adam Miskiewicz |
| Maintainers | skevy |
| Keywords | babel, babel-preset, react-native, babel-plugin |

## Links

- npm: https://www.npmjs.com/package/babel-preset-react-native-stage-0
- Repository: https://github.com/skevy/babel-preset-react-native-stage-0
- Homepage: https://github.com/skevy/babel-preset-react-native-stage-0#readme
- Issues: https://github.com/skevy/babel-preset-react-native-stage-0/issues
- npm.io page: https://npm.io/package/babel-preset-react-native-stage-0

## Dependencies (8)

- [babel-preset-react-native](https://npm.io/package/babel-preset-react-native.md) ^1.5.6
- [babel-plugin-transform-function-bind](https://npm.io/package/babel-plugin-transform-function-bind.md) ^6.5.2
- [babel-plugin-transform-do-expressions](https://npm.io/package/babel-plugin-transform-do-expressions.md) ^6.5.0
- [babel-plugin-transform-decorators-legacy](https://npm.io/package/babel-plugin-transform-decorators-legacy.md) ^1.3.4
- [babel-plugin-transform-export-extensions](https://npm.io/package/babel-plugin-transform-export-extensions.md) ^6.5.0
- [babel-plugin-syntax-trailing-function-commas](https://npm.io/package/babel-plugin-syntax-trailing-function-commas.md) ^6.5.0
- [babel-plugin-transform-class-constructor-call](https://npm.io/package/babel-plugin-transform-class-constructor-call.md) ^6.6.5
- [babel-plugin-transform-exponentiation-operator](https://npm.io/package/babel-plugin-transform-exponentiation-operator.md) ^6.5.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-03-31
- 2.0.0-alpha.1 (next) — 2017-06-23
- 1.0.0 — 2016-03-31

## README

# babel-preset-react-native-stage-0

Have 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!

## Installation

```bash
npm install babel-preset-react-native-stage-0 --save
```

## Usage

Just add a `.babelrc` file to your React Native project that looks like this:

```json5
{
  "presets": ["react-native-stage-0"]
}
```

Do 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:

```json5
{
  "presets": ["react-native-stage-0/decorator-support"]
}
```

## Troubleshooting

**Q**: I added `stage-0` to my "presets" list, and now everything is broken!

**A**: Don't do that! This preset supersedes the need for including the stage-0 preset, and works properly with React Native.

---

**Q**: I changed my .babelrc to the above, but I'm still getting strange Babel errors!

**A**: Have you cleared your packager cache? Run the following:

```bash
watchman watch-del-all
[the command you use to start the packager] --reset-cache
```

If 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!

---
_Source: https://npm.io/package/babel-preset-react-native-stage-0 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
