I'm looking to override the command react-native run-android
and I can't find a solution.
I'm working with different variants and schemes for my apps, and by default, run-android
launch installDebug
whereas it doesn't exist in my project. (same issue for iOS)
Thanks, Best.
You can add a command to the
script
-part in yourpackage.json
. Then you can run the command vianpm run <command>
."scripts": { //... "run_app": "react-native run-android" }
Entering
npm run run_app
would execute the given command.