jabo-react-native-super-simple-chat
TypeScript icon, indicating that this package has built-in type declarations

0.0.76 • Public • Published
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>
  );
}

Package Sidebar

Install

npm i jabo-react-native-super-simple-chat

Weekly Downloads

120

Version

0.0.76

License

MIT

Unpacked Size

72.1 MB

Total Files

5544

Last publish

Collaborators

  • jabooooo