-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
31 lines (29 loc) · 1.02 KB
/
App.tsx
File metadata and controls
31 lines (29 loc) · 1.02 KB
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
import React from 'react';
import { Provider as PaperProvider } from 'react-native-paper';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { SharePreviewScreen } from './src/ui/screens/SharePreviewScreen';
import { RootStackParamList } from './src/types/navigation';
import { HomeScreen } from './src/ui/screens/HomeScreen';
import { theme } from 'ui/theme';
const Stack = createNativeStackNavigator<RootStackParamList>();
export default function App() {
return (
<PaperProvider theme={theme}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{ title: 'Notifications' }}
/>
<Stack.Screen
name="SharePreview"
component={SharePreviewScreen}
options={{ title: 'Share Preview' }}
/>
</Stack.Navigator>
</NavigationContainer>
</PaperProvider>
);
}