From afe06e58310045eebb6e863b6d0d7329e97da042 Mon Sep 17 00:00:00 2001 From: "satyajit.happy" Date: Fri, 12 Jul 2019 08:40:45 -0700 Subject: [PATCH] Add package.json scripts ro run android and ios in template (#25618) Summary: Currently users have to use the global `react-native` command or run `yarn react-native run-x` which isn't very nice. This PR adds `android` and `ios` scripts to `package.json` so users can run `yarn android` or `yarn ios` directly. Pull Request resolved: https://github.com/facebook/react-native/pull/25618 Differential Revision: D16223229 Pulled By: cpojer fbshipit-source-id: 69b082760ff2ee31ab0406251f9a50339fd227bf --- template/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/package.json b/template/package.json index 54f150654b9..4a5ecbb6cc2 100644 --- a/template/package.json +++ b/template/package.json @@ -3,6 +3,8 @@ "version": "0.0.1", "private": true, "scripts": { + "android": "react-native run-android", + "ios": "react-native run-ios", "start": "react-native start", "test": "jest" },