forked from BlueWallet/BlueWallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
22 lines (17 loc) · 625 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React, { useEffect } from 'react';
import './shim.js';
import { AppRegistry, YellowBox } from 'react-native';
import App from './App';
YellowBox.ignoreWarnings(['Require cycle', 'Non-serializable values were', "Can't perform a React state update", '{"code":404']);
const A = require('./blue_modules/analytics');
if (!Error.captureStackTrace) {
// captureStackTrace is only available when debugging
Error.captureStackTrace = () => {};
}
const BlueAppComponent = () => {
useEffect(() => {
A(A.ENUM.INIT);
}, []);
return <App />;
};
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);