import React from 'react';
import { StyleSheet, View } from 'react-native';
import { FlatList, Text } from "react-native";
const DATA = [
{ id: '1', title: 'Alma' },
{ id: '2', title: 'Körte' },
];
const Item = ({ title }) => (
{title}
);
export default function App() {
const renderItem = ({ item }) => (
);
return (
item.id}
style={styles.list}
/>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
item: {
padding: 10,
backgroundColor: '#005588',
},
title: {
color: 'white',
fontSize: 32,
},
list: {
width: '100%',
},
});