import React from 'react'; import { ImageBackground, View } from 'react-native'; import { Avatar, Button, Divider, Layout, StyleService, Text, useStyleSheet, } from '@ui-kitten/components'; import { ClockIcon, HeartIcon, MessageCircleIcon } from './extra/icons'; import { Article } from './extra/data'; const data: Article = Article.howToEatHealthy(); export default (): React.ReactElement => { const styles = useStyleSheet(themedStyles); return ( {data.title} {data.content} {data.date} ); }; const themedStyles = StyleService.create({ container: { flex: 1, }, headerContainer: { height: 192, zIndex: 1, }, authorPhoto: { position: 'absolute', left: 24, bottom: -24, borderWidth: 2, borderColor: 'border-basic-color-2', }, titleLabel: { marginTop: 48, marginBottom: 24, }, contentContainer: { flex: 1, paddingHorizontal: 24, }, dateIcon: { width: 24, height: 24, tintColor: 'text-hint-color', }, dateLabel: { flex: 1, marginHorizontal: 8, }, activityContainer: { flexDirection: 'row', alignItems: 'center', paddingHorizontal: 16, paddingVertical: 8, }, reactionButton: { paddingHorizontal: 0, }, });