/** * 文章渲染项目组件 * @邠心vbe on 2023/10/24 */ import React from 'react'; import { Image, Pressable, StyleSheet, View } from 'react-native'; import TextView from '../../components/TextView'; import utils from '../../utils/utils'; export default ItemArticle = ({item, index, separators, onPress}) => { return ( {item.articleViews} {item.articleTitle} {" " + item.createTime} {item.articleTypeName} {item.articleContent} ) } const styles = StyleSheet.create({ notyItemView: { padding: 16, flexDirection: 'row' }, unotyItemView: { padding: 16, flexDirection: 'row', backgroundColor: "#F0F0F0" }, articleImage: { width: 85, height: 85, borderRadius: 6, marginRight: 16, marginBottom: 8 }, readIcon: { top: 2, left: -5, width: 7, height: 6, position: 'absolute' }, itemContent: { flex: 1 }, textTitle: { color: textPrimary, fontSize: 15, fontWeight: 'bold', paddingBottom: 4 }, textDate: { color: textSecondary, fontSize: 10, lineHeight: 10, paddingBottom: 4 }, textView: { color: textPrimary, fontSize: 11, lineHeight: 12, paddingLeft: 4, paddingRight: 16 }, labelTypeText: { fontSize: 10, borderWidth: 1, borderRadius: 4, borderColor: colorPrimary, ...$padding(2, 6) }, unread: { fontWeight: 'bold' }, textMessage: { color: textPrimary, fontSize: 12, paddingTop: 2 } })