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