Skip to content

Commit

Permalink
v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Mar 2, 2021
1 parent b8ba0f1 commit eed998c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
35 changes: 32 additions & 3 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from "react";
export namespace CometChat {
let isNative: boolean;
let USER_STATUS: {
Expand Down Expand Up @@ -68,8 +69,6 @@ export namespace CometChat {

let appSettings: AppSettings;

let CallingComponent: callingComponent;

/**
* Getter for appId.
*
Expand Down Expand Up @@ -667,13 +666,37 @@ export namespace CometChat {
* @memberof CometChat
*/
export function getConnectionStatus(): string;
/**
* Returns a boolean value which indicates if the extension is enabled or not.
*
* @param {string} extensionId Id of the extension
* @returns
* @memberof CometChat
*/
export function isExtensionEnabled(extensionId: string): Promise<boolean>;
/**
* Returns an object of CCExtension Class which has the details of the extension.
*
* @param {string} extensionId Id of the extension
* @returns
* @memberof CometChat
*/
export function getExtensionDetails(extensionId: string): Promise<CCExtension>;
/**
* Get the XMPP/ WEBRTC details from the servers
*
* @returns
* @memberof CometChat
*/
export function getAppSettings(): Promise<Object>;
/**
* Returns a boolean value which indicates if a feature is enabled or not for the current plan.
*
* @param {string} feature Name of feature
* @returns
* @memberof CometChat
*/
export function isFeatureEnabled(feature: string): Promise<boolean>;
/**
* Clears the authtoken from server and clears the local cache.
*
Expand Down Expand Up @@ -2189,6 +2212,12 @@ export namespace CometChat {
build(): AppSettings;
}

export class CCExtension {
constructor(extension: any);
getId(): string;
getName(): string;
}

/**
*
*
Expand Down Expand Up @@ -2255,7 +2284,7 @@ export namespace CometChat {
setReceiptType(receiptType?: string): void;
}

export class callingComponent{
export class CallingComponent extends React.Component<{callsettings: CallSettings}, { [key: string]: boolean}>{
}

}
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This guide demonstrates how to add chat to a React Native App using CometChat Pr
[Push Notification](https://prodocs.cometchat.com/docs/extensions-enhanced-push-notification) | [Email Notification](https://prodocs.cometchat.com/docs/extensions-email-notification) | [SMS Notification](https://prodocs.cometchat.com/docs/extensions-sms-notification) | [Thumbnail Generation](https://prodocs.cometchat.com/docs/extensions-thumbnail-generation) | [Link Preview](https://prodocs.cometchat.com/docs/extensions-link-preview) | [Rich Media Preview](https://prodocs.cometchat.com/docs/extensions-rich-media-preview) | [Voice Transcription](https://prodocs.cometchat.com/docs/extensions-voice-transcription) | [Smart Reply](https://prodocs.cometchat.com/docs/extensions-smart-reply) | [Message Translation](https://prodocs.cometchat.com/docs/extensions-message-translation) | [Emojis](https://prodocs.cometchat.com/docs/extensions-emojis) | [Polls](https://prodocs.cometchat.com/docs/extensions-polls) | [Reactions](https://prodocs.cometchat.com/docs/extensions-reactions) | [Stickers](https://prodocs.cometchat.com/docs/extensions-stickers) | [Video Broadcasting](https://prodocs.cometchat.com/docs/extensions-broadcast) | [Collaborative Documents](https://prodocs.cometchat.com/docs/extensions-collaborative-document) | [Collaborative Whiteboards](https://prodocs.cometchat.com/docs/extensions-collaborative-whiteboard) | [Data Masking Filter](https://prodocs.cometchat.com/docs/extensions-data-masking-filter) | [Profanity Filter](https://prodocs.cometchat.com/docs/extensions-profanity-filter) | [Image Moderation](https://prodocs.cometchat.com/docs/extensions-image-moderation)| [Sentiment Analysis](https://prodocs.cometchat.com/docs/extensions-sentiment-analysis) | [In-flight Message Moderation](https://prodocs.cometchat.com/docs/extensions-in-flight-message-moderation) | [Virus & Malware Scanner](https://prodocs.cometchat.com/docs/extensions-virus-malware-scanner) | [XSS Filter](https://prodocs.cometchat.com/docs/extensions-xss-filter)

[![Platform](https://img.shields.io/badge/Platform-Javascript-brightgreen)](#)
<a href=" "> <img src="https://img.shields.io/badge/Version-2.2.0-important" /></a>
<a href=" "> <img src="https://img.shields.io/badge/Version-2.2.1-important" /></a>
![GitHub repo size](https://img.shields.io/github/repo-size/cometchat-pro/react-native-chat-sdk)
![GitHub contributors](https://img.shields.io/github/contributors/cometchat-pro/react-native-chat-sdk)
![GitHub stars](https://img.shields.io/github/stars/cometchat-pro/react-native-chat-sdk?style=social)
Expand Down Expand Up @@ -79,7 +79,7 @@ To setup React Native SDK, you need to first register on CometChat Dashboard. [
1. Run the following command to install the CometChat Pro React Native SDK<br/>

```javascript
npm install @cometchat-pro/react-native-chat@2.2.0 --save
npm install @cometchat-pro/react-native-chat@2.2.1 --save
```

You can refer to the below link for instructions on how to do so:<br/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat-pro/react-native-chat",
"version": "2.2.0",
"version": "2.2.1",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit eed998c

Please sign in to comment.