File tree Expand file tree Collapse file tree 6 files changed +20
-26
lines changed
Expand file tree Collapse file tree 6 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import StackNavigator from './src/StackNavigator';
99import { UserContextProvider } from './UserContext' ;
1010import { CometChatIncomingCall } from '@cometchat/chat-uikit-react-native' ;
1111import { CometChatUIEventHandler } from '@cometchat/chat-uikit-react-native' ;
12+ import { metaInfo } from './src/metaInfo' ;
13+
1214var listnerID = "UNIQUE_LISTENER_ID" ;
1315
1416const App = ( ) => {
@@ -35,6 +37,7 @@ const App = () => {
3537 region : COMETCHAT_CONSTANTS . REGION ,
3638 } )
3739 . then ( ( ) => {
40+ try { CometChat . setDemoMetaInfo ( metaInfo ) } catch ( err ) { }
3841 if ( CometChat . setSource ) {
3942 CometChat . setSource ( 'ui-kit' , Platform . OS , 'react-native' ) ;
4043 }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import StackNavigator from './src/StackNavigator';
1010import { UserContextProvider } from './UserContext' ;
1111import { CometChatIncomingCall } from '@cometchat/chat-uikit-react-native' ;
1212import { CometChatUIEventHandler } from '@cometchat/chat-uikit-react-native' ;
13+ import { metaInfo } from './src/metaInfo' ;
1314var listnerID = "UNIQUE_LISTENER_ID" ;
1415
1516const App = ( ) => {
@@ -36,6 +37,7 @@ const App = () => {
3637 region : COMETCHAT_CONSTANTS . REGION ,
3738 } )
3839 . then ( ( ) => {
40+ try { CometChat . setDemoMetaInfo ( metaInfo ) } catch ( err ) { }
3941 if ( CometChat . setSource ) {
4042 CometChat . setSource ( 'ui-kit' , Platform . OS , 'react-native' ) ;
4143 }
Original file line number Diff line number Diff line change 1+ Copyright (c) 2023 CometChat Inc.
2+
3+ License agreement: https://www.cometchat.com/legal-terms-of-service
Original file line number Diff line number Diff line change 11{
2- "name" : " demosampleapp" ,
3- "version" : " 0.0.1" ,
2+ "name" : " cometchat-chat-sample-app-react-native" ,
3+ "version" : " 4.0.1" ,
4+ "license" : " SEE LICENSE IN LICENSE.md" ,
45 "private" : true ,
56 "scripts" : {
67 "android" : " react-native run-android" ,
1011 "test" : " jest"
1112 },
1213 "dependencies" : {
13- "@cometchat/calls-sdk-react-native" : " ^4.0.0 " ,
14- "@cometchat/chat-sdk-react-native" : " ^4.0.1 " ,
15- "@cometchat/chat-uikit-react-native" : " ^4.0.0 " ,
14+ "@cometchat/calls-sdk-react-native" : " ^4.0.2 " ,
15+ "@cometchat/chat-sdk-react-native" : " ^4.0.2 " ,
16+ "@cometchat/chat-uikit-react-native" : " ^4.0.1 " ,
1617 "@react-native-async-storage/async-storage" : " 1.17.10" ,
1718 "@react-native-community/cli-platform-android" : " ^8.0.5" ,
1819 "@react-native-community/clipboard" : " 1.5.1" ,
Original file line number Diff line number Diff line change 1+ export const metaInfo = {
2+ name :"cometchat-chat-sample-app-react-native" ,
3+ version :"4.0.1" ,
4+ type :"sample" ,
5+ platform :"React Native"
6+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments