-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
21 lines (19 loc) · 933 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** @format */
import 'node-libs-react-native/globals';
import './globals';
import { AppRegistry, Text, TextInput, YellowBox } from 'react-native';
import _ from 'lodash';
import { name as appName } from './app.json';
import App from './App';
import { updateCoinFee } from './client/support_coin_list';
TextInput.defaultProps = Object.assign({}, TextInput.defaultProps, { allowFontScaling: false });
Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false });
updateCoinFee();
AppRegistry.registerComponent(appName, () => App);
YellowBox.ignoreWarnings(['Setting a timer', 'WebView has been', 'Async Storage has', 'requires main queue setup.', 'Accessing view manager', 'Slider has']);
const _console = _.clone(console);
console.warn = message => {
if (!message.match(/Setting a timer|WebView has been|Async Storage has|Accessing view manager|Slider has/)) {
_console.warn(message);
}
};