mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* improve analytics handling * add error boundary that flushes segment events before error occurs * upgrade segment analytics package * flush analytics when user encounters error screen * track all click events * add tracking to loading screen * better init and click event names * track cloud backup and modal actions * use __DEV__ for debugging * add tracking to account recovery, auth, mock data * return false instead of throwing * add more tracking events * save wip event updating * abstract analytic event names * update click events * clean up * move reasons comment * add unsupported passport event
35 lines
925 B
TypeScript
35 lines
925 B
TypeScript
import 'react-native-get-random-values';
|
|
|
|
import { Buffer } from 'buffer';
|
|
import React from 'react';
|
|
import { YStack } from 'tamagui';
|
|
|
|
import ErrorBoundary from './src/components/ErrorBoundary';
|
|
import AppNavigation from './src/navigation';
|
|
import { initSentry, wrapWithSentry } from './src/Sentry';
|
|
import { AuthProvider } from './src/stores/authProvider';
|
|
import { DatabaseProvider } from './src/stores/databaseProvider';
|
|
import { PassportProvider } from './src/stores/passportDataProvider';
|
|
|
|
initSentry();
|
|
|
|
global.Buffer = Buffer;
|
|
|
|
function App(): React.JSX.Element {
|
|
return (
|
|
<ErrorBoundary>
|
|
<YStack f={1} h="100%" w="100%">
|
|
<AuthProvider>
|
|
<PassportProvider>
|
|
<DatabaseProvider>
|
|
<AppNavigation />
|
|
</DatabaseProvider>
|
|
</PassportProvider>
|
|
</AuthProvider>
|
|
</YStack>
|
|
</ErrorBoundary>
|
|
);
|
|
}
|
|
|
|
export default wrapWithSentry(App);
|