Browse Source

support react-native start

Daniel Zlotin 6 years ago
parent
commit
6594505949
3 changed files with 3 additions and 1 deletions
  1. 1
    0
      index.android.js
  2. 1
    0
      index.ios.js
  3. 1
    1
      scripts/start.js

+ 1
- 0
index.android.js View File

1
+require('./playground/index');

+ 1
- 0
index.ios.js View File

1
+require('./playground/index');

+ 1
- 1
scripts/start.js View File

6
   exec.killPort(8081);
6
   exec.killPort(8081);
7
   exec.execSync(`watchman watch-del-all || true`);
7
   exec.execSync(`watchman watch-del-all || true`);
8
   exec.execSync(`adb reverse tcp:8081 tcp:8081 || true`);
8
   exec.execSync(`adb reverse tcp:8081 tcp:8081 || true`);
9
-  exec.execSync(`node ./node_modules/react-native/local-cli/cli.js start --root=./playground`);
9
+  exec.execSync(`node ./node_modules/react-native/local-cli/cli.js start`);
10
 }
10
 }