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

0.1.58 • Public • Published

react-native-chat-platform

chat platform in tiki ecosystem

Installation

npm install react-native-chat-platform

Require some pakages

  1. react-native-webrtc
  2. react-native-switch-audio-output
  3. react-native-webview
  4. react-native-svg
  5. socket.io-client (version 2.3.0)
  6. react-native-sound
  7. react-native-background-timer

Usage

import { ReactNativeChatPlatForm } from 'react-native-chat-platform';

// ...
<ReactNativeChatPlatForm env="uat" options={options} onBack={handleOnBack} /> :
Properties Description
accessToken The token of the Tiki's ecosystem was provided when account login successfully
refreshToken Refresh token was used in case the Token expired
bizId The default value is "null". It refers to the identity of the account: (null is personal)
teamIds Chat will show the identities of the team.
receiverId Define identity id of the receiver (exp: customer_id and {{team_id}}:seller_id)
senderId Define identity id of the sender (exp: customer_id and {{team_id}}:seller_id2)
isFullScreen enable close button on the right top screen that will use in case handle close chat
callFromNotification Object is_call: true, channel_id: "2225245_01:22436"

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i react-native-chat-platform

Weekly Downloads

1

Version

0.1.58

License

MIT

Unpacked Size

4.79 MB

Total Files

90

Last publish

Collaborators

  • toan.tran.tiki
  • phule1
  • lanhnguyen1