react-nativeexpocreate-react-native-app

use create-react-native-app without expo-cli


I have set up create-react-native-app as said in the react native docs. If my project name is proj, according to the docs, the commands to be run should be :

create-react-native-app proj
cd proj
npm start

But when I run create-react-native-app, I get a menu to select a blank template or the one with tabs. And instead of npm start, it says to use expo start. Why am I getting a different output compared to the docs?


Solution

  • Official documentation indicates different steps: https://github.com/react-community/create-react-native-app#create-react-native-app

    if you don't want to use Expo, just follow the eject steps: https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md. Optionally you can reate

    or you can create a react native app by yourself without using the create-react-native-app script. More details here, https://facebook.github.io/react-native/docs/getting-started.html#creating-a-new-application