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