123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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;
|