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 ( Check Care Apps item.key} contentContainerStyle={styles.menuGrid} /> ); } const styles = StyleSheet.create({ header: { 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" }, 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;