react-native-chat-platform
chat platform in tiki ecosystem
Installation
npm install react-native-chat-platform
Require some pakages
- react-native-webrtc
- react-native-switch-audio-output
- react-native-webview
- react-native-svg
- socket.io-client (version 2.3.0)
- react-native-sound
- 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