2020-06-20 06:18:17 +02:00
|
|
|
import React, { useEffect } from 'react';
|
2018-12-11 23:52:46 +01:00
|
|
|
import './shim.js';
|
|
|
|
import { AppRegistry } from 'react-native';
|
2019-09-25 05:42:21 +02:00
|
|
|
import App from './App';
|
2019-09-20 02:09:33 +02:00
|
|
|
|
2019-10-30 04:00:07 +01:00
|
|
|
const A = require('./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);
|