316e5def72
Update Expo and React dependencies to compatible versions. Create a custom Metro config to resolve module conflicts in the workspace and map Jest modules to local node_modules. Add a SharedArrayBuffer polyfill for older runtimes and introduce an adapter for expo-notifications to abstract direct imports.
24 lines
644 B
TypeScript
24 lines
644 B
TypeScript
import { useEffect } from 'react';
|
|
import * as Notifications from './src/services/expoNotifications';
|
|
import AppNavigator from './src/navigation/AppNavigator';
|
|
|
|
export default function App() {
|
|
useEffect(() => {
|
|
// Request notification permissions on app start
|
|
Notifications.requestPermissionsAsync();
|
|
|
|
// Set up notification handler
|
|
Notifications.setNotificationHandler({
|
|
handleNotification: async () => ({
|
|
shouldShowAlert: true,
|
|
shouldPlaySound: true,
|
|
shouldSetBadge: false,
|
|
shouldShowBanner: true,
|
|
shouldShowList: true,
|
|
}),
|
|
});
|
|
}, []);
|
|
|
|
return <AppNavigator />;
|
|
}
|