Name Date Size #Lines LOC

..26-Sep-2023-

README.mdH A D26-Sep-20231.3 KiB2315

REVISIONH A D26-Sep-202340 11

README.md

1# React & React Native Versions
2
3This page describes how React and React Native versions interact each other.
4The version alignment between the two frameworks relies on two syncronization points:
5
61. The versions in the `package.json` of the new app template. For example [for React Native 0.68.1](https://github.com/facebook/react-native/blob/0.68-stable/template/package.json#L12-L15) the versions are aligned as follows:
7
8```
9  "dependencies": {
10    "react": "17.0.2",
11    "react-native": "0.68.1"
12  },
13```
14
151. The React renderers **shipped** with React Native inside this folder, the [./Libraries/Renderer](https://github.com/facebook/react-native/tree/main/Libraries/Renderer) folder, of React Native.
16
17This practically means that you **can't bump** the version of React in your `package.json` to a later version,
18as you will still be using the older renderer from the folder mentioned above. Bumping the react version in your `package.json` will lead to unexpected behaviors.
19
20For the sake of React 18, the first version of React Native compatible with React 18 is **0.69.0**. Users on React Native 0.68.0 and previous versions won't be able to use React 18.
21
22If you use the `react-native upgrade` command or the React Native Upgrade Helper, you'll bump to the correct React version once you upgrade React Native.
23