2020-06-20 00:18:17 -04:00
|
|
|
import React, { useEffect } from 'react';
|
2018-12-11 22:52:46 +00:00
|
|
|
import './shim.js';
|
2020-06-22 19:29:43 +01:00
|
|
|
import { AppRegistry, YellowBox } from 'react-native';
|
2019-09-24 23:42:21 -04:00
|
|
|
import App from './App';
|
2020-08-11 19:16:24 +01:00
|
|
|
YellowBox.ignoreWarnings([
|
|
|
|
'Require cycle',
|
|
|
|
'Non-serializable values were',
|
|
|
|
"Can't perform a React state update",
|
|
|
|
'{"code":404',
|
|
|
|
'React has detected a change in the order of Hooks',
|
|
|
|
]);
|
2019-09-19 20:09:33 -04:00
|
|
|
|
2020-07-01 12:56:52 +01:00
|
|
|
const A = require('./blue_modules/analytics');
|
2018-12-11 22:52:46 +00:00
|
|
|
|
|
|
|
if (!Error.captureStackTrace) {
|
|
|
|
// captureStackTrace is only available when debugging
|
|
|
|
Error.captureStackTrace = () => {};
|
|
|
|
}
|
|
|
|
|
2020-06-20 00:18:17 -04:00
|
|
|
const BlueAppComponent = () => {
|
|
|
|
useEffect(() => {
|
2019-08-17 20:27:40 +01:00
|
|
|
A(A.ENUM.INIT);
|
2020-06-20 00:18:17 -04:00
|
|
|
}, []);
|
2019-09-19 20:09:33 -04:00
|
|
|
|
2020-06-20 00:18:17 -04:00
|
|
|
return <App />;
|
|
|
|
};
|
2018-12-11 22:52:46 +00:00
|
|
|
|
2020-05-19 18:16:30 +01:00
|
|
|
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);
|