react-native-navigation的迁移库

123456789101112131415
  1. const _ = require('lodash');
  2. const shellUtils = require('shell-utils');
  3. const fs = require('fs');
  4. function run() {
  5. console.log('fixing RCTJSStackFrame.m to not break analysis'); //eslint-disable-line
  6. const path = `${process.cwd()}/node_modules/react-native/React/Base/RCTJSStackFrame.h`;
  7. const lines = String(fs.readFileSync(path)).split('\n');
  8. lines[24] = '+ (NSArray<RCTJSStackFrame *> *)stackFramesWithDictionaries:(NSArray *)dicts;';
  9. fs.writeFileSync(path, lines.join('\n'));
  10. }
  11. run();