BlueWallet/index.js

29 lines
691 B
JavaScript
Raw Normal View History

import React, { useEffect } from 'react';
import './shim.js';
2020-06-22 20:29:43 +02:00
import { AppRegistry, YellowBox } from 'react-native';
import App from './App';
2020-08-11 20:16:24 +02:00
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',
]);
2019-09-20 02:09:33 +02:00
const A = require('./blue_modules/analytics');
if (!Error.captureStackTrace) {
// captureStackTrace is only available when debugging
Error.captureStackTrace = () => {};
}
const BlueAppComponent = () => {
useEffect(() => {
A(A.ENUM.INIT);
}, []);
2019-09-20 02:09:33 +02:00
return <App />;
};
2020-05-19 19:16:30 +02:00
AppRegistry.registerComponent('BlueWallet', () => BlueAppComponent);