2020-06-20 06:18:17 +02:00
|
|
|
import React, { useEffect } from 'react';
|
2018-12-11 23:52:46 +01:00
|
|
|
import './shim.js';
|
2020-06-22 20:29:43 +02:00
|
|
|
import { AppRegistry, YellowBox } from 'react-native';
|
2019-09-25 05:42:21 +02:00
|
|
|
import App from './App';
|
2020-08-11 20:16:24 +02: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-20 02:09:33 +02:00
|
|
|
|
2020-07-01 13:56:52 +02:00
|
|
|
const A = require('./blue_modules/analytics');
|
2018-12-11 23:52:46 +01:00
|
|
|
|
|
|
|
if (!Error.captureStackTrace) {
|
|
|
|
// captureStackTrace is only available when debugging
|
|
|
|
Error.captureStackTrace = () => {};
|
|
|
|
}
|
|
|
|
|
2020-06-20 06:18:17 +02:00
|
|
|
const BlueAppComponent = () => {
|
|
|
|
useEffect(() => {
|
2019-08-17 21:27:40 +02:00
|
|
|
A(A.ENUM.INIT);
|
2020-06-20 06:18:17 +02:00
|
|
|
}, []);
|
2019-09-20 02:09:33 +02:00
|
|
|
|
2020-06-20 06:18:17 +02:00
|
|
|
return <App />;
|
|
|
|
};
|
2018-12-11 23:52:46 +01:00
|
|
|
|
2020-05-19 19:16:30 +02:00
|
|
|
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);
|