diff --git a/assets/illustration/66139.jpg b/assets/illustration/66139.jpg new file mode 100644 index 0000000..f24fc69 Binary files /dev/null and b/assets/illustration/66139.jpg differ diff --git a/assets/illustration/cheeky.png b/assets/illustration/cheeky.png new file mode 100644 index 0000000..d7b950c Binary files /dev/null and b/assets/illustration/cheeky.png differ diff --git a/screens/ScreenHome.js b/screens/ScreenHome.js index e2cec15..c515603 100644 --- a/screens/ScreenHome.js +++ b/screens/ScreenHome.js @@ -1,28 +1,102 @@ -import { StyleSheet, Text, View } from 'react-native'; +import { StyleSheet, Text, View, Image, TouchableOpacity, FlatList } from 'react-native'; import Container from '../components/Container'; const ScreenHome = ({ navigation }) => { + + const menuItems = [ + { + key: '1', + title: 'Apa aja', + icon: require('../assets/illustration/cheeky.png'), + screen: 'Contoh', + }, + { + key: '2', + title: 'Boleh', + icon: require('../assets/illustration/cheeky.png'), + screen: 'Contoh', + }, + { + key: '3', + title: 'Boleh', + icon: require('../assets/illustration/cheeky.png'), + screen: 'Contoh', + } + ]; + + const renderItem = ({ item }) => ( + navigation.navigate(item.screen)} + > + + {item.title} + + ); + + return ( + - Ini Header - - - Ini Main Content + + + Check Care + + item.key} + contentContainerStyle={styles.menuGrid} + /> + ); } const styles = StyleSheet.create({ header: { - flex:1, - backgroundColor:"#FFDDDD" + flex: 1, + backgroundColor: "#FFDDDD" + }, + headerImage: { + width: '100%', + height: '100%', + resizeMode: 'cover', + position: 'absolute', + }, + title: { + fontSize: 36, + textAlign: 'center', + fontWeight: 'bold', }, main: { - flex:3, - backgroundColor:"#DDFFDD" - } + flex: 3, + backgroundColor: "#DDFFDD" + }, + menuGrid: { + marginTop: 20, + justifyContent: 'center', + }, + menuItem: { + flex: 1, + margin: 10, + alignItems: 'center', + }, + menuIcon: { + width: 50, + height: 50, + marginBottom: 8, + }, + menuTitle: { + fontSize: 14, + textAlign: 'center', + }, }); export default ScreenHome; \ No newline at end of file