-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (20 loc) · 843 Bytes
/
Copy pathindex.js
File metadata and controls
24 lines (20 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* @format
*/
import { AppRegistry, Platform } from 'react-native';
import notifee from '@notifee/react-native';
// Initialize axios interceptors BEFORE any other imports that might make API calls
// This ensures version mismatch errors are handled from the very first request
import { setupSynkronusClientInterceptors } from './src/api/synkronus/client';
import { installErrorHandlers } from './src/diagnostics';
import ProfileRoot from './src/profiles/ProfileRoot';
import { name as appName } from './app.json';
// Set up interceptors immediately - before any React components or contexts load
setupSynkronusClientInterceptors();
installErrorHandlers();
if (Platform.OS === 'android') {
notifee.registerForegroundService(() => {
return new Promise(() => {});
});
}
AppRegistry.registerComponent(appName, () => ProfileRoot);