import React, {Component} from 'react'; import {Image, StyleSheet, Text, View} from 'react-native'; import Ionicons from 'react-native-vector-icons/Ionicons'; import Touchable from '../touchable'; import Color from '../../style/color'; function unique(array) { let n = []; for(let i=0; i it.content.author.name)).join('、'); const body = `${users} 回复了你`; return ( this.props.onCommentPress(msg)}> {body} ) } renderFollow(msg) { const body = `${msg.content.user.name} 关注了你`; return ( this.props.onFollowPress(msg)}> {body} ) } renderLike(msg) { console.log(msg); const body = `${msg.content.user.name} 给了你一个创可贴`; return ( this.props.onLikePress(msg)}> {body} ) } } const localStyle = StyleSheet.create({ container: { padding: 20, borderColor: Color.line, borderBottomWidth: StyleSheet.hairlineWidth, flexDirection: 'row' }, icon: { marginRight: 10, marginTop: 1, lineHeight: 20 }, text: { flex: 1, lineHeight: 20 }, icon2: { width: 14, height: 14, marginRight: 10, marginTop: 4, }, });