-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
54 lines (51 loc) · 1.39 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { StatusBar } from "expo-status-bar";
import { ScrollView, StyleSheet, View, Text } from "react-native";
import Rotation from "./components/Rotation";
import Circular from "./components/Circular";
import MultipleItemTranslation from "./components/MultipleItemTranslation";
import OptionsSelector from "./components/OptionsSelector";
import Carousel from "./components/Carousel";
import CursorGestureHandler from "./components/CursorGestureHandler";
import Swipe from "./components/Swipe";
const options = [
{ value: "rotation", label: "Rotation", component: <Rotation /> },
{ value: "circular", label: "Circular", component: <Circular /> },
{
value: "transform",
label: "Multiple Items Translation",
component: <MultipleItemTranslation />,
},
{
value: "carousel",
label: "Carousel",
component: <Carousel />,
},
{
value: "cursorGestureHandler",
label: "Cursor Gesture Handler",
component: <CursorGestureHandler />,
},
{
value: "swipe",
label: "Swipe",
component: <Swipe />,
},
];
export default function App() {
return (
<View style={styles.container}>
<OptionsSelector options={options} />
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
height: "100%",
width: "100%",
},
});