forked from OpenDataEnsemble/ode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
22 lines (18 loc) · 724 Bytes
/
index.js
File metadata and controls
22 lines (18 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* @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 App from './App';
import { name as appName } from './app.json';
// Set up interceptors immediately - before any React components or contexts load
setupSynkronusClientInterceptors();
if (Platform.OS === 'android') {
notifee.registerForegroundService(() => {
return new Promise(() => {});
});
}
AppRegistry.registerComponent(appName, () => App);