-
Notifications
You must be signed in to change notification settings - Fork 1
/
Router.js
23 lines (20 loc) · 855 Bytes
/
Router.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import 'react-native-gesture-handler';
import * as React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createDrawerNavigator} from '@react-navigation/drawer';
import AnimatedHeaderAvatar from './src/AnimatedHeaderAvatar';
import HeaderAnimation from './src/HeaderAnimation';
import PanResponderSample from './src/PanResponderSample';
const Drawer = createDrawerNavigator();
const Router = () => {
return (
<NavigationContainer>
<Drawer.Navigator initialRouteName="AvatarAnimation">
<Drawer.Screen name="AvatarAnimation" component={AnimatedHeaderAvatar} />
<Drawer.Screen name="HeaderAnimation" component={HeaderAnimation} />
<Drawer.Screen name="PanResponder" component={PanResponderSample} />
</Drawer.Navigator>
</NavigationContainer>
);
};
export default Router;