AppNavigator.tsx 840 Bytes
Newer Older
Milan John Paul Digiuseppe's avatar
Milan John Paul Digiuseppe committed
1 2 3
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import CreateCacheNavigator from './CreateCacheNavigator';
4
import CameraModal from '../screens/create/CameraModal';
Milan DiGiuseppe's avatar
Milan DiGiuseppe committed
5 6
import SavedMessagesScreen from '../screens/SavedMessagesScreen';
import DiscoverScreen from '../screens/DiscoverScreen';
Milan John Paul Digiuseppe's avatar
Milan John Paul Digiuseppe committed
7 8 9 10 11

const Stack = createStackNavigator();
const AppNavigator = () => (
  <Stack.Navigator mode={'modal'} headerMode={'none'}>
    <Stack.Screen
Milan DiGiuseppe's avatar
Milan DiGiuseppe committed
12 13
      name={'Discover'}
      component={DiscoverScreen}
Milan John Paul Digiuseppe's avatar
Milan John Paul Digiuseppe committed
14 15 16 17 18
    />
    <Stack.Screen
      name={'Create'}
      component={CreateCacheNavigator}
    />
Milan DiGiuseppe's avatar
Milan DiGiuseppe committed
19 20 21 22
    <Stack.Screen
      name={'Saved'}
      component={SavedMessagesScreen}
    />
23 24 25 26
    <Stack.Screen
      name={'CameraModal'}
      component={CameraModal}
    />
Milan John Paul Digiuseppe's avatar
Milan John Paul Digiuseppe committed
27 28 29 30
  </Stack.Navigator>
);

export default AppNavigator;