1 |
|
2 |
|
3 | import { AppRegistry } from 'react-native';
|
4 | AppRegistry;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | const originalWarn = console.warn;
|
10 | console.warn = function warn(...args) {
|
11 | if (args.length > 0 &&
|
12 | typeof args[0] === 'string' &&
|
13 | (/^Require cycle: .*node_modules/.test(args[0]) ||
|
14 | /Use UIManager\.getViewManagerConfig\('LottieAnimationView'\) instead\./.test(args[0]) ||
|
15 | /ReactNative\.NativeModules\.LottieAnimationView\.getConstants/.test(args[0]))) {
|
16 | return;
|
17 | }
|
18 | originalWarn.apply(console, args);
|
19 | };
|
20 | const originalError = console.error;
|
21 | console.error = function error(...args) {
|
22 | if (args.length > 0 &&
|
23 | typeof args[0] === 'string' &&
|
24 | /^Warning: .* has been extracted/.test(args[0])) {
|
25 | return;
|
26 | }
|
27 | originalError.apply(console, args);
|
28 | };
|
29 |
|
\ | No newline at end of file |