app.js
643 Bytes
/**
* Created by Cassie on 208/03/21.
*/
import { YellowBox } from 'react-native';
import { AppRegistry } from 'react-native';
import index from './index.js';
if (!__DEV__) {
global.console = {
info: () => {},
log: () => {},
warn: () => {},
error: () => {},
};
}
console.ignoredYellowBox = ['Warning: BackAndroid is deprecated. Please use BackHandler instead.','source.uri should not be an empty string','Invalid props.style key'];
console.disableYellowBox = true; // 关闭全部黄色警告
YellowBox.ignoreWarnings(['Class RCTCxxModule']);
AppRegistry.registerComponent('metroApp', () => index);