mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
27 lines
782 B
JavaScript
27 lines
782 B
JavaScript
import './shim.js';
|
|
|
|
import React, { useEffect } from 'react';
|
|
import { AppRegistry, LogBox } from 'react-native';
|
|
|
|
import App from './App';
|
|
import A from './blue_modules/analytics';
|
|
import { restoreSavedPreferredFiatCurrencyAndExchangeFromStorage } from './blue_modules/currency';
|
|
|
|
if (!Error.captureStackTrace) {
|
|
// captureStackTrace is only available when debugging
|
|
Error.captureStackTrace = () => {};
|
|
}
|
|
|
|
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);
|
|
}, []);
|
|
|
|
return <App />;
|
|
};
|
|
|
|
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);
|