import React, { useEffect } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { PaperProvider } from 'react-native-paper';
import { StackNavigator } from './src/navigation/StackNavigator';
import { linking } from './src/navigation/linking';
import { NotificationService } from './src/services/notifications';
import { DeepLinkingService } from './src/services/deep-linking';

export default function App() {
  useEffect(() => {
    NotificationService.initialize();
  }, []);

  return (
    <PaperProvider>
      <NavigationContainer linking={linking}>
        <StackNavigator />
      </NavigationContainer>
    </PaperProvider>
  );
}

