Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-native compatibility with React

How can I check for each version of react-native to which versions of react is it compatible with?

I could not find that information in the official docs.

The best I could do is to open package.json in node_modules/react-native and check the peerDependencies section.

Thanks

like image 665
Luis Filipe Avatar asked Aug 07 '26 15:08

Luis Filipe


1 Answers

You mentioned the solution yourself, I don't think there's a better way than looking at the source and seeing what version it requires as a peer dependency.

If you need a shortcut to each versions package.json go to the github repo and select the stable branch of the version you want.

The URL will then look like this and you can just insert the version you need:

https://github.com/facebook/react-native/blob/0.62-stable/package.json

like image 109
Arno Avatar answered Aug 10 '26 07:08

Arno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!