Skip to content

Commit e6fee54

Browse files
Add files via upload
1 parent 8f3264a commit e6fee54

24 files changed

+573
-0
lines changed

app/assets/background.jpg

413 KB
Loading

app/assets/chair.jpg

505 KB
Loading

app/assets/couch.jpg

582 KB
Loading

app/assets/icon.png

642 Bytes
Loading

app/assets/jacket.jpg

395 KB
Loading

app/assets/logo-red.png

18 KB
Loading

app/assets/mosh.jpg

72.3 KB
Loading

app/assets/splash.png

9.09 KB
Loading

app/components/AppButton.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from "react";
2+
import { StyleSheet, Text, TouchableOpacity } from "react-native";
3+
4+
import colors from "../config/colors";
5+
6+
function AppButton({ title, onPress, color = "primary" }) {
7+
return (
8+
<TouchableOpacity
9+
style={[styles.button, { backgroundColor: colors[color] }]}
10+
onPress={onPress}
11+
>
12+
<Text style={styles.text}>{title}</Text>
13+
</TouchableOpacity>
14+
);
15+
}
16+
17+
const styles = StyleSheet.create({
18+
button: {
19+
backgroundColor: colors.primary,
20+
borderRadius: 25,
21+
justifyContent: "center",
22+
alignItems: "center",
23+
padding: 15,
24+
width: "100%",
25+
marginVertical: 10,
26+
},
27+
text: {
28+
color: colors.white,
29+
fontSize: 18,
30+
textTransform: "uppercase",
31+
fontWeight: "bold",
32+
},
33+
});
34+
35+
export default AppButton;

app/components/AppText.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from "react";
2+
import { Text, StyleSheet, Platform } from "react-native";
3+
4+
function AppText({ children, style }) {
5+
return <Text style={[styles.text, style]}>{children}</Text>;
6+
}
7+
8+
const styles = StyleSheet.create({
9+
text: {
10+
fontSize: 18,
11+
fontFamily: Platform.OS === "android" ? "Roboto" : "Avenir",
12+
},
13+
});
14+
15+
export default AppText;

0 commit comments

Comments
 (0)