I didn't use react-native for a few months. It looks like some things have changed meanwhile. In the official documentation they recommend to uninstall react-native-cli
and to usenpx react-native init
instead. I did this but ended up with an error because I didn't install that package globally. However, if I install react-native
globally, it results in an error when I run the project, saying that I should remove the global package.
What is the proper way to create a react app nowadays?