Files
HKSingleParty/99_references/tinder-expo-master/components/Message.tsx
2025-05-28 09:55:51 +08:00

17 lines
451 B
TypeScript

import React from "react";
import { Text, View, Image } from "react-native";
import { MessageT } from "../types";
import styles from "../assets/styles";
const Message = ({ image, lastMessage, name }: MessageT) => (
<View style={styles.containerMessage}>
<Image source={image} style={styles.avatar} />
<View>
<Text>{name}</Text>
<Text style={styles.message}>{lastMessage}</Text>
</View>
</View>
);
export default Message;