# @react-native/babel-preset

> Babel preset for React Native applications

Latest version **0.87.1** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-native/babel-preset
pnpm add @react-native/babel-preset
yarn add @react-native/babel-preset
bun add @react-native/babel-preset
```

## Health

**Score 70/100 (B)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

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

## Facts

| | |
|---|---|
| Version | 0.87.1 |
| Published | 2026-08-26 |
| First published | 2023-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^22.13.0 \|\| ^24.3.0 \|\| >= 26.0.0 |
| Dependencies | 33 |
| Unpacked size | 20.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 126673 |
| Maintainers | react-native-bot, fb |
| Keywords | babel, preset, react-native |

## Links

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

## Dependencies (33)

- [@babel/core](https://npm.io/package/@babel/core.md) ^7.25.2
- [react-refresh](https://npm.io/package/react-refresh.md) ^0.14.0
- [@babel/plugin-transform-for-of](https://npm.io/package/@babel/plugin-transform-for-of.md) ^7.24.7
- [@babel/plugin-transform-classes](https://npm.io/package/@babel/plugin-transform-classes.md) ^7.25.4
- [@babel/plugin-transform-runtime](https://npm.io/package/@babel/plugin-transform-runtime.md) ^7.24.7
- [@babel/plugin-transform-react-jsx](https://npm.io/package/@babel/plugin-transform-react-jsx.md) ^7.25.2
- [babel-plugin-syntax-hermes-parser](https://npm.io/package/babel-plugin-syntax-hermes-parser.md) 0.36.1
- [babel-plugin-transform-flow-enums](https://npm.io/package/babel-plugin-transform-flow-enums.md) ^0.0.2
- [@babel/plugin-transform-typescript](https://npm.io/package/@babel/plugin-transform-typescript.md) ^7.25.2
- [@react-native/babel-plugin-codegen](https://npm.io/package/@react-native/babel-plugin-codegen.md) 0.87.1
- [@babel/plugin-syntax-dynamic-import](https://npm.io/package/@babel/plugin-syntax-dynamic-import.md) ^7.8.3
- [@babel/plugin-transform-regenerator](https://npm.io/package/@babel/plugin-transform-regenerator.md) ^7.24.7
- [@babel/plugin-transform-block-scoping](https://npm.io/package/@babel/plugin-transform-block-scoping.md) ^7.25.0
- [@babel/plugin-transform-destructuring](https://npm.io/package/@babel/plugin-transform-destructuring.md) ^7.24.8
- [@babel/plugin-transform-unicode-regex](https://npm.io/package/@babel/plugin-transform-unicode-regex.md) ^7.24.7
- [@babel/plugin-syntax-optional-chaining](https://npm.io/package/@babel/plugin-syntax-optional-chaining.md) ^7.8.3
- [@babel/plugin-transform-react-jsx-self](https://npm.io/package/@babel/plugin-transform-react-jsx-self.md) ^7.24.7
- [@babel/plugin-transform-private-methods](https://npm.io/package/@babel/plugin-transform-private-methods.md) ^7.24.7
- [@babel/plugin-syntax-export-default-from](https://npm.io/package/@babel/plugin-syntax-export-default-from.md) ^7.24.7
- [@babel/plugin-transform-class-properties](https://npm.io/package/@babel/plugin-transform-class-properties.md) ^7.25.4
- [@babel/plugin-transform-flow-strip-types](https://npm.io/package/@babel/plugin-transform-flow-strip-types.md) ^7.25.2
- [@babel/plugin-transform-modules-commonjs](https://npm.io/package/@babel/plugin-transform-modules-commonjs.md) ^7.24.8
- [@babel/plugin-transform-react-jsx-source](https://npm.io/package/@babel/plugin-transform-react-jsx-source.md) ^7.24.7
- [@babel/plugin-transform-optional-chaining](https://npm.io/package/@babel/plugin-transform-optional-chaining.md) ^7.24.8
- [@babel/plugin-proposal-export-default-from](https://npm.io/package/@babel/plugin-proposal-export-default-from.md) ^7.24.7
- [@babel/plugin-transform-async-to-generator](https://npm.io/package/@babel/plugin-transform-async-to-generator.md) ^7.24.7
- [@babel/plugin-transform-react-display-name](https://npm.io/package/@babel/plugin-transform-react-display-name.md) ^7.24.7
- [@babel/plugin-transform-optional-catch-binding](https://npm.io/package/@babel/plugin-transform-optional-catch-binding.md) ^7.24.7
- [@babel/plugin-syntax-nullish-coalescing-operator](https://npm.io/package/@babel/plugin-syntax-nullish-coalescing-operator.md) ^7.8.3
- [@babel/plugin-transform-async-generator-functions](https://npm.io/package/@babel/plugin-transform-async-generator-functions.md) ^7.25.4
- [@babel/plugin-transform-private-property-in-object](https://npm.io/package/@babel/plugin-transform-private-property-in-object.md) ^7.24.7
- [@babel/plugin-transform-nullish-coalescing-operator](https://npm.io/package/@babel/plugin-transform-nullish-coalescing-operator.md) ^7.24.7
- [@babel/plugin-transform-named-capturing-groups-regex](https://npm.io/package/@babel/plugin-transform-named-capturing-groups-regex.md) ^7.24.7

## 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

- 0.87.1 (latest) — 2026-08-26
- 0.89.0-nightly-20260930-085caf035 (nightly) — 2026-09-30
- 0.88.0-rc.3 (next) — 2026-09-28
- 0.86.3 (0.86-stable) — 2026-08-24
- 0.83.10 (0.83-stable) — 2026-06-25
- 0.81.6 (0.81-stable) — 2026-02-05
- 0.80.3 (0.80-stable) — 2026-01-26
- 0.79.7 (0.79-stable) — 2025-10-21
- 0.77.3 (0.77-stable) — 2025-07-21
- 0.78.3 (0.78-stable) — 2025-07-09
- 0.76.9 (0.76-stable) — 2025-04-03
- 0.75.5 (0.75-stable) — 2025-02-06
- 0.74.89 (0.74-stable) — 2025-01-27
- 0.74.82 (false) — 2024-05-01
- 0.89.0-nightly-20260928-d7ff82ebe — 2026-09-28
- … 1172 more at https://npm.io/package/@react-native/babel-preset/versions

## README

# @react-native/babel-preset

[![npm]](https://www.npmjs.com/package/@react-native/babel-preset) [![npm downloads]](https://www.npmjs.com/package/@react-native/babel-preset)

[npm]: https://img.shields.io/npm/v/@react-native/babel-preset.svg?color=blue
[npm downloads]: https://img.shields.io/npm/dm/@react-native/babel-preset.svg

Babel preset for [React Native](https://reactnative.dev) applications. React Native uses this Babel preset by default when transforming your app's source code.

You only need to use this preset directly if you provide a custom `babel.config.js` file in your project's root directory. React Native does not apply its default Babel configuration in that case, so you must specify all the plugins necessary to transform your code — start from this preset to get the defaults and add more plugins on top.

## Usage

### Installation

Install `@react-native/babel-preset` in your app:

with `npm`:

```sh
npm i @react-native/babel-preset --save-dev
```

or with `yarn`:

```sh
yarn add -D @react-native/babel-preset
```

### Configuring Babel

Then, create a file called `babel.config.js` in your project's root directory. The existence of this `babel.config.js` file tells React Native to use your custom Babel configuration instead of its own. Then load this preset:

```json
{
  "presets": ["module:@react-native/babel-preset"]
}
```

You can further customize your Babel configuration by specifying plugins and other options. See [Babel's `babel.config.js` documentation](https://babeljs.io/docs/en/config-files/) to learn more.

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