BlueWallet/index.js

31 lines
741 B
JavaScript
Raw Normal View History

import './shim.js';
import React, { useEffect } from 'react';
2020-10-07 14:24:36 +02:00
import { AppRegistry } from 'react-native';
import App from './App';
import { BlueStorageProvider } from './blue_modules/storage-context';
import A from './blue_modules/analytics';
2024-04-18 03:05:48 +02:00
import { SettingsProvider } from './components/Context/SettingsContext';
2023-04-21 17:39:12 +02:00
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>
2024-04-18 03:05:48 +02:00
<SettingsProvider>
<App />
</SettingsProvider>
</BlueStorageProvider>
);
};
2020-05-19 19:16:30 +02:00
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);