Skip to content

Commit 8e2c9c8

Browse files
authored
Merge pull request #15 from cometchat-pro/v2.2.0
V2.2.0
2 parents 72b86a2 + 7fafd8f commit 8e2c9c8

File tree

4 files changed

+46
-18
lines changed

4 files changed

+46
-18
lines changed

CometChatWorkspace/cometchat-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example",
3-
"version": "2.0.0",
3+
"version": "2.2.0",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

CometChatWorkspace/cometchat-app/react-native-chat-ui-kit/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121

2222
</br></br>
2323

24-
CometChat React Native UI Kit is a collection of custom **UI Components** designed to build chat application with fully customizable UI. It is designed to avoid boilerplate code for building UI.
24+
CometChat React Native UI Kit is a collection of custom UI Components designed to build text chat and voice/video calling features in your application.
25+
26+
The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly.
27+
2528
---
2629

2730
## Prerequisites
@@ -36,6 +39,12 @@ Before you begin, ensure you have met the following requirements:
3639

3740
- [React-Native](https://reactnative.dev/docs/environment-setup)
3841

42+
43+
44+
|<div align="left"><span>**Note:**<span style="font-weight:500"> Support for Expo CLI based apps.</span> </span></div> |
45+
|-----------------------------------------|
46+
|If you are using Expo CLI to build a React Native app, the calling component will not work as our calling component needs native-level changes.However, you can create a React Native app using React Native CLI or use the 'expo eject' command to convert your app from an expo-managed workflow to a bare workflow.|
47+
3948
---
4049

4150
## Installing CometChat React Native UI Kit
@@ -52,7 +61,7 @@ To install React-Native UI Kit, you need to first register on CometChat Dashboar
5261
### ii. Add the CometChat Dependency
5362

5463
```javascript
55-
npm install @cometchat-pro/react-native-chat@2.1.7 --save
64+
npm install @cometchat-pro/react-native-chat@2.2.0 --save
5665
```
5766

5867
### iii. Other required DEPENDENCIES
@@ -74,7 +83,7 @@ These packages help make the ui-kit smooth and functioning
7483
[@react-navigation/native](https://reactnavigation.org/docs/getting-started)</br>
7584
[@react-navigation/stack](https://reactnavigation.org/docs/stack-navigator/)</br>
7685
[@react-native-picker/picker](https://github.com/react-native-picker/picker)</br>
77-
[@react-native-community/async-storage](https://github.com/react-native-async-storage/async-storage)</br>
86+
[react-native-async-storage/async-storage](https://github.com/react-native-async-storage/async-storage)</br>
7887
[@cometchat-pro/react-native-calls](https://www.npmjs.com/package/@cometchat-pro/react-native-calls)</br>
7988
<br/>
8089

@@ -141,7 +150,7 @@ CometChat.login(uid, authKey).then(
141150
## 3. Add UI Kit to your project
142151

143152
- Clone this repository.
144-
- Copy the `react-native-ui-kit` folder to your source folder.
153+
- Copy the `react-native-chat-ui-kit` folder to your source folder.
145154
- Copy all the peer dependencies from package.json into your project's package.json and install them using `npm install`.
146155

147156
<br/>

CometChatWorkspace/cometchat-app/react-native-chat-ui-kit/package.json

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
{
22
"name": "cometchat-pro-react-native-ui-kit",
3-
"version": "1.0.0",
3+
"version": "2.2.0",
44
"description": "Chat UI Kit for React Native App",
55
"main": "./src/index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"lint": "eslint 'src/**/*.{js,jsx}' --quiet --fix"
99
},
10+
"husky": {
11+
"hooks": {
12+
"pre-commit": "lint-staged"
13+
}
14+
},
15+
"lint-staged": {
16+
"*.{js,jsx}": [
17+
"npm run lint",
18+
"git add --all"
19+
],
20+
"*.json": [
21+
"git add --all"
22+
]
23+
},
1024
"repository": {
1125
"type": "git",
1226
"url": "[email protected]:cometchat/react-native.git"
1327
},
1428
"peerDependencies": {
1529
"@react-native-community/async-storage": "^1.12.1",
30+
"@react-native-async-storage/async-storage": "^1.13.4",
31+
"@react-native-picker/picker": "^1.9.4",
1632
"react-native-sound": "^0.11.0",
1733
"react-native-vector-icons": "^7.1.0",
1834
"react-native-elements": "^3.0.0-alpha.1",
@@ -22,13 +38,20 @@
2238
"react-native": "^0.63.3",
2339
"react-native-gesture-handler": "^1.9.0",
2440
"react-native-reanimated": "^1.13.2",
41+
"react-native-screens": "^2.16.1",
2542
"reanimated-bottom-sheet": "^1.0.0-alpha.22",
2643
"react-native-video": "^5.1.0-alpha8",
2744
"react": "^16.0.1",
2845
"@react-navigation/bottom-tabs": "^5.11.2",
2946
"@react-navigation/native": "^5.8.10",
3047
"@react-navigation/stack": "^5.12.8",
31-
"react-native-video-controls": "^2.7.1"
48+
"react-native-video-controls": "^2.7.1",
49+
"rn-fetch-blob": "^0.12.0",
50+
"lodash": "^4.17.20",
51+
"react-native-autolink": "^3.0.0",
52+
"@cometchat-pro/react-native-calls": "1.0.7",
53+
"@cometchat-pro/react-native-chat": "2.2.0",
54+
"emoji-mart-native": "^0.6.2-beta"
3255
},
3356
"author": "Inscripts",
3457
"license": "ISC",
@@ -47,14 +70,5 @@
4770
"metro-react-native-babel-preset": "^0.63.0",
4871
"prettier": "^2.1.2"
4972
},
50-
"dependencies": {
51-
"@cometchat-pro/react-native-calls": "1.0.3",
52-
"@cometchat-pro/react-native-chat": "2.1.6",
53-
"@react-native-community/async-storage": "^1.12.1",
54-
"lodash": "^4.17.20",
55-
"react-native-autolink": "^3.0.0",
56-
"redux": "^4.0.5",
57-
"redux-thunk": "^2.3.0",
58-
"emoji-mart-native": "^0.6.2-beta"
59-
}
73+
"dependencies": {}
6074
}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ CometChat Kitchen Sink Sample App (built using **CometChat UIKit**) is a fully f
5353

5454
<hr/>
5555

56+
57+
|<div align="left"><span>**Note:**<span style="font-weight:500"> Support for Expo CLI based apps.</span> </span></div> |
58+
|-----------------------------------------|
59+
|If you are using Expo CLI to build a React Native app, the calling component will not work as our calling component needs native-level changes.However, you can create a React Native app using React Native CLI or use the 'expo eject' command to convert your app from an expo-managed workflow to a bare workflow.|
60+
---
5661
# Installation
5762

5863
1. Simply clone the project from this project. After cloning the repository:
@@ -84,7 +89,7 @@ Learn more about how to integrate [UI Kit](https://github.com/cometchat-pro/reac
8489

8590
# Troubleshooting
8691

87-
- To read the full dcoumentation on UI Kit integration visit our [Documentation](https://prodocs.cometchat.com/docs/react-native-ui-kit) .
92+
- To read the full documentation on UI Kit integration visit our [Documentation](https://prodocs.cometchat.com/docs/react-native-ui-kit) .
8893

8994
- Facing any issues while integrating or installing the UI Kit please <a href="https://app.cometchat.io/"> connect with us via real time support present in CometChat Dashboard.</a>.
9095

0 commit comments

Comments
 (0)