BlueWallet/index.js

26 lines
618 B
JavaScript
Raw Normal View History

import React, { useEffect } from 'react';
import './shim.js';
2020-10-07 14:24:36 +02:00
import { AppRegistry } from 'react-native';
import App from './App';
import { BlueStorageProvider } from './blue_modules/storage-context';
2023-04-21 17:39:12 +02:00
const A = require('./blue_modules/analytics');
if (!Error.captureStackTrace) {
// captureStackTrace is only available when debugging
Error.captureStackTrace = () => {};
}
const BlueAppComponent = () => {
useEffect(() => {
A(A.ENUM.INIT);
}, []);
2019-09-20 02:09:33 +02:00
return (
<BlueStorageProvider>
<App />
</BlueStorageProvider>
);
};
2020-05-19 19:16:30 +02:00
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);