-
Notifications
You must be signed in to change notification settings - Fork 0
/
Moments.tsx
55 lines (52 loc) · 1.56 KB
/
Moments.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
55
import { View, Text, StyleSheet, ScrollView } from "react-native";
import constants from "../../../constants";
import { Button } from "../Button/Button";
import { MomentsList } from "./MomentsList";
import { useNavigation } from "@react-navigation/native";
export const Moments = () => {
const navigation = useNavigation();
return (
<View style={{ flex: 1, marginTop: constants.spacing.standard }}>
<Text style={styles.title}>I miei momenti</Text>
<MomentsList />
<View style={{ paddingHorizontal: constants.spacing.standard }}>
<Button
props={{
style: {
height: 60,
padding: constants.spacing.standard,
borderRadius: 20,
backgroundColor: constants.colors.purple,
marginBottom: constants.spacing.standard * 2,
marginTop: -constants.spacing.standard,
},
}}
withFeedback={true}
onPress={() => navigation.navigate("PostCamera")}
>
<View>
<Text
style={{
fontSize: 18,
color: constants.colors.words,
fontWeight: "900",
lineHeight: 30,
}}
>
condividi un Momento
</Text>
</View>
</Button>
</View>
</View>
);
};
const styles = StyleSheet.create({
title: {
color: constants.colors.words,
fontWeight: "900",
fontSize: 25,
marginBottom: constants.spacing.standard,
marginLeft: constants.spacing.standard,
},
});