mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
29 lines
691 B
JavaScript
29 lines
691 B
JavaScript
import React, { useEffect } from 'react';
|
|
import './shim.js';
|
|
import { AppRegistry, YellowBox } from 'react-native';
|
|
import App from './App';
|
|
YellowBox.ignoreWarnings([
|
|
'Require cycle',
|
|
'Non-serializable values were',
|
|
"Can't perform a React state update",
|
|
'{"code":404',
|
|
'React has detected a change in the order of Hooks',
|
|
]);
|
|
|
|
const A = require('./blue_modules/analytics');
|
|
|
|
if (!Error.captureStackTrace) {
|
|
// captureStackTrace is only available when debugging
|
|
Error.captureStackTrace = () => {};
|
|
}
|
|
|
|
const BlueAppComponent = () => {
|
|
useEffect(() => {
|
|
A(A.ENUM.INIT);
|
|
}, []);
|
|
|
|
return <App />;
|
|
};
|
|
|
|
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);
|