Hamza Ch
Hamza Ch

Reputation: 62

React Native - Build command to run metro in terminal

I am running a React Native Project and the command I used to run the app is npx react-native run-android. But by using this command, the node.js window open separatly and I want that the metro or node.js will also open in my terminal.

So, If there is any command for this. Please let me know.

Upvotes: 1

Views: 143

Answers (2)

Abdullah Jaspal
Abdullah Jaspal

Reputation: 222

To run the metro in the same terminal just run the below command.

npx react-native start

and if you are using yarn

yarn start

Upvotes: 2

prateek rane
prateek rane

Reputation: 11

Try to use this command, it works for me.

npx react-native run-android --terminal

Upvotes: 1

Related Questions