BlueWallet/index.js
Cursor Agent 7bcbc78509 Replace react-native-randombytes with react-native-get-random-values
Co-authored-by: overtorment <overtorment@gmail.com>
2025-08-19 10:17:41 +01:00

34 lines
959 B
JavaScript

import './gesture-handler';
import 'react-native-get-random-values';
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.',
'Open debugger to view warnings.',
'Non-serializable values were found in the navigation state',
]);
const BlueAppComponent = () => {
useEffect(() => {
restoreSavedPreferredFiatCurrencyAndExchangeFromStorage();
A(A.ENUM.INIT);
}, []);
return <App />;
};
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);