import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View} from 'react-native'; import moment from 'moment' import Color from '../../style/color' import UserIcon from './userIcon' export default class DiaryFull extends Component { render() { let diary = this.props.diary; let user = diary.user; return ( {user.name} 《{diary.notebook_subject}》 {moment(diary.created).format('H:mm')} {diary.content} ); } } const localStyle = StyleSheet.create({ box: { flexDirection: "row", overflow: "hidden", paddingHorizontal: 15, paddingTop: 15 }, body: { flexDirection: "column", flexGrow: 1, flexShrink: 1, paddingTop: 2 }, title: { flexDirection: "row", alignItems: "flex-end", paddingBottom: 5 }, titleName: { fontWeight: 'bold', color: Color.text, fontSize: 14 }, titleText: { fontSize: 12, color: Color.inactiveText }, content: { flexGrow: 1, lineHeight: 24, color: Color.text, fontSize: 15, textAlignVertical: 'bottom', paddingBottom: 15 } });