-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
34 lines (29 loc) · 1.74 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
// Imports for other views
import PasswordScreen from './src/views/PasswordScreen';
import DeviceListScreen from './src/views/DeviceListScreen';
import DeviceDetailScreen from './src/views/DeviceDetailsScreen';
import VarScreen from './src/views/navigation/VarScreen';
import AudVidScreen from './src/views/navigation/AudVidScreen';
import AudioScreen from './src/views/tabs/audio_tab';
import VideoScreen from './src/views/tabs/video_tab';
import CustomHeader from './src/components/CustomHeader';
const Stack = createStackNavigator();
const App: React.FC = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Scan">
<Stack.Screen name="DeviceList" component={DeviceListScreen} options={{ title: 'Device List' }} />
<Stack.Screen name='Password' component={PasswordScreen} options={{ header: () => <CustomHeader title="Password Verification" /> }} />
<Stack.Screen name="DeviceDetail" component={DeviceDetailScreen} options={{ title: 'Device Detail', header: () => <CustomHeader title="Device Detail" /> }} />
{/*<Stack.Screen name='TabScreen' component={TabScreen} options={{ title: 'Device Details' }} />*/}
<Stack.Screen name='VarScreen' component={VarScreen} options={{title: 'Modifications'}} />
<Stack.Screen name='AudVidScreen' component={AudVidScreen} options={{ title: ''}} />
<Stack.Screen name="audio" component={AudioScreen} options={{ title: '' }} />
<Stack.Screen name="video" component={VideoScreen} options={{ title: '' }} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;