0.4.4 • Published 1 year ago

@minchat/react-native-chat-ui v0.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Build your own chat UI with React Native components in a few minutes. React Native Chat UI Kit from MinChat is an open source UI toolkit for developing mobile chat applications.

React Native Chat UI makes chat UI development faster

Documentation

You can view detailed documentation here

You can also read this tutorial on Building a React Native Chat App: A Comprehensive Guide

Install

Component Library

Using npm.

npm install @minchat/react-native-chat-ui

Using yarn.

yarn add @minchat/react-native-chat-ui

React Native Expo

npx expo install react-native-svg

React Native CLI

  1. Install dependecies

from npm

npm install react-native-svg

from yarn

yarn add react-native-svg
  1. Link native code
cd ios && pod install

Usage

import { MainContainer } from "@minchat/react-native-chat-ui";

        <View> <MainContainer
            inbox={{
                onScrollToBottom: () => { },
                themeColor: "#6ea9d7",
                conversations: [{
                    id: "1",
                    title: "Epic gamers",
                    avatar: "https://images.pexels.com/photos/1704488/pexels-photo-1704488.jpeg?cs=srgb&dl=pexels-suliman-sallehi-1704488.jpg&fm=jpg"
                    , lastMessage: {
                        seen: false,
                        text: "Hello everbody"
                        ,
                        user: {
                            id: "martha_stewart",
                            name: "Daniel",
                            avatar: "https://media.sproutsocial.com/uploads/2022/06/profile-picture.jpeg"
                        }
                    }
                }, {
                    id: "2",

                    title: "Devops",
                    lastMessage: {
                        seen: true,
                        text: "How do you enable an actuator on a servo motor of a hardware and design laboratory experiment in the city,an actuator on a servo motor of a hardware and design laboratory experiment in the city",

                        user: {
                            avatar: "https://fsdfsdfsdfs",
                            id: "daniel",
                            name: "Daniel",
                        }
                    }
                }],
                loading: false,
                onConversationClick: () => console.log("onChat click"),
            }}
            selectedConversation={
                {
                    themeColor: "#6ea9d7",
                    messages: [
                        {
                            "user": {
                                "id": "danny_1",
                                "name": "Daniel Georgetown",
                                avatar: "https://media.sproutsocial.com/uploads/2022/06/profile-picture.jpeg"

                            },
                            "text": "first message"
                        },
                        {
                            "user": {
                                "id": "mark",
                                "name": "Markus"
                            },
                            "text": "hello"
                        },],
                        header: "Sandra Bullock",
                currentUserId: "danny_1",
                onSendMessage: () => console.log("onSendMessage"),
                onBack: () => { }

            }
        }
    />
        </View>

Typescript

This library is written in Typescript, by extension can be used in Javascript projects as well.

Show your support

Now if you made your awesome chat UI and you love this library, please ⭐ this repository!

Community and support

Articles on the minchat blog

Website

https://minchat.io

Unleash the power of seamless chat functionality with MinChat's React Native Chat API! Say goodbye to backend worries and hello to effortless integration. Get started today and save months of development time. Build a full-fledged React chat application in just minutes, not months!

License

MIT

0.4.4

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.2

1 year ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.14

1 year ago

0.3.13

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

1 year ago

0.3.9

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.18

1 year ago

0.2.16

1 year ago

0.2.15

1 year ago

0.2.14

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago