import React from 'react';
import {
FlatList,
Image,
View,
TouchableOpacity,
} from 'react-native';
import {
RkText,
RkCard,
RkStyleSheet,
} from 'react-native-ui-kitten';
import { SocialBar } from '../../components';
import { data } from '../../data';
import NavigationType from '../../config/navigation/propTypes';
export class Articles4 extends React.Component {
static propTypes = {
navigation: NavigationType.isRequired,
};
static navigationOptions = {
title: 'Article List'.toUpperCase(),
};
state = {
data: data.getArticles(),
};
extractItemKey = (item) => `${item.id}`;
renderItem = ({ item }) => (
this.props.navigation.navigate('Article', { id: item.id })}>
{item.header}
{`${item.user.firstName} ${item.user.lastName}`}
{item.text}
);
render = () => (
);
}
const styles = RkStyleSheet.create(theme => ({
container: {
backgroundColor: theme.colors.screen.scroll,
paddingVertical: 8,
paddingHorizontal: 14,
},
card: {
marginVertical: 8,
},
post: {
marginTop: 13,
},
}));