-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7d4945
commit b494e4c
Showing
7 changed files
with
117 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,63 +2,60 @@ | |
<img alt="CometChat" src="https://assets.cometchat.io/website/images/logos/banner.png"> | ||
</p> | ||
|
||
# iOS Sample App by CometChat | ||
# React Native Sample App by CometChat | ||
|
||
This reference application showcases the integration of [**CometChat's React Native UI Kit**](https://www.cometchat.com/docs/v4/react-native-uikit/overview) within an React Native framework. It provides developers with examples of implementing real-time messaging and voice and video calling features in their react native based applications. | ||
This is a reference application showcasing the integration of [**CometChat's React Native UI Kit**](https://www.cometchat.com/docs/v4/react-native-uikit/overview) in React Native. It offers developers practical examples for incorporating real-time messaging, as well as voice and video calling functionalities, into their React Native based applications. | ||
|
||
## Prerequisites | ||
- Visual Studio Code or any other IDE. | ||
- For iOS: | ||
- XCode | ||
- pod (CocoaPods) | ||
- An iOS device or emulator with iOS 12.0 or above. | ||
- For Android: | ||
- Android Studio | ||
- Android device or emulator with Android version 5.0 or above. | ||
- Sign up for a [CometChat](https://app.cometchat.com/) account to get your app credentials: _`App ID`_, _`Region`_, and _`Auth Key`_ | ||
|
||
- Ensure that you have React Native development environment set up. | ||
- Follow instructions for your environment at https://reactnative.dev/docs/environment-setup | ||
- Sign up for a [CometChat](https://app.cometchat.com/) account to get your app credentials: _`App ID`_, _`Region`_, and _`Auth Key`_ | ||
|
||
## Installation | ||
1. Clone the repository: | ||
``` | ||
git clone https://github.com/cometchat/cometchat-sample-app-react-native.git | ||
``` | ||
2. Install dependencies | ||
```sh | ||
yarn install | ||
``` | ||
3. Enter your CometChat _`App ID`_, _`Region`_, and _`Auth Key`_ in the [AppConstants.ts](./AppConstants.ts) file: | ||
```typescript | ||
export const AppConstants = { | ||
APP_ID: 'APP_ID', // Enter your App ID | ||
REGION: 'REGION', // Enter your App Region | ||
AUTH_KEY: 'AUTH_KEY', // Enter your App Auth Key | ||
} | ||
``` | ||
4. For iOS, install dependencies after navigating to ios : | ||
```sh | ||
cd ios | ||
pod install | ||
``` | ||
5. Run the app on a device or emulator from the repo root. | ||
```sh | ||
yarn start | ||
yarn run android | ||
yarn run ios | ||
``` | ||
<div style=" | ||
display: flex; | ||
align-items: center; | ||
justify-content: center;"> | ||
<img src="./Screenshots/login.png" alt="login" width="300"> | ||
</div> | ||
|
||
1. Clone the repository: | ||
- Using HTTPS | ||
``` | ||
git clone https://github.com/cometchat/cometchat-sample-app-react-native.git | ||
``` | ||
- Using SSH | ||
``` | ||
git clone [email protected]:cometchat/cometchat-sample-app-react-native.git | ||
``` | ||
2. Navigate to the cloned directory: | ||
``` | ||
cd cometchat-sample-app-react-native | ||
``` | ||
3. Install dependencies: | ||
``` | ||
npm install | ||
``` | ||
4. For iOS, install dependencies after navigating to ios: | ||
```sh | ||
cd ios | ||
pod install | ||
``` | ||
5. Enter your CometChat _`App ID`_, _`Region`_, and _`Auth Key`_ in the [src/AppConstants.ts](https://github.com/cometchat/cometchat-sample-app-react-native/blob/v4/AppConstants.ts) file: | ||
https://github.com/cometchat/cometchat-sample-app-react-native/blob/f7d4945414da14405f5dece975c8cf43926b01c7/AppConstants.ts#L1-L5 | ||
6. Run the app on a device or emulator from the repo root. | ||
```sh | ||
npm start | ||
npm run android | ||
npm run ios | ||
``` | ||
|
||
<table> | ||
<tr> | ||
<td valign="center"> | ||
<img src="./Screenshots/login.png" alt="login" width="300"> | ||
</td> | ||
<td valign="center"> | ||
<img src="./Screenshots/login-android.png" alt="login" width="250"> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
## Help and Support | ||
For issues running the project or integrating with our UI Kits, consult our [documentation](https://www.cometchat.com/docs/react-native-uikit/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](http://app.cometchat.com/). | ||
|
||
For issues running the project or integrating with our UI Kits, consult our [documentation](https://www.cometchat.com/docs/vue-uikit/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](http://app.cometchat.com/). |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters