BlueWallet/index.js

33 lines
918 B
JavaScript
Raw Normal View History

2025-02-17 15:24:05 -04:00
import './gesture-handler';
import './shim.js';
import React, { useEffect } from 'react';
import { AppRegistry, LogBox } from 'react-native';
2024-05-20 10:54:13 +01:00
import App from './App';
import A from './blue_modules/analytics';
import { restoreSavedPreferredFiatCurrencyAndExchangeFromStorage } from './blue_modules/currency';
2023-04-21 16:39:12 +01:00
if (!Error.captureStackTrace) {
// captureStackTrace is only available when debugging
Error.captureStackTrace = () => {};
}
2025-02-12 00:23:11 -04:00
LogBox.ignoreLogs([
'Require cycle:',
'Battery state `unknown` and monitoring disabled, this is normal for simulators and tvOS.',
'Open debugger to view warnings.',
2025-02-23 20:32:52 +00:00
'Non-serializable values were found in the navigation state',
2025-02-12 00:23:11 -04:00
]);
2024-05-14 17:03:47 -04:00
const BlueAppComponent = () => {
useEffect(() => {
restoreSavedPreferredFiatCurrencyAndExchangeFromStorage();
A(A.ENUM.INIT);
}, []);
2019-09-19 20:09:33 -04:00
2024-05-14 17:03:47 -04:00
return <App />;
};
2020-05-19 18:16:30 +01:00
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);