import 'react-native-gesture-handler';
import React from 'react';
import { LogBox } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import NovaAlertProvider from './src/components/NovaAlert';
import AppNavigator from './src/navigation/AppNavigator';

LogBox.ignoreLogs(['TypeError: Network request failed']);

export default function App() {
  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      <SafeAreaProvider>
        <NovaAlertProvider>
          <AppNavigator />
        </NovaAlertProvider>
      </SafeAreaProvider>
    </GestureHandlerRootView>
  );
}
