jabo-react-native-super-simple-chat
v0.0.76
Published
A super simple chat UI SDK
Downloads
88
Readme
import { MessageBubble } from 'react-native-super-simple-chat';
export default function App() {
const messages = [
{ text: 'Hi', userID: 1 },
{ text: 'Hi', userID: 2 },
{ text: 'How are you?', userID: 1 },
{ text: 'I am good, how are you?', userID: 2 },
{ text: 'Not bad', userID: 1 },
];
return (
<View style={styles.container}>
{messages.map((msg) => (
<MessageBubble text={msg.text} isSender={msg.userID === 1} />
))}
</View>
);
}