import React from 'react';
import { StyleSheet, View } from 'react-native';
import { FlatList, Text } from "react-native";
import Header from './components/header';
const DATA = [
{ id: '1', task: 'Angular tanulás' },
{ id: '2', task: 'Laravel tanulás' },
];
const Item = ({ task }) => (
{task}
);
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',
},
task: {
color: 'white',
fontSize: 32,
},
list: {
width: '100%',
},
});