docs/releases/versioning-policy.md
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.
React Native releases stable versions at a regular cadence.
We follow the 0.x.y versioning schema:
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.).
You can read more about our commitment to stability in the releases page.
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:
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.
We consider a breaking change for React Native:
@react-native/codegen that are not backward compatible.We don’t consider those changes to be breaking:
unstable_ prefix: These APIs expose experimental features, and we are not confident on their final shape. By releasing these with an unstable_ prefix, we can iterate faster and get to a stable API sooner.internal_ , private_ or living inside a internal/ or private/ 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.
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED or __reactInternalInstance$uk43rzhitjg, there are no guarantees. You are on your own.@FrameworkAPI are also considered internalIf 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.
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.
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.
:::note 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 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.
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.
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.