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-10-07 08:24:36 -04:00
|
|
|
import { AppRegistry } from 'react-native';
|
2019-09-24 23:42:21 -04:00
|
|
|
import App from './App';
|
2020-10-24 13:20:59 -04:00
|
|
|
import { BlueStorageProvider } from './blue_modules/storage-context';
|
2023-04-21 16:39:12 +01: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-10-24 13:20:59 -04:00
|
|
|
return (
|
|
|
|
<BlueStorageProvider>
|
|
|
|
<App />
|
|
|
|
</BlueStorageProvider>
|
|
|
|
);
|
2020-06-20 00:18:17 -04:00
|
|
|
};
|
2018-12-11 22:52:46 +00:00
|
|
|
|
2020-05-19 18:16:30 +01:00
|
|
|
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);
|