import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LoginScreen from './src/pages/Login';
import HomeScreen from './src/pages/Home';
import FaceScreen from './src/pages/Face';
import CustomScreen from './src/pages/Custom';
import UdpScreen from './src/pages/Udp';

const Stack = createNativeStackNavigator();

function App(): React.JSX.Element {
  return (
    <NavigationContainer>
      <Stack.Navigator initialRouteName="Udp">
        <Stack.Screen
          name="Udp"
          component={UdpScreen}
          options={{
            title: '测试udp',
          }}
        />
        <Stack.Screen
          name="Login"
          component={LoginScreen}
          options={{
            title: '登录',
            headerBackVisible: false,
            headerShown: false,
          }}
        />
        <Stack.Screen
          name="Home"
          component={HomeScreen}
          options={{
            title: '首页',
            headerBackVisible: false,
            headerShown: false,
          }}
        />
        <Stack.Screen
          name="Face"
          component={FaceScreen}
          options={{
            title: '人脸识别',
          }}
        />
        <Stack.Screen
          name="Custom"
          component={CustomScreen}
          options={{
            title: '自定义SDK',
          }}
        />
      </Stack.Navigator>
    </NavigationContainer>
  );
}

export default App;
