React Native not working

Asked

Viewed 273 times

-5

Eae you guys, blz?

I want to start making application with React Native, I’ve installed the programs necessary to be able to start it, but when I put the command in cmd "npx React-Native run-android" it keeps loading for a long time and does not give me any message on the Android screen ('Welcome to React Native').

Below I put the photo of my screen, which is only in it and does not change anything.

inserir a descrição da imagem aqui

  • 1

    When you run the command "React Native run android" it will do the installation in your emulator, by the terminal message, it is downloading the Graddle, which is used to build the application. Depending on your machine or connection, it may take.

  • It’s probably taking a while to download the Gradle version. You can also download Gradle from Android Studio before building from React Native

1 answer

2

To build your app you need to run the command:

react-native run-android

without npx in front, only npx is used to create a new React-Native project with the command:

npx react-native init nomedoprojeto

after running the command to build, run:

react-native start

If your project’s metro bundler doesn’t start automatically.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.