forked from alexandrius/React-Native-Animation-Workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.js
34 lines (31 loc) · 992 Bytes
/
root.js
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 React from 'react';
import { View, Button } from 'react-native';
export default function Root({ navigation }) {
const divider = <View style={{ height: 10 }} />;
return (
<View style={{
justifyContent: 'center',
flex: 1
}}>
<Button title='Morph Slider' onPress={() => {
navigation.navigate('MorphSlider')
}} />
{divider}
<Button title='Login' onPress={() => {
navigation.navigate('Login')
}} />
{divider}
<Button title='Curve' onPress={() => {
navigation.navigate('Curve')
}} />
{divider}
<Button title='3D Menu' onPress={() => {
navigation.navigate('Menu')
}} />
{divider}
<Button title='Ballon Slider' onPress={() => {
navigation.navigate('BalloonSlider')
}} />
</View>
)
}