-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ts
More file actions
35 lines (30 loc) · 937 Bytes
/
index.ts
File metadata and controls
35 lines (30 loc) · 937 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
25
26
27
28
29
30
31
32
33
34
35
/**
* App Entry Point
*
* Note: NativeJSLogger shim is handled by Metro config (see metro.config.js)
* This fixes expo-modules-core compatibility with RN 0.81.5
*/
import { Platform } from 'react-native';
// Silence Android RealtimeKit foreground service warnings (non-critical)
if (Platform.OS === 'android') {
const originalWarn = console.warn;
const originalError = console.error;
console.warn = (...args) => {
const message = args[0]?.toString() || '';
if (message.includes('RTKForegroundService') ||
message.includes('ForegroundServiceDidNotStopInTimeException')) {
return;
}
originalWarn(...args);
};
console.error = (...args) => {
const message = args[0]?.toString() || '';
if (message.includes('RTKForegroundService') ||
message.includes('ForegroundServiceDidNotStopInTimeException')) {
return;
}
originalError(...args);
};
}
// Load expo-router
import 'expo-router/entry';