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