Skip to content

Commit ce5a575

Browse files
v4.3.26
1 parent 3574349 commit ce5a575

File tree

106 files changed

+490
-612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+490
-612
lines changed

.eslintrc.json

Lines changed: 0 additions & 64 deletions
This file was deleted.

.gitignore

Lines changed: 18 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,21 @@
1-
# OSX
2-
#
3-
.DS_Store
4-
5-
# Xcode
6-
#
7-
build/
8-
*.pbxuser
9-
!default.pbxuser
10-
*.mode1v3
11-
!default.mode1v3
12-
*.mode2v3
13-
!default.mode2v3
14-
*.perspectivev3
15-
!default.perspectivev3
16-
xcuserdata
17-
*.xccheckout
18-
*.moved-aside
19-
DerivedData
20-
*.hmap
21-
*.ipa
22-
*.xcuserstate
23-
project.xcworkspace
1+
# Logs
2+
*.log
3+
npm-debug.log
244

25-
# Android/IntelliJ
26-
#
27-
CometChatWorkspace/cometchat-app/android/app/build/
28-
cometchat-app/android/app/build/
29-
/android/app/build/
30-
/app/build/
31-
ios/Pods/*
32-
build/
5+
# Runtime data
6+
tmp
7+
build
8+
lib
9+
10+
# Dependency directory
11+
node_modules
12+
*.DS_Store
13+
example/development2
14+
example/development
15+
# Build file for local testing
16+
cometchat-pro-react-native-ui-kit-1.0.0.tgz
17+
package-lock.json
18+
Pods
3319
.idea
3420
.gradle
35-
local.properties
36-
*.iml
37-
38-
# node.js
39-
#
40-
node_modules/
41-
package-lock.json # include if you are using npm - don't use both yarn and npm
42-
npm-debug.log
43-
yarn-error.log
44-
yarn.lock # include if you are using yarn - don't use both npm and yarn
45-
46-
# BUCK
47-
buck-out/
48-
\.buckd/
49-
*.keystore
50-
!CometChatWorkspace/cometchat-app/android/app/debug.keystore
51-
52-
# Fastlane
53-
#
54-
# It is recommended to not store the screenshots in the git repo. Instead, use Fastlane to re-generate the
55-
# screenshots whenever they are needed.
56-
# For more information about the recommended setup visit:
57-
# https://docs.fastlane.tools/best-practices/source-control/
58-
59-
*/fastlane/report.xml
60-
*/fastlane/Preview.html
61-
*/fastlane/screenshots
62-
63-
# Pods
64-
CometChatWorkspace/cometchat-app/ios/Pods/
65-
cometchat-app/ios/Pods/
66-
/ios/Pods/
67-
ios/Pods/*
68-
69-
# Bundle artifact
70-
*.jsbundle
71-
src/components/.DS_Store
21+
example3

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cometchat/chat-uikit-react-native",
3-
"version": "4.3.25",
3+
"version": "4.3.26",
44
"description": "Ready-to-use Chat UI Components for React Native",
55
"main": "src/index",
66
"module": "src/index",
@@ -57,8 +57,7 @@
5757
"@react-native-community/eslint-config": "^3.0.2",
5858
"@release-it/conventional-changelog": "^5.0.0",
5959
"@types/jest": "^28.1.2",
60-
"@types/react": "~17.0.21",
61-
"@types/react-native": "0.68.2",
60+
"@types/react": "*",
6261
"commitlint": "^17.0.2",
6362
"eslint": "^8.4.1",
6463
"eslint-config-prettier": "^8.5.0",
@@ -71,17 +70,16 @@
7170
"react-native-gesture-handler": "*",
7271
"typescript": "^5.0.4"
7372
},
74-
"resolutions": {
75-
"@types/react": "17.0.21"
76-
},
7773
"dependencies": {
78-
"@react-native-clipboard/clipboard": "^1.13.2"
74+
"@react-native-clipboard/clipboard": "^1.13.2",
75+
"@types/prop-types": "^15.7.14",
76+
"prop-types": "^15.8.1"
7977
},
8078
"peerDependencies": {
81-
"react": "*",
82-
"react-native": "*",
8379
"@cometchat/chat-sdk-react-native": "*",
84-
"@react-native-community/datetimepicker":"*"
80+
"@react-native-community/datetimepicker": "*",
81+
"react": "*",
82+
"react-native": "*"
8583
},
8684
"jest": {
8785
"preset": "react-native",

src/AI/AIAssistBot/AIAssistBotView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext, useState, useEffect, useCallback } from 'react'
1+
import React, { useContext, useState, useEffect, useCallback, JSX } from 'react'
22
//@ts-ignore
33
import { CometChat } from "@cometchat/chat-sdk-react-native";
44
import { View, Text, TextInput, Dimensions, TouchableOpacity, Image, FlatList, TextStyle } from 'react-native'
@@ -255,7 +255,7 @@ const AIAssistBotView = (props: AIAssistBotViewProps) => {
255255
avatarStyle={configuration?.avatarStyle}
256256
avatarName={title || bot.getName()}
257257
avatarURL={bot.getAvatar() ? { uri: bot.getAvatar() } : undefined}
258-
SubtitleView={() => <Text style={[{ color: subtitleColor }, subtitleFont] as TextStyle}>{localize("COMETCHAT_ASK_BOT_SUBTITLE")}</Text>}
258+
SubtitleView={() => <Text style={[{ color: subtitleColor }, subtitleFont] as TextStyle[]}>{localize("COMETCHAT_ASK_BOT_SUBTITLE")}</Text>}
259259
TailView={() => <TouchableOpacity onPress={onClose}>
260260
<Image style={{ width: 20, height: 20, tintColor: closeIconTint }} source={configuration?.closeIconURL || CloseIcon} />
261261
</TouchableOpacity>}

src/AI/AIBaseConfiguration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ts-ignore
22
import {CometChat} from '@cometchat/chat-sdk-react-native'
33
import { emptyIcon, errorIcon, loadingIcon } from "./resources";
4+
import { JSX } from 'react';
45
export class AIBaseConfiguration {
56
apiConfiguration?: (user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
67
ErrorStateView?: (e?: CometChat.CometChatException) => JSX.Element;

src/AI/AIConversationStarter/AIConversationStarterDecorator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import React, { JSX } from "react";
22
import { TouchableOpacity, View, Text, ScrollView, ViewProps } from "react-native";
33
//@ts-ignore
44
import { CometChat } from "@cometchat/chat-sdk-react-native";

src/AI/AIConversationSummary/AIConversationSummaryView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext, useEffect, useState } from 'react';
1+
import React, { JSX, useContext, useEffect, useState } from 'react';
22
import { View } from 'react-native';
33
import { CometChatContext, CometChatTheme, localize } from '../../shared';
44
import { AIConversationSummaryConfiguration } from './configuration';

src/AI/AISmartReplies/AISmartRepliesDecorator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import React, { JSX } from "react";
22
import { CometChatMessageComposerActionInterface, CometChatTheme, CometChatUIEventHandler, CometChatUIEvents, DataSource, DataSourceDecorator, MessageEvents, localize } from "../../shared";
33
//@ts-ignore
44
import { CometChat } from "@cometchat/chat-sdk-react-native";

0 commit comments

Comments
 (0)