I just started learning react native and I'm stuck at the beginning. I installed react native with npm install -g create-react-native-app
, but when i try to create app with create-react-native-app
it just says:
Input is required, but expo is in non-interactive mode. Required
input:
> Choose a template:
So, if you've been building a React Native app without Expo from scratch, then you'll need to use a small portion of the native mobile coding skills. Although 95% of the code is shared between iOS and Android, you may still need to adjust the native code on both platforms based on usage.
Expo CLI is a safe choice for a new React Native programmer. It has a list of tools built around React Native. That's why you only need to download a recent version of Node. js and a phone or emulator to begin within minutes.
are you using git bash? try to use normal cmd to create the project
you can't run the CLI in 'interactive mode' if you are using Git Bash
, instead, you can use cmd
, but if you insist on using Git Bash
then you need to pass 2 arguments: name
and template
. so instead of
expo init <project-name>
you'd actually pass:
expo init <project-name> --template <one-of-the-predefined-templates> --name <AppName>
for example, expo init facebook-clone --template blank --name FacebookClone
the template
argument defines how much boilerplate the project is initiated with
the name
argument defines the app name (as shown in the home screen or even in Expo
itself)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With