BlueWallet/index.js

27 lines
782 B
JavaScript
Raw Normal View History

import './shim.js';
import React, { useEffect } from 'react';
import { AppRegistry, LogBox } from 'react-native';
2024-05-20 11:54:13 +02:00
import App from './App';
import A from './blue_modules/analytics';
import { restoreSavedPreferredFiatCurrencyAndExchangeFromStorage } from './blue_modules/currency';
2023-04-21 17:39:12 +02:00
if (!Error.captureStackTrace) {
// captureStackTrace is only available when debugging
Error.captureStackTrace = () => {};
}
2024-05-14 23:03:47 +02:00
LogBox.ignoreLogs(['Require cycle:', 'Battery state `unknown` and monitoring disabled, this is normal for simulators and tvOS.']);
const BlueAppComponent = () => {
useEffect(() => {
restoreSavedPreferredFiatCurrencyAndExchangeFromStorage();
A(A.ENUM.INIT);
}, []);
2019-09-20 02:09:33 +02:00
2024-05-14 23:03:47 +02:00
return <App />;
};
2020-05-19 19:16:30 +02:00
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);