react-native-navigation的迁移库

123456789101112
  1. const exec = require('shell-utils').exec;
  2. run();
  3. function run() {
  4. // exec.killPort(8081);
  5. // exec.execSync(`rd "./lib/dist" /Q/S`);
  6. exec.execSync(`"./node_modules/.bin/tsc"`);
  7. exec.execSync(`adb reverse tcp:8081 tcp:8081`);
  8. exec.execSync(`node ./node_modules/react-native/local-cli/cli.js start`);
  9. }