BlueWallet/index.js
Marcos Rodriguez Vélez bc8067e9ab
REF: Use NativeStack
2021-09-13 18:43:26 +01:00

28 lines
680 B
JavaScript

import Bugsnag from '@bugsnag/react-native';
import React, { useEffect } from 'react';
import './shim.js';
import { AppRegistry } from 'react-native';
import App from './App';
import { BlueStorageProvider } from './blue_modules/storage-context';
Bugsnag.start();
const A = require('./blue_modules/analytics');
if (!Error.captureStackTrace) {
// captureStackTrace is only available when debugging
Error.captureStackTrace = () => {};
}
const BlueAppComponent = () => {
useEffect(() => {
A(A.ENUM.INIT);
}, []);
return (
<BlueStorageProvider>
<App />
</BlueStorageProvider>
);
};
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);