Versioning Policy
This page describes the versioning policy we follow for the react-native
package.
We test each version of React Native thoroughly, both with manual and automated tests, to ensure the quality doesn't regress.
The stable
channel of React Native follows the 0.x.y release policy described below.
React Native also offers a nightly
release channel to encourage early feedback on experimental features.
This page describes our approach to version numbers for react-native
and for packages under the @react-native
scope.
Stable Release Versions
React Native releases stable versions at a regular cadence.
We follow the 0.x.y versioning schema:
- Breaking changes will be shipped in a new minor version, i.e. we increment the x number (e.g.: 0.78.0 to 0.79.0).
- New features and APIs will also be shipped in a new minor version, i.e. we increment the x number (e.g.: 0.78.0 to 0.79.0).
- Critical bug fixes will be shipped in a new patch version, i.e. we increment the y number (e.g.: 0.78.1 to 0.78.2).
Stable releases are shipped regularly, with the latest tagged as latest
on NPM.
A series of releases under the same minor number is called a minor series (e.g. 0.76.x is the minor series for 0.76.0, 0.76.1, 0.76.2, etc.).
Commitment to Stability
In order to support users upgrading React Native versions, we’re committed to maintain the latest 3 minor series (e.g. 0.78.x, 0.77.x and 0.76.x when 0.78 is the latest release).
For those releases we’ll be publishing regular updates and bug fixes.
You can read more about our support policy on the react-native-releases working group.
Breaking changes
Breaking changes are inconvenient for everyone, and we’re trying to minimize them to the bare minimum. All the breaking changes we ship in each stable release will be highlighted in:
- The Breaking and the Removed section of the React Native Changelog
- Each release blogpost in the Breaking Changes section
For each breaking change we’re committed to explaining the reasoning behind it, provide a replacement API if possible, and minimize the impact on final users.
What is a breaking change?
We consider a breaking change for React Native:
- An incompatible API change (i.e. an API that is changed or removed so that your code won’t compile/run anymore due to that change). Examples:
- Changes of any JS/Java/Kotlin/Obj-c/C++ APIs that would require your code to be changed in order to compile.
- Changes inside
@react-native/codegen
that are not backward compatible.
- A significant behavior/runtime change. Example:
- The layout logic of a prop is changed drastically.
- A significant change in the development experience. Example:
- A debugging feature is entirely removed.
- A major bump of any of our transitive dependencies. Examples:
- Bumping React from 18.x to 19.x
- Bumping the Target SDK on Android from 34 to 35).
- A reduction of any of our supported platform versions. Examples:
- Bumping min SDK on Android from 21 to 23
- Bumping the min iOS version to 15.1.
We don’t consider those changes to be breaking:
- Modifying APIs starting with
unstable_
prefix: These APIs expose experimental features, and we are not confident on their final shape. By releasing these with anunstable_
prefix, we can iterate faster and get to a stable API sooner. - Changes to private or internal APIs: These APIs are often prefixed with either
internal_
,private_
or living inside ainternal/
orprivate/
folder/package. While some of those APIs might have public visibility due to tooling constraints, we don’t consider them part of our public API, so we’ll be changing them without previous notice.- Similarly, If you access internal property names like
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
or__reactInternalInstance$uk43rzhitjg
, there are no guarantees. You are on your own. - Classes annotated with
@FrameworkAPI
are also considered internal
- Similarly, If you access internal property names like
- Changes to tooling/development APIs: Some public APIs of React Native are reserved for integration with frameworks and other tools. For example, some of the Metro APIs or React Native DevTools APIs are supposed to be used only by other frameworks or tools. Changes to those APIs are discussed directly with the affected tools and are not considered breaking changes (we won’t be communicating them broadly in the release blogposts).
- Development warnings: Since warnings don’t affect runtime behavior, we may add new warnings or modify existing warnings in between any versions.
If we expect a change to cause broad problems in the community, we will still do our best to provide a gradual migration path for the ecosystem.
Deprecation Cycles
As we keep on developing and evolving React Native, we write new APIs and sometimes we need to deprecate existing ones. Those APIs will go through a deprecation cycle.
Once an API is deprecated, it will remain available also for the following stable releases.
For example: if an API is deprecated in React Native 0.76.x, it will still be available in 0.77.x and won’t be removed sooner than React Native 0.78.x.
Sometimes we decide to keep a deprecated API for a longer time, if we feel that the ecosystem needs more time to migrate away from it. For those APIs we generally provide warnings to help users migrate away from them.
Release channels
React Native relies on a thriving open source community to file bug reports, open pull requests, and submit RFCs. To encourage feedback we do support several release channels.
This section will be most relevant to developers who work on frameworks, libraries, or developer tooling. Developers who use React Native primarily to build user-facing applications should not need to worry about release channels other than latest.
latest
latest
is for stable, semver React Native releases. It’s what you get when you install React Native from npm. This is the channel you’re already using today. User-facing applications that consume React Native directly use this channel.
We publish a newer minor series of React Native regularly, and we update the latest
tag to reflect the latest stable version.
next
Before we declare a new React Native release stable, we publish a series of release candidate, starting from RC0. Those versions are pre-release versions (following the versioning schema 0.79.0-rc.0
) and are tagged as next
on NPM.
When a new branch cut happens, and RCs start to get published on NPM and GitHub, it’s a good idea to test your library/framework against a next
version of React Native.
That will ensure that your project will keep on working well with the upcoming versions of React Native.
However, do not use prereleases/RCs in user-facing applications directly as they’re not considered production ready.
nightly
We also publish a nightly
release channel. Nightlies are published every day starting from the main
branch of facebook/react-native. Nightlies are considered unstable versions of React Native and are not recommended for production use.
Nightlies follow the versioning schema as 0.80.0-nightly-<DATE>-<SHA>
where <DATE>
is the date of the nightly and <SHA>
is the SHA of the commit that was used to publish this nightly.
The nightly releases are provided for testing purposes only, and we provide no guarantees that behavior won’t change between nightlies. They do not follow the semver protocol that we use for releases from latest/next.
It is a good idea to set up a CI workflow to test your library against a react-native@nightly version every day, to make sure your library will keep on working with future releases.