You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Commt, a powerful chat plugin designed to seamlessly integrate secure and customizable chat functionalities into your React Native applications. Offering AES encryption as the default and end-to-end (E2E) support, Commt ensures a secure and reliable communication experience for your users.
13
+
Welcome to Commt, a powerful chat plugin designed to seamlessly integrate secure and customizable chat functionalities into your React Native applications. Offering AES encryption as the default and end-to-end (E2E) support, Commt ensures a secure and reliable real-time communication experience for your users.
14
14
15
15
## Features
16
16
- Written in **TypeScript**
@@ -25,8 +25,8 @@ Welcome to Commt, a powerful chat plugin designed to seamlessly integrate secure
25
25
26
26
## Installation
27
27
28
-
- NPM: `npm i -S @commt/commt-rn-sdk`
29
-
- Yarn: `yarn add @commt/commt-rn-sdk`
28
+
- NPM: `npm i -S @commt/rn-sdk`
29
+
- Yarn: `yarn add @commt/rn-sdk`
30
30
31
31
For detailed installation instructions and configuration options, please refer to our [documentation](https://commt.co/doc/react-native#installation).
32
32
@@ -46,14 +46,13 @@ You can get client configs info from [Commt Dashboard](https://dashboard.commt.c
46
46
47
47
**App.tsx**
48
48
```
49
-
import CommtProvider from "@commt/commt-rn-sdk";
50
-
import useInitiate from "@commt/commt-rn-sdk/hooks/useInitiate";
49
+
import CommtProvider from "@commt/rn-sdk";
50
+
import { useInitiate } from "@commt/rn-sdk/hooks";
51
51
52
52
const ClientConfig = {
53
53
apiKey: "123456789?",
54
54
subscriptionKey: "0987654321?",
55
-
tenantId: "AD768342asdf?9892",
56
-
secret: "123456789018A_7JzPo?23F+4y#erPL"
55
+
secret: "123456789018A_7JzPo?23F+4y#erPL" // This is just and example you don't have to add secret here for initialization
57
56
};
58
57
59
58
function App(): JSX.Element {
@@ -69,7 +68,7 @@ function App(): JSX.Element {
69
68
70
69
**Home.tsx**
71
70
```
72
-
import { useSetMessages, useSetRooms, useSetUsers } from "@commt/commt-rn-sdk/hooks";
71
+
import { useSetMessages, useSetRooms, useSetUsers } from "@commt/rn-sdk/hooks";
73
72
74
73
const Home = () => {
75
74
// ...
@@ -100,7 +99,7 @@ import {
100
99
MessageList,
101
100
SearchInput,
102
101
MessagesHeader
103
-
} from "@commt/commt-rn-sdk/components";
102
+
} from "@commt/rn-sdk/components";
104
103
105
104
const Messages = () => {
106
105
// ...
@@ -123,7 +122,7 @@ const Messages = () => {
123
122
124
123
**Chat.tsx**
125
124
```
126
-
import { ChatHeader, Chat } from "@commt/commt-rn-sdk/components";
125
+
import { ChatHeader, Chat } from "@commt/rn-sdk/components";
0 commit comments