mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
27 lines
692 B
JavaScript
27 lines
692 B
JavaScript
import React, { useEffect } from 'react';
|
|
import './shim.js';
|
|
import { AppRegistry } from 'react-native';
|
|
import App from './App';
|
|
import { BlueStorageProvider } from './blue_modules/storage-context';
|
|
import { enableScreens } from 'react-native-screens';
|
|
const A = require('./blue_modules/analytics');
|
|
enableScreens(false)
|
|
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);
|