Skip to content

Commit

Permalink
feat: new release v4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitninawe-cometchat committed Mar 23, 2024
1 parent 6ce24fe commit 49f8073
Show file tree
Hide file tree
Showing 217 changed files with 177 additions and 366 deletions.
11 changes: 6 additions & 5 deletions CometChatWorkspace/App.tsx → App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import React, { useEffect, useRef, useState } from 'react';
import { PermissionsAndroid, Platform, SafeAreaView, StatusBar, Text } from 'react-native';
import { CometChat } from "@cometchat/chat-sdk-react-native";
import { COMETCHAT_CONSTANTS } from './src/CONSTS';
import { CometChatContextProvider, CometChatConversationsWithMessages } from '@cometchat/chat-uikit-react-native';
import { AppConstants } from './AppConstants';
import { CometChatContextProvider, CometChatLocalize } from '@cometchat/chat-uikit-react-native';
import { CometChatTheme } from '@cometchat/chat-uikit-react-native';
import { CometChatUIKit } from '@cometchat/chat-uikit-react-native';
import StackNavigator from './src/StackNavigator';
Expand Down Expand Up @@ -32,11 +32,12 @@ const App = () => {
useEffect(() => {
getPermissions();
CometChatUIKit.init({
appId: COMETCHAT_CONSTANTS.APP_ID,
authKey: COMETCHAT_CONSTANTS.AUTH_KEY,
region: COMETCHAT_CONSTANTS.REGION,
appId: AppConstants.APP_ID,
authKey: AppConstants.AUTH_KEY,
region: AppConstants.REGION,
})
.then(() => {
CometChatLocalize.setLocale("en");
try{CometChat.setDemoMetaInfo(metaInfo)}catch(err){}
if (CometChat.setSource) {
CometChat.setSource('ui-kit', Platform.OS, 'react-native');
Expand Down
3 changes: 1 addition & 2 deletions CometChatWorkspace/src/CONSTS.ts → AppConstants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const COMETCHAT_CONSTANTS = {

export const AppConstants = {
APP_ID: 'xxxxxxxxxxxxx', // Enter your App ID
REGION: 'xx', // Enter your App Region
AUTH_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Enter your App Auth Key
Expand Down
21 changes: 0 additions & 21 deletions CometChatWorkspace/.gitignore

This file was deleted.

111 changes: 0 additions & 111 deletions CometChatWorkspace/App.js

This file was deleted.

79 changes: 0 additions & 79 deletions CometChatWorkspace/README.md

This file was deleted.

Binary file removed CometChatWorkspace/android/app/debug.keystore
Binary file not shown.

This file was deleted.

102 changes: 0 additions & 102 deletions CometChatWorkspace/src/components/login/Login.tsx

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 49f8073

Please sign in to comment.