BlueWallet/index.js
2024-03-31 20:59:14 +01:00

28 lines
615 B
JavaScript

import './shim.js';
import React, { useEffect } from 'react';
import { AppRegistry } from 'react-native';
import App from './App';
import { BlueStorageProvider } from './blue_modules/storage-context';
import A from './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);