react-native-gifted-chat 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/GiftedChat.d.ts +16 -164
- package/lib/GiftedChat.js +302 -434
- package/lib/GiftedChat.js.map +1 -1
- package/package.json +1 -1
package/lib/GiftedChat.d.ts
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import React, { RefObject } from 'react';
|
|
3
|
-
import { Animated, StyleProp, ViewStyle, FlatList, TextStyle, LayoutChangeEvent } from 'react-native';
|
|
4
1
|
import { ActionSheetOptions } from '@expo/react-native-action-sheet';
|
|
5
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
5
|
+
import { LightboxProps } from 'react-native-lightbox-v2';
|
|
6
6
|
import { Actions, ActionsProps } from './Actions';
|
|
7
7
|
import { Avatar, AvatarProps } from './Avatar';
|
|
8
8
|
import Bubble from './Bubble';
|
|
9
|
-
import { SystemMessage, SystemMessageProps } from './SystemMessage';
|
|
10
|
-
import { MessageImage, MessageImageProps } from './MessageImage';
|
|
11
|
-
import { MessageText, MessageTextProps } from './MessageText';
|
|
12
9
|
import { Composer, ComposerProps } from './Composer';
|
|
13
10
|
import { Day, DayProps } from './Day';
|
|
11
|
+
import GiftedAvatar from './GiftedAvatar';
|
|
14
12
|
import { InputToolbar, InputToolbarProps } from './InputToolbar';
|
|
15
13
|
import { LoadEarlier, LoadEarlierProps } from './LoadEarlier';
|
|
16
14
|
import Message from './Message';
|
|
17
15
|
import MessageContainer from './MessageContainer';
|
|
16
|
+
import { MessageImage, MessageImageProps } from './MessageImage';
|
|
17
|
+
import { MessageText, MessageTextProps } from './MessageText';
|
|
18
|
+
import { IMessage, LeftRightStyle, MessageAudioProps, MessageVideoProps, Reply, User } from './Models';
|
|
19
|
+
import { QuickRepliesProps } from './QuickReplies';
|
|
18
20
|
import { Send, SendProps } from './Send';
|
|
21
|
+
import { SystemMessage, SystemMessageProps } from './SystemMessage';
|
|
19
22
|
import { Time, TimeProps } from './Time';
|
|
20
|
-
import
|
|
21
|
-
import GiftedAvatar from './GiftedAvatar';
|
|
22
|
-
import { IMessage, User, Reply, LeftRightStyle, MessageVideoProps, MessageAudioProps } from './Models';
|
|
23
|
-
import { LightboxProps } from 'react-native-lightbox-v2';
|
|
24
|
-
import { ActionSheetProviderRef } from '@expo/react-native-action-sheet';
|
|
23
|
+
import * as utils from './utils';
|
|
25
24
|
export interface GiftedChatProps<TMessage extends IMessage = IMessage> {
|
|
26
25
|
messages?: TMessage[];
|
|
27
26
|
isTyping?: boolean;
|
|
@@ -116,72 +115,9 @@ export interface GiftedChatState<TMessage extends IMessage = IMessage> {
|
|
|
116
115
|
text?: string;
|
|
117
116
|
messages?: TMessage[];
|
|
118
117
|
}
|
|
119
|
-
declare
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
messagesContainerStyle: undefined;
|
|
123
|
-
text: undefined;
|
|
124
|
-
placeholder: string;
|
|
125
|
-
disableComposer: boolean;
|
|
126
|
-
messageIdGenerator: () => string;
|
|
127
|
-
user: {};
|
|
128
|
-
onSend: () => void;
|
|
129
|
-
locale: null;
|
|
130
|
-
timeFormat: string;
|
|
131
|
-
dateFormat: string;
|
|
132
|
-
loadEarlier: boolean;
|
|
133
|
-
onLoadEarlier: () => void;
|
|
134
|
-
isLoadingEarlier: boolean;
|
|
135
|
-
renderLoading: null;
|
|
136
|
-
renderLoadEarlier: null;
|
|
137
|
-
renderAvatar: undefined;
|
|
138
|
-
showUserAvatar: boolean;
|
|
139
|
-
actionSheet: null;
|
|
140
|
-
onPressAvatar: null;
|
|
141
|
-
onLongPressAvatar: null;
|
|
142
|
-
renderUsernameOnMessage: boolean;
|
|
143
|
-
renderAvatarOnTop: boolean;
|
|
144
|
-
renderBubble: null;
|
|
145
|
-
renderSystemMessage: null;
|
|
146
|
-
onLongPress: null;
|
|
147
|
-
renderUserName: null;
|
|
148
|
-
renderMessage: null;
|
|
149
|
-
renderMessageText: null;
|
|
150
|
-
renderMessageImage: null;
|
|
151
|
-
renderMessageVideo: null;
|
|
152
|
-
renderMessageAudio: null;
|
|
153
|
-
imageProps: {};
|
|
154
|
-
videoProps: {};
|
|
155
|
-
audioProps: {};
|
|
156
|
-
lightboxProps: {};
|
|
157
|
-
textInputProps: {};
|
|
158
|
-
listViewProps: {};
|
|
159
|
-
renderCustomView: null;
|
|
160
|
-
isCustomViewBottom: boolean;
|
|
161
|
-
renderDay: null;
|
|
162
|
-
renderTime: null;
|
|
163
|
-
renderFooter: null;
|
|
164
|
-
renderChatEmpty: null;
|
|
165
|
-
renderChatFooter: null;
|
|
166
|
-
renderInputToolbar: null;
|
|
167
|
-
renderComposer: null;
|
|
168
|
-
renderActions: null;
|
|
169
|
-
renderSend: null;
|
|
170
|
-
renderAccessory: null;
|
|
171
|
-
isKeyboardInternallyHandled: boolean;
|
|
172
|
-
onPressActionButton: null;
|
|
173
|
-
bottomOffset: null;
|
|
174
|
-
minInputToolbarHeight: number;
|
|
175
|
-
keyboardShouldPersistTaps: string;
|
|
176
|
-
onInputTextChanged: null;
|
|
177
|
-
maxInputLength: null;
|
|
178
|
-
forceGetKeyboardHeight: boolean;
|
|
179
|
-
inverted: boolean;
|
|
180
|
-
extraData: null;
|
|
181
|
-
minComposerHeight: number | undefined;
|
|
182
|
-
maxComposerHeight: number;
|
|
183
|
-
};
|
|
184
|
-
static propTypes: {
|
|
118
|
+
declare function GiftedChat<TMessage extends IMessage = IMessage>(props: GiftedChatProps): JSX.Element;
|
|
119
|
+
declare namespace GiftedChat {
|
|
120
|
+
var propTypes: {
|
|
185
121
|
messages: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
186
122
|
messagesContainerStyle: PropTypes.Requireable<number | boolean | object>;
|
|
187
123
|
text: PropTypes.Requireable<string>;
|
|
@@ -244,92 +180,8 @@ declare class GiftedChat<TMessage extends IMessage = IMessage> extends React.Com
|
|
|
244
180
|
maxComposerHeight: PropTypes.Requireable<number>;
|
|
245
181
|
alignTop: PropTypes.Requireable<boolean>;
|
|
246
182
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
_isMounted: boolean;
|
|
250
|
-
_keyboardHeight: number;
|
|
251
|
-
_bottomOffset: number;
|
|
252
|
-
_maxHeight?: number;
|
|
253
|
-
_isFirstLayout: boolean;
|
|
254
|
-
_locale: string;
|
|
255
|
-
invertibleScrollViewProps: any;
|
|
256
|
-
_actionSheetRef: RefObject<ActionSheetProviderRef>;
|
|
257
|
-
_messageContainerRef?: RefObject<FlatList<IMessage>>;
|
|
258
|
-
_isTextInputWasFocused: boolean;
|
|
259
|
-
textInput?: any;
|
|
260
|
-
state: {
|
|
261
|
-
isInitialized: boolean;
|
|
262
|
-
composerHeight: number | undefined;
|
|
263
|
-
messagesContainerHeight: undefined;
|
|
264
|
-
typingDisabled: boolean;
|
|
265
|
-
text: undefined;
|
|
266
|
-
messages: undefined;
|
|
267
|
-
};
|
|
268
|
-
constructor(props: GiftedChatProps<TMessage>);
|
|
269
|
-
componentDidMount(): void;
|
|
270
|
-
componentWillUnmount(): void;
|
|
271
|
-
componentDidUpdate(prevProps?: GiftedChatProps<TMessage>): void;
|
|
272
|
-
initLocale(): void;
|
|
273
|
-
setLocale(locale: string): void;
|
|
274
|
-
getLocale: () => string;
|
|
275
|
-
setTextFromProp(textProp?: string): void;
|
|
276
|
-
getTextFromProp(fallback: string): string;
|
|
277
|
-
setMessages(messages: TMessage[]): void;
|
|
278
|
-
getMessages(): undefined;
|
|
279
|
-
setMaxHeight(height: number): void;
|
|
280
|
-
getMaxHeight(): number | undefined;
|
|
281
|
-
setKeyboardHeight(height: number): void;
|
|
282
|
-
getKeyboardHeight(): number;
|
|
283
|
-
setBottomOffset(value: number): void;
|
|
284
|
-
getBottomOffset(): number;
|
|
285
|
-
setIsFirstLayout(value: boolean): void;
|
|
286
|
-
getIsFirstLayout(): boolean;
|
|
287
|
-
setIsTypingDisabled(value: boolean): void;
|
|
288
|
-
getIsTypingDisabled(): boolean;
|
|
289
|
-
setIsMounted(value: boolean): void;
|
|
290
|
-
getIsMounted(): boolean;
|
|
291
|
-
getMinInputToolbarHeight(): number | undefined;
|
|
292
|
-
calculateInputToolbarHeight(composerHeight: number): number;
|
|
293
|
-
/**
|
|
294
|
-
* Returns the height, based on current window size, without taking the keyboard into account.
|
|
295
|
-
*/
|
|
296
|
-
getBasicMessagesContainerHeight(composerHeight?: number | undefined): number;
|
|
297
|
-
/**
|
|
298
|
-
* Returns the height, based on current window size, taking the keyboard into account.
|
|
299
|
-
*/
|
|
300
|
-
getMessagesContainerHeightWithKeyboard(composerHeight?: number | undefined): number;
|
|
301
|
-
/**
|
|
302
|
-
* Store text input focus status when keyboard hide to retrieve
|
|
303
|
-
* it after wards if needed.
|
|
304
|
-
* `onKeyboardWillHide` may be called twice in sequence so we
|
|
305
|
-
* make a guard condition (eg. showing image picker)
|
|
306
|
-
*/
|
|
307
|
-
handleTextInputFocusWhenKeyboardHide(): void;
|
|
308
|
-
/**
|
|
309
|
-
* Refocus the text input only if it was focused before showing keyboard.
|
|
310
|
-
* This is needed in some cases (eg. showing image picker).
|
|
311
|
-
*/
|
|
312
|
-
handleTextInputFocusWhenKeyboardShow(): void;
|
|
313
|
-
onKeyboardWillShow: (e: any) => void;
|
|
314
|
-
onKeyboardWillHide: (_e: any) => void;
|
|
315
|
-
onKeyboardDidShow: (e: any) => void;
|
|
316
|
-
onKeyboardDidHide: (e: any) => void;
|
|
317
|
-
scrollToBottom(animated?: boolean): void;
|
|
318
|
-
renderMessages(): JSX.Element;
|
|
319
|
-
onSend: (messages?: TMessage[], shouldResetInputToolbar?: boolean) => void;
|
|
320
|
-
resetInputToolbar(): void;
|
|
321
|
-
focusTextInput(): void;
|
|
322
|
-
onInputSizeChanged: (size: {
|
|
323
|
-
height: number;
|
|
324
|
-
}) => void;
|
|
325
|
-
onInputTextChanged: (text: string) => void;
|
|
326
|
-
notifyInputTextReset(): void;
|
|
327
|
-
onInitialLayoutViewLayout: (e: any) => void;
|
|
328
|
-
onMainViewLayout: (e: LayoutChangeEvent) => void;
|
|
329
|
-
renderInputToolbar(): React.ReactNode;
|
|
330
|
-
renderChatFooter(): React.ReactNode;
|
|
331
|
-
renderLoading(): React.ReactNode;
|
|
332
|
-
render(): JSX.Element;
|
|
183
|
+
var append: <TMessage extends IMessage>(currentMessages: TMessage[] | undefined, messages: TMessage[], inverted?: boolean) => TMessage[];
|
|
184
|
+
var prepend: <TMessage extends IMessage>(currentMessages: TMessage[] | undefined, messages: TMessage[], inverted?: boolean) => TMessage[];
|
|
333
185
|
}
|
|
334
186
|
export * from './Models';
|
|
335
187
|
export { GiftedChat, Actions, Avatar, Bubble, SystemMessage, MessageImage, MessageText, Composer, Day, InputToolbar, LoadEarlier, Message, MessageContainer, Send, Time, GiftedAvatar, utils, };
|
package/lib/GiftedChat.js
CHANGED
|
@@ -1,510 +1,362 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Platform, StyleSheet, View, KeyboardAvoidingView, } from 'react-native';
|
|
4
1
|
import { ActionSheetProvider, } from '@expo/react-native-action-sheet';
|
|
5
|
-
import uuid from 'uuid';
|
|
6
2
|
import dayjs from 'dayjs';
|
|
7
3
|
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
|
8
|
-
import
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
6
|
+
import { KeyboardAvoidingView, Platform, StyleSheet, View, } from 'react-native';
|
|
7
|
+
import uuid from 'uuid';
|
|
9
8
|
import { Actions } from './Actions';
|
|
10
9
|
import { Avatar } from './Avatar';
|
|
11
10
|
import Bubble from './Bubble';
|
|
12
|
-
import { SystemMessage } from './SystemMessage';
|
|
13
|
-
import { MessageImage } from './MessageImage';
|
|
14
|
-
import { MessageText } from './MessageText';
|
|
15
11
|
import { Composer } from './Composer';
|
|
12
|
+
import { MAX_COMPOSER_HEIGHT, MIN_COMPOSER_HEIGHT, TEST_ID } from './Constant';
|
|
16
13
|
import { Day } from './Day';
|
|
14
|
+
import GiftedAvatar from './GiftedAvatar';
|
|
15
|
+
import { GiftedChatContext } from './GiftedChatContext';
|
|
17
16
|
import { InputToolbar } from './InputToolbar';
|
|
18
17
|
import { LoadEarlier } from './LoadEarlier';
|
|
19
18
|
import Message from './Message';
|
|
20
19
|
import MessageContainer from './MessageContainer';
|
|
20
|
+
import { MessageImage } from './MessageImage';
|
|
21
|
+
import { MessageText } from './MessageText';
|
|
21
22
|
import { Send } from './Send';
|
|
22
|
-
import {
|
|
23
|
+
import { SystemMessage } from './SystemMessage';
|
|
23
24
|
import { Time } from './Time';
|
|
24
|
-
import
|
|
25
|
-
import { MIN_COMPOSER_HEIGHT, MAX_COMPOSER_HEIGHT, DEFAULT_PLACEHOLDER, TIME_FORMAT, DATE_FORMAT, TEST_ID, } from './Constant';
|
|
25
|
+
import * as utils from './utils';
|
|
26
26
|
dayjs.extend(localizedFormat);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this.onKeyboardWillHide = (_e) => {
|
|
61
|
-
this.handleTextInputFocusWhenKeyboardHide();
|
|
62
|
-
if (this.props.isKeyboardInternallyHandled) {
|
|
63
|
-
this.setIsTypingDisabled(true);
|
|
64
|
-
this.setKeyboardHeight(0);
|
|
65
|
-
this.setBottomOffset(0);
|
|
66
|
-
const newMessagesContainerHeight = this.getBasicMessagesContainerHeight();
|
|
67
|
-
this.setState({
|
|
68
|
-
messagesContainerHeight: newMessagesContainerHeight,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
this.onKeyboardDidShow = (e) => {
|
|
73
|
-
if (Platform.OS === 'android') {
|
|
74
|
-
this.onKeyboardWillShow(e);
|
|
75
|
-
}
|
|
76
|
-
this.setIsTypingDisabled(false);
|
|
77
|
-
};
|
|
78
|
-
this.onKeyboardDidHide = (e) => {
|
|
79
|
-
if (Platform.OS === 'android') {
|
|
80
|
-
this.onKeyboardWillHide(e);
|
|
81
|
-
}
|
|
82
|
-
this.setIsTypingDisabled(false);
|
|
83
|
-
};
|
|
84
|
-
this.onSend = (messages = [], shouldResetInputToolbar = false) => {
|
|
85
|
-
if (!Array.isArray(messages)) {
|
|
86
|
-
messages = [messages];
|
|
87
|
-
}
|
|
88
|
-
const newMessages = messages.map(message => {
|
|
89
|
-
return {
|
|
90
|
-
...message,
|
|
91
|
-
user: this.props.user,
|
|
92
|
-
createdAt: new Date(),
|
|
93
|
-
_id: this.props.messageIdGenerator && this.props.messageIdGenerator(),
|
|
94
|
-
};
|
|
95
|
-
});
|
|
96
|
-
if (shouldResetInputToolbar === true) {
|
|
97
|
-
this.setIsTypingDisabled(true);
|
|
98
|
-
this.resetInputToolbar();
|
|
99
|
-
}
|
|
100
|
-
if (this.props.onSend) {
|
|
101
|
-
this.props.onSend(newMessages);
|
|
102
|
-
}
|
|
103
|
-
if (shouldResetInputToolbar === true) {
|
|
104
|
-
setTimeout(() => {
|
|
105
|
-
if (this.getIsMounted() === true) {
|
|
106
|
-
this.setIsTypingDisabled(false);
|
|
107
|
-
}
|
|
108
|
-
}, 100);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
this.onInputSizeChanged = (size) => {
|
|
112
|
-
const newComposerHeight = Math.max(this.props.minComposerHeight, Math.min(this.props.maxComposerHeight, size.height));
|
|
113
|
-
const newMessagesContainerHeight = this.getMessagesContainerHeightWithKeyboard(newComposerHeight);
|
|
114
|
-
this.setState({
|
|
115
|
-
composerHeight: newComposerHeight,
|
|
116
|
-
messagesContainerHeight: newMessagesContainerHeight,
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
this.onInputTextChanged = (text) => {
|
|
120
|
-
if (this.getIsTypingDisabled()) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
if (this.props.onInputTextChanged) {
|
|
124
|
-
this.props.onInputTextChanged(text);
|
|
125
|
-
}
|
|
126
|
-
// Only set state if it's not being overridden by a prop.
|
|
127
|
-
if (this.props.text === undefined) {
|
|
128
|
-
this.setState({ text });
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
this.onInitialLayoutViewLayout = (e) => {
|
|
132
|
-
const { layout } = e.nativeEvent;
|
|
133
|
-
if (layout.height <= 0) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
this.notifyInputTextReset();
|
|
137
|
-
this.setMaxHeight(layout.height);
|
|
138
|
-
const newComposerHeight = this.props.minComposerHeight;
|
|
139
|
-
const newMessagesContainerHeight = this.getMessagesContainerHeightWithKeyboard(newComposerHeight);
|
|
140
|
-
const initialText = this.props.initialText || '';
|
|
141
|
-
this.setState({
|
|
142
|
-
isInitialized: true,
|
|
143
|
-
text: this.getTextFromProp(initialText),
|
|
144
|
-
composerHeight: newComposerHeight,
|
|
145
|
-
messagesContainerHeight: newMessagesContainerHeight,
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
this.onMainViewLayout = (e) => {
|
|
149
|
-
// TODO: fix an issue when keyboard is dismissing during the initialization
|
|
150
|
-
const { layout } = e.nativeEvent;
|
|
151
|
-
if (this.getMaxHeight() !== layout.height ||
|
|
152
|
-
this.getIsFirstLayout() === true) {
|
|
153
|
-
this.setMaxHeight(layout.height);
|
|
154
|
-
this.setState({
|
|
155
|
-
messagesContainerHeight: this._keyboardHeight > 0
|
|
156
|
-
? this.getMessagesContainerHeightWithKeyboard()
|
|
157
|
-
: this.getBasicMessagesContainerHeight(),
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
if (this.getIsFirstLayout() === true) {
|
|
161
|
-
this.setIsFirstLayout(false);
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
this.invertibleScrollViewProps = {
|
|
165
|
-
inverted: this.props.inverted,
|
|
166
|
-
keyboardShouldPersistTaps: this.props.keyboardShouldPersistTaps,
|
|
167
|
-
onKeyboardWillShow: this.onKeyboardWillShow,
|
|
168
|
-
onKeyboardWillHide: this.onKeyboardWillHide,
|
|
169
|
-
onKeyboardDidShow: this.onKeyboardDidShow,
|
|
170
|
-
onKeyboardDidHide: this.onKeyboardDidHide,
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
static append(currentMessages = [], messages, inverted = true) {
|
|
174
|
-
if (!Array.isArray(messages)) {
|
|
175
|
-
messages = [messages];
|
|
176
|
-
}
|
|
177
|
-
return inverted
|
|
178
|
-
? messages.concat(currentMessages)
|
|
179
|
-
: currentMessages.concat(messages);
|
|
180
|
-
}
|
|
181
|
-
static prepend(currentMessages = [], messages, inverted = true) {
|
|
182
|
-
if (!Array.isArray(messages)) {
|
|
183
|
-
messages = [messages];
|
|
184
|
-
}
|
|
185
|
-
return inverted
|
|
186
|
-
? currentMessages.concat(messages)
|
|
187
|
-
: messages.concat(currentMessages);
|
|
188
|
-
}
|
|
189
|
-
componentDidMount() {
|
|
190
|
-
const { messages, text } = this.props;
|
|
191
|
-
this.setIsMounted(true);
|
|
192
|
-
this.initLocale();
|
|
193
|
-
this.setMessages(messages || []);
|
|
194
|
-
this.setTextFromProp(text);
|
|
195
|
-
}
|
|
196
|
-
componentWillUnmount() {
|
|
197
|
-
this.setIsMounted(false);
|
|
198
|
-
}
|
|
199
|
-
componentDidUpdate(prevProps = {}) {
|
|
200
|
-
const { messages, text, inverted } = this.props;
|
|
201
|
-
if (this.props !== prevProps) {
|
|
202
|
-
this.setMessages(messages || []);
|
|
203
|
-
}
|
|
204
|
-
if (inverted === false &&
|
|
205
|
-
messages &&
|
|
206
|
-
prevProps.messages &&
|
|
207
|
-
messages.length !== prevProps.messages.length) {
|
|
208
|
-
setTimeout(() => this.scrollToBottom(false), 200);
|
|
209
|
-
}
|
|
210
|
-
if (text !== prevProps.text) {
|
|
211
|
-
this.setTextFromProp(text);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
initLocale() {
|
|
215
|
-
if (this.props.locale === null) {
|
|
216
|
-
this.setLocale('en');
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
this.setLocale(this.props.locale || 'en');
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
setLocale(locale) {
|
|
223
|
-
this._locale = locale;
|
|
224
|
-
}
|
|
225
|
-
setTextFromProp(textProp) {
|
|
226
|
-
// Text prop takes precedence over state.
|
|
227
|
-
if (textProp !== undefined && textProp !== this.state.text) {
|
|
228
|
-
this.setState({ text: textProp });
|
|
27
|
+
function GiftedChat(props) {
|
|
28
|
+
const { messages = [], text = undefined, initialText = '', isTyping, messageIdGenerator = () => uuid.v4(), user = {}, onSend = () => { }, locale = 'en', renderLoading = null, actionSheet = null, textInputProps = {}, renderChatFooter = null, renderInputToolbar = null, renderAccessory = null, isKeyboardInternallyHandled = true, bottomOffset = null, minInputToolbarHeight = 44, keyboardShouldPersistTaps = Platform.select({
|
|
29
|
+
ios: 'never',
|
|
30
|
+
android: 'always',
|
|
31
|
+
default: 'never',
|
|
32
|
+
}), onInputTextChanged = null, maxInputLength = null, forceGetKeyboardHeight = false, inverted = true, minComposerHeight = MIN_COMPOSER_HEIGHT, maxComposerHeight = MAX_COMPOSER_HEIGHT, } = props;
|
|
33
|
+
const isMountedRef = useRef(false);
|
|
34
|
+
const keyboardHeightRef = useRef(0);
|
|
35
|
+
const bottomOffsetRef = useRef(0);
|
|
36
|
+
const maxHeightRef = useRef(undefined);
|
|
37
|
+
const isFirstLayoutRef = useRef(true);
|
|
38
|
+
const actionSheetRef = useRef(null);
|
|
39
|
+
const messageContainerRef = useRef(null);
|
|
40
|
+
let _isTextInputWasFocused = false;
|
|
41
|
+
let textInputRef = useRef();
|
|
42
|
+
const [state, setState] = useState({
|
|
43
|
+
isInitialized: false,
|
|
44
|
+
composerHeight: minComposerHeight,
|
|
45
|
+
messagesContainerHeight: undefined,
|
|
46
|
+
typingDisabled: false,
|
|
47
|
+
text: undefined,
|
|
48
|
+
messages: undefined,
|
|
49
|
+
});
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
isMountedRef.current = true;
|
|
52
|
+
setState({
|
|
53
|
+
...state,
|
|
54
|
+
messages,
|
|
55
|
+
// Text prop takes precedence over state.
|
|
56
|
+
...(text !== undefined && text !== state.text && { text: text }),
|
|
57
|
+
});
|
|
58
|
+
if (inverted === false && (messages === null || messages === void 0 ? void 0 : messages.length)) {
|
|
59
|
+
setTimeout(() => scrollToBottom(false), 200);
|
|
229
60
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
61
|
+
return () => {
|
|
62
|
+
isMountedRef.current = false;
|
|
63
|
+
};
|
|
64
|
+
}, [messages, text]);
|
|
65
|
+
const getTextFromProp = (fallback) => {
|
|
66
|
+
if (text === undefined) {
|
|
233
67
|
return fallback;
|
|
234
68
|
}
|
|
235
|
-
return
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
getMessages() {
|
|
241
|
-
return this.state.messages;
|
|
242
|
-
}
|
|
243
|
-
setMaxHeight(height) {
|
|
244
|
-
this._maxHeight = height;
|
|
245
|
-
}
|
|
246
|
-
getMaxHeight() {
|
|
247
|
-
return this._maxHeight;
|
|
248
|
-
}
|
|
249
|
-
setKeyboardHeight(height) {
|
|
250
|
-
this._keyboardHeight = height;
|
|
251
|
-
}
|
|
252
|
-
getKeyboardHeight() {
|
|
253
|
-
if (Platform.OS === 'android' && !this.props.forceGetKeyboardHeight) {
|
|
69
|
+
return text;
|
|
70
|
+
};
|
|
71
|
+
const getKeyboardHeight = () => {
|
|
72
|
+
if (Platform.OS === 'android' && !forceGetKeyboardHeight) {
|
|
254
73
|
// For android: on-screen keyboard resized main container and has own height.
|
|
255
74
|
// @see https://developer.android.com/training/keyboard-input/visibility.html
|
|
256
75
|
// So for calculate the messages container height ignore keyboard height.
|
|
257
76
|
return 0;
|
|
258
77
|
}
|
|
259
|
-
return
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return
|
|
266
|
-
}
|
|
267
|
-
setIsFirstLayout(value) {
|
|
268
|
-
this._isFirstLayout = value;
|
|
269
|
-
}
|
|
270
|
-
getIsFirstLayout() {
|
|
271
|
-
return this._isFirstLayout;
|
|
272
|
-
}
|
|
273
|
-
setIsTypingDisabled(value) {
|
|
274
|
-
this.setState({
|
|
275
|
-
typingDisabled: value,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
getIsTypingDisabled() {
|
|
279
|
-
return this.state.typingDisabled;
|
|
280
|
-
}
|
|
281
|
-
setIsMounted(value) {
|
|
282
|
-
this._isMounted = value;
|
|
283
|
-
}
|
|
284
|
-
getIsMounted() {
|
|
285
|
-
return this._isMounted;
|
|
286
|
-
}
|
|
287
|
-
getMinInputToolbarHeight() {
|
|
288
|
-
return this.props.renderAccessory
|
|
289
|
-
? this.props.minInputToolbarHeight * 2
|
|
290
|
-
: this.props.minInputToolbarHeight;
|
|
291
|
-
}
|
|
292
|
-
calculateInputToolbarHeight(composerHeight) {
|
|
293
|
-
return (composerHeight +
|
|
294
|
-
(this.getMinInputToolbarHeight() - this.props.minComposerHeight));
|
|
295
|
-
}
|
|
78
|
+
return keyboardHeightRef.current;
|
|
79
|
+
};
|
|
80
|
+
const calculateInputToolbarHeight = (composerHeight) => {
|
|
81
|
+
const getMinInputToolbarHeight = renderAccessory
|
|
82
|
+
? minInputToolbarHeight * 2
|
|
83
|
+
: minInputToolbarHeight;
|
|
84
|
+
return composerHeight + (getMinInputToolbarHeight - minComposerHeight);
|
|
85
|
+
};
|
|
296
86
|
/**
|
|
297
87
|
* Returns the height, based on current window size, without taking the keyboard into account.
|
|
298
88
|
*/
|
|
299
|
-
getBasicMessagesContainerHeight(composerHeight =
|
|
300
|
-
return
|
|
301
|
-
}
|
|
89
|
+
const getBasicMessagesContainerHeight = (composerHeight = state.composerHeight) => {
|
|
90
|
+
return maxHeightRef.current - calculateInputToolbarHeight(composerHeight);
|
|
91
|
+
};
|
|
302
92
|
/**
|
|
303
93
|
* Returns the height, based on current window size, taking the keyboard into account.
|
|
304
94
|
*/
|
|
305
|
-
getMessagesContainerHeightWithKeyboard(composerHeight =
|
|
306
|
-
return (
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
95
|
+
const getMessagesContainerHeightWithKeyboard = (composerHeight = state.composerHeight) => {
|
|
96
|
+
return (getBasicMessagesContainerHeight(composerHeight) -
|
|
97
|
+
getKeyboardHeight() +
|
|
98
|
+
bottomOffsetRef.current);
|
|
99
|
+
};
|
|
310
100
|
/**
|
|
311
101
|
* Store text input focus status when keyboard hide to retrieve
|
|
312
102
|
* it after wards if needed.
|
|
313
103
|
* `onKeyboardWillHide` may be called twice in sequence so we
|
|
314
104
|
* make a guard condition (eg. showing image picker)
|
|
315
105
|
*/
|
|
316
|
-
handleTextInputFocusWhenKeyboardHide() {
|
|
106
|
+
const handleTextInputFocusWhenKeyboardHide = () => {
|
|
317
107
|
var _a;
|
|
318
|
-
if (!
|
|
319
|
-
|
|
108
|
+
if (!_isTextInputWasFocused) {
|
|
109
|
+
_isTextInputWasFocused = ((_a = textInputRef.current) === null || _a === void 0 ? void 0 : _a.isFocused()) || false;
|
|
320
110
|
}
|
|
321
|
-
}
|
|
111
|
+
};
|
|
322
112
|
/**
|
|
323
113
|
* Refocus the text input only if it was focused before showing keyboard.
|
|
324
114
|
* This is needed in some cases (eg. showing image picker).
|
|
325
115
|
*/
|
|
326
|
-
handleTextInputFocusWhenKeyboardShow() {
|
|
327
|
-
if (
|
|
328
|
-
|
|
329
|
-
!
|
|
330
|
-
|
|
116
|
+
const handleTextInputFocusWhenKeyboardShow = () => {
|
|
117
|
+
if (textInputRef.current &&
|
|
118
|
+
_isTextInputWasFocused &&
|
|
119
|
+
!textInputRef.current.isFocused()) {
|
|
120
|
+
textInputRef.current.focus();
|
|
331
121
|
}
|
|
332
122
|
// Reset the indicator since the keyboard is shown
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
123
|
+
_isTextInputWasFocused = false;
|
|
124
|
+
};
|
|
125
|
+
const onKeyboardWillShow = (e) => {
|
|
126
|
+
handleTextInputFocusWhenKeyboardShow();
|
|
127
|
+
if (isKeyboardInternallyHandled) {
|
|
128
|
+
keyboardHeightRef.current = e.endCoordinates
|
|
129
|
+
? e.endCoordinates.height
|
|
130
|
+
: e.end.height;
|
|
131
|
+
bottomOffsetRef.current = bottomOffset != null ? bottomOffset : 1;
|
|
132
|
+
const newMessagesContainerHeight = getMessagesContainerHeightWithKeyboard();
|
|
133
|
+
setState({
|
|
134
|
+
...state,
|
|
135
|
+
typingDisabled: true,
|
|
136
|
+
messagesContainerHeight: newMessagesContainerHeight,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const onKeyboardWillHide = (_e) => {
|
|
141
|
+
handleTextInputFocusWhenKeyboardHide();
|
|
142
|
+
if (isKeyboardInternallyHandled) {
|
|
143
|
+
keyboardHeightRef.current = 0;
|
|
144
|
+
bottomOffsetRef.current = 0;
|
|
145
|
+
const newMessagesContainerHeight = getBasicMessagesContainerHeight();
|
|
146
|
+
setState({
|
|
147
|
+
...state,
|
|
148
|
+
typingDisabled: true,
|
|
149
|
+
messagesContainerHeight: newMessagesContainerHeight,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const onKeyboardDidShow = (e) => {
|
|
154
|
+
if (Platform.OS === 'android') {
|
|
155
|
+
onKeyboardWillShow(e);
|
|
156
|
+
}
|
|
157
|
+
setState({
|
|
158
|
+
...state,
|
|
159
|
+
typingDisabled: false,
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
const onKeyboardDidHide = (e) => {
|
|
163
|
+
if (Platform.OS === 'android') {
|
|
164
|
+
onKeyboardWillHide(e);
|
|
165
|
+
}
|
|
166
|
+
setState({
|
|
167
|
+
...state,
|
|
168
|
+
typingDisabled: false,
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
const scrollToBottom = (animated = true) => {
|
|
172
|
+
if (messageContainerRef === null || messageContainerRef === void 0 ? void 0 : messageContainerRef.current) {
|
|
338
173
|
if (!inverted) {
|
|
339
|
-
|
|
174
|
+
messageContainerRef.current.scrollToEnd({ animated });
|
|
340
175
|
}
|
|
341
176
|
else {
|
|
342
|
-
|
|
177
|
+
messageContainerRef.current.scrollToOffset({
|
|
343
178
|
offset: 0,
|
|
344
179
|
animated,
|
|
345
180
|
});
|
|
346
181
|
}
|
|
347
182
|
}
|
|
348
|
-
}
|
|
349
|
-
renderMessages() {
|
|
350
|
-
const { messagesContainerStyle, ...messagesContainerProps } =
|
|
183
|
+
};
|
|
184
|
+
const renderMessages = () => {
|
|
185
|
+
const { messagesContainerStyle, ...messagesContainerProps } = props;
|
|
351
186
|
const fragment = (<View style={[
|
|
352
|
-
{
|
|
353
|
-
height:
|
|
187
|
+
typeof state.messagesContainerHeight === 'number' && {
|
|
188
|
+
height: state.messagesContainerHeight,
|
|
354
189
|
},
|
|
355
190
|
messagesContainerStyle,
|
|
356
191
|
]}>
|
|
357
|
-
<MessageContainer {...messagesContainerProps} invertibleScrollViewProps={
|
|
358
|
-
|
|
192
|
+
<MessageContainer {...messagesContainerProps} invertibleScrollViewProps={{
|
|
193
|
+
inverted: inverted,
|
|
194
|
+
keyboardShouldPersistTaps: keyboardShouldPersistTaps,
|
|
195
|
+
onKeyboardWillShow: onKeyboardWillShow,
|
|
196
|
+
onKeyboardWillHide: onKeyboardWillHide,
|
|
197
|
+
onKeyboardDidShow: onKeyboardDidShow,
|
|
198
|
+
onKeyboardDidHide: onKeyboardDidHide,
|
|
199
|
+
}} messages={state.messages} forwardRef={messageContainerRef} isTyping={isTyping}/>
|
|
200
|
+
{_renderChatFooter()}
|
|
359
201
|
</View>);
|
|
360
|
-
return
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
if (
|
|
364
|
-
|
|
202
|
+
return isKeyboardInternallyHandled ? (<KeyboardAvoidingView enabled>{fragment}</KeyboardAvoidingView>) : (fragment);
|
|
203
|
+
};
|
|
204
|
+
const _onSend = (messages = [], shouldResetInputToolbar = false) => {
|
|
205
|
+
if (!Array.isArray(messages)) {
|
|
206
|
+
messages = [messages];
|
|
207
|
+
}
|
|
208
|
+
const newMessages = messages.map(message => {
|
|
209
|
+
return {
|
|
210
|
+
...message,
|
|
211
|
+
user: user,
|
|
212
|
+
createdAt: new Date(),
|
|
213
|
+
_id: messageIdGenerator && messageIdGenerator(),
|
|
214
|
+
};
|
|
215
|
+
});
|
|
216
|
+
if (shouldResetInputToolbar === true) {
|
|
217
|
+
setState({
|
|
218
|
+
...state,
|
|
219
|
+
typingDisabled: true,
|
|
220
|
+
});
|
|
221
|
+
resetInputToolbar();
|
|
222
|
+
}
|
|
223
|
+
if (onSend) {
|
|
224
|
+
onSend(newMessages);
|
|
225
|
+
}
|
|
226
|
+
// if (shouldResetInputToolbar === true) {
|
|
227
|
+
// setTimeout(() => {
|
|
228
|
+
// if (isMountedRef.current === true) {
|
|
229
|
+
// setState({
|
|
230
|
+
// ...state,
|
|
231
|
+
// typingDisabled: false,
|
|
232
|
+
// })
|
|
233
|
+
// }
|
|
234
|
+
// }, 100)
|
|
235
|
+
// }
|
|
236
|
+
};
|
|
237
|
+
const resetInputToolbar = () => {
|
|
238
|
+
if (textInputRef.current) {
|
|
239
|
+
textInputRef.current.clear();
|
|
365
240
|
}
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
text:
|
|
241
|
+
notifyInputTextReset();
|
|
242
|
+
const newMessagesContainerHeight = getMessagesContainerHeightWithKeyboard(minComposerHeight);
|
|
243
|
+
setState({
|
|
244
|
+
...state,
|
|
245
|
+
text: getTextFromProp(''),
|
|
246
|
+
composerHeight: minComposerHeight,
|
|
247
|
+
messagesContainerHeight: newMessagesContainerHeight,
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
const onInputSizeChanged = (size) => {
|
|
251
|
+
const newComposerHeight = Math.max(minComposerHeight, Math.min(maxComposerHeight, size.height));
|
|
252
|
+
const newMessagesContainerHeight = getMessagesContainerHeightWithKeyboard(newComposerHeight);
|
|
253
|
+
setState({
|
|
254
|
+
...state,
|
|
371
255
|
composerHeight: newComposerHeight,
|
|
372
256
|
messagesContainerHeight: newMessagesContainerHeight,
|
|
373
257
|
});
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (
|
|
377
|
-
|
|
258
|
+
};
|
|
259
|
+
const _onInputTextChanged = (_text) => {
|
|
260
|
+
if (state.typingDisabled) {
|
|
261
|
+
return;
|
|
378
262
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
if (this.props.onInputTextChanged) {
|
|
382
|
-
this.props.onInputTextChanged('');
|
|
263
|
+
if (onInputTextChanged) {
|
|
264
|
+
onInputTextChanged(_text);
|
|
383
265
|
}
|
|
384
|
-
|
|
385
|
-
|
|
266
|
+
// Only set state if it's not being overridden by a prop.
|
|
267
|
+
if (text === undefined) {
|
|
268
|
+
setState({ ...state, text: _text });
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
const notifyInputTextReset = () => {
|
|
272
|
+
if (onInputTextChanged) {
|
|
273
|
+
onInputTextChanged('');
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
const onInitialLayoutViewLayout = (e) => {
|
|
277
|
+
const { layout } = e.nativeEvent;
|
|
278
|
+
if (layout.height <= 0) {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
notifyInputTextReset();
|
|
282
|
+
maxHeightRef.current = layout.height;
|
|
283
|
+
const newMessagesContainerHeight = getMessagesContainerHeightWithKeyboard(minComposerHeight);
|
|
284
|
+
setState({
|
|
285
|
+
...state,
|
|
286
|
+
isInitialized: true,
|
|
287
|
+
text: getTextFromProp(initialText),
|
|
288
|
+
composerHeight: minComposerHeight,
|
|
289
|
+
messagesContainerHeight: newMessagesContainerHeight,
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
const onMainViewLayout = (e) => {
|
|
293
|
+
// TODO: fix an issue when keyboard is dismissing during the initialization
|
|
294
|
+
const { layout } = e.nativeEvent;
|
|
295
|
+
if (maxHeightRef.current !== layout.height ||
|
|
296
|
+
isFirstLayoutRef.current === true) {
|
|
297
|
+
maxHeightRef.current = layout.height;
|
|
298
|
+
setState({
|
|
299
|
+
...state,
|
|
300
|
+
messagesContainerHeight: keyboardHeightRef.current > 0
|
|
301
|
+
? getMessagesContainerHeightWithKeyboard()
|
|
302
|
+
: getBasicMessagesContainerHeight(),
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
if (isFirstLayoutRef.current === true) {
|
|
306
|
+
isFirstLayoutRef.current = false;
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
const _renderInputToolbar = () => {
|
|
386
310
|
const inputToolbarProps = {
|
|
387
|
-
...
|
|
388
|
-
text:
|
|
389
|
-
composerHeight: Math.max(
|
|
390
|
-
onSend:
|
|
391
|
-
onInputSizeChanged:
|
|
392
|
-
onTextChanged:
|
|
311
|
+
...props,
|
|
312
|
+
text: getTextFromProp(state.text),
|
|
313
|
+
composerHeight: Math.max(minComposerHeight, state.composerHeight),
|
|
314
|
+
onSend: _onSend,
|
|
315
|
+
onInputSizeChanged: onInputSizeChanged,
|
|
316
|
+
onTextChanged: _onInputTextChanged,
|
|
393
317
|
textInputProps: {
|
|
394
|
-
...
|
|
395
|
-
ref: (textInput) => (
|
|
396
|
-
maxLength:
|
|
318
|
+
...textInputProps,
|
|
319
|
+
ref: (textInput) => (textInputRef = textInput),
|
|
320
|
+
maxLength: state.typingDisabled ? 0 : maxInputLength,
|
|
397
321
|
},
|
|
398
322
|
};
|
|
399
|
-
if (
|
|
400
|
-
return
|
|
323
|
+
if (renderInputToolbar) {
|
|
324
|
+
return renderInputToolbar(inputToolbarProps);
|
|
401
325
|
}
|
|
402
326
|
return <InputToolbar {...inputToolbarProps}/>;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
if (
|
|
406
|
-
return
|
|
327
|
+
};
|
|
328
|
+
const _renderChatFooter = () => {
|
|
329
|
+
if (renderChatFooter) {
|
|
330
|
+
return renderChatFooter();
|
|
407
331
|
}
|
|
408
332
|
return null;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
333
|
+
};
|
|
334
|
+
const _renderLoading = () => {
|
|
335
|
+
if (renderLoading) {
|
|
336
|
+
return renderLoading();
|
|
413
337
|
}
|
|
414
338
|
return null;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
return (<View testID={TEST_ID.LOADING_WRAPPER} style={styles.container} onLayout={this.onInitialLayoutViewLayout}>
|
|
436
|
-
{this.renderLoading()}
|
|
437
|
-
</View>);
|
|
438
|
-
}
|
|
339
|
+
};
|
|
340
|
+
const contextValues = useMemo(() => ({
|
|
341
|
+
actionSheet: actionSheet || (() => { var _a; return (_a = actionSheetRef.current) === null || _a === void 0 ? void 0 : _a.getContext(); }),
|
|
342
|
+
getLocale: () => locale,
|
|
343
|
+
}), [actionSheet, locale]);
|
|
344
|
+
if (state.isInitialized === true) {
|
|
345
|
+
return (<GiftedChatContext.Provider value={contextValues}>
|
|
346
|
+
<View testID={TEST_ID.WRAPPER} style={styles.wrapper}>
|
|
347
|
+
<ActionSheetProvider ref={actionSheetRef}>
|
|
348
|
+
<View style={styles.container} onLayout={onMainViewLayout}>
|
|
349
|
+
{renderMessages()}
|
|
350
|
+
{_renderInputToolbar()}
|
|
351
|
+
</View>
|
|
352
|
+
</ActionSheetProvider>
|
|
353
|
+
</View>
|
|
354
|
+
</GiftedChatContext.Provider>);
|
|
355
|
+
}
|
|
356
|
+
return (<View testID={TEST_ID.LOADING_WRAPPER} style={styles.container} onLayout={onInitialLayoutViewLayout}>
|
|
357
|
+
{_renderLoading()}
|
|
358
|
+
</View>);
|
|
439
359
|
}
|
|
440
|
-
GiftedChat.defaultProps = {
|
|
441
|
-
messages: [],
|
|
442
|
-
messagesContainerStyle: undefined,
|
|
443
|
-
text: undefined,
|
|
444
|
-
placeholder: DEFAULT_PLACEHOLDER,
|
|
445
|
-
disableComposer: false,
|
|
446
|
-
messageIdGenerator: () => uuid.v4(),
|
|
447
|
-
user: {},
|
|
448
|
-
onSend: () => { },
|
|
449
|
-
locale: null,
|
|
450
|
-
timeFormat: TIME_FORMAT,
|
|
451
|
-
dateFormat: DATE_FORMAT,
|
|
452
|
-
loadEarlier: false,
|
|
453
|
-
onLoadEarlier: () => { },
|
|
454
|
-
isLoadingEarlier: false,
|
|
455
|
-
renderLoading: null,
|
|
456
|
-
renderLoadEarlier: null,
|
|
457
|
-
renderAvatar: undefined,
|
|
458
|
-
showUserAvatar: false,
|
|
459
|
-
actionSheet: null,
|
|
460
|
-
onPressAvatar: null,
|
|
461
|
-
onLongPressAvatar: null,
|
|
462
|
-
renderUsernameOnMessage: false,
|
|
463
|
-
renderAvatarOnTop: false,
|
|
464
|
-
renderBubble: null,
|
|
465
|
-
renderSystemMessage: null,
|
|
466
|
-
onLongPress: null,
|
|
467
|
-
renderUserName: null,
|
|
468
|
-
renderMessage: null,
|
|
469
|
-
renderMessageText: null,
|
|
470
|
-
renderMessageImage: null,
|
|
471
|
-
renderMessageVideo: null,
|
|
472
|
-
renderMessageAudio: null,
|
|
473
|
-
imageProps: {},
|
|
474
|
-
videoProps: {},
|
|
475
|
-
audioProps: {},
|
|
476
|
-
lightboxProps: {},
|
|
477
|
-
textInputProps: {},
|
|
478
|
-
listViewProps: {},
|
|
479
|
-
renderCustomView: null,
|
|
480
|
-
isCustomViewBottom: false,
|
|
481
|
-
renderDay: null,
|
|
482
|
-
renderTime: null,
|
|
483
|
-
renderFooter: null,
|
|
484
|
-
renderChatEmpty: null,
|
|
485
|
-
renderChatFooter: null,
|
|
486
|
-
renderInputToolbar: null,
|
|
487
|
-
renderComposer: null,
|
|
488
|
-
renderActions: null,
|
|
489
|
-
renderSend: null,
|
|
490
|
-
renderAccessory: null,
|
|
491
|
-
isKeyboardInternallyHandled: true,
|
|
492
|
-
onPressActionButton: null,
|
|
493
|
-
bottomOffset: null,
|
|
494
|
-
minInputToolbarHeight: 44,
|
|
495
|
-
keyboardShouldPersistTaps: Platform.select({
|
|
496
|
-
ios: 'never',
|
|
497
|
-
android: 'always',
|
|
498
|
-
default: 'never',
|
|
499
|
-
}),
|
|
500
|
-
onInputTextChanged: null,
|
|
501
|
-
maxInputLength: null,
|
|
502
|
-
forceGetKeyboardHeight: false,
|
|
503
|
-
inverted: true,
|
|
504
|
-
extraData: null,
|
|
505
|
-
minComposerHeight: MIN_COMPOSER_HEIGHT,
|
|
506
|
-
maxComposerHeight: MAX_COMPOSER_HEIGHT,
|
|
507
|
-
};
|
|
508
360
|
GiftedChat.propTypes = {
|
|
509
361
|
messages: PropTypes.arrayOf(PropTypes.object),
|
|
510
362
|
messagesContainerStyle: utils.StylePropType,
|
|
@@ -568,6 +420,22 @@ GiftedChat.propTypes = {
|
|
|
568
420
|
maxComposerHeight: PropTypes.number,
|
|
569
421
|
alignTop: PropTypes.bool,
|
|
570
422
|
};
|
|
423
|
+
GiftedChat.append = (currentMessages = [], messages, inverted = true) => {
|
|
424
|
+
if (!Array.isArray(messages)) {
|
|
425
|
+
messages = [messages];
|
|
426
|
+
}
|
|
427
|
+
return inverted
|
|
428
|
+
? messages.concat(currentMessages)
|
|
429
|
+
: currentMessages.concat(messages);
|
|
430
|
+
};
|
|
431
|
+
GiftedChat.prepend = (currentMessages = [], messages, inverted = true) => {
|
|
432
|
+
if (!Array.isArray(messages)) {
|
|
433
|
+
messages = [messages];
|
|
434
|
+
}
|
|
435
|
+
return inverted
|
|
436
|
+
? currentMessages.concat(messages)
|
|
437
|
+
: messages.concat(currentMessages);
|
|
438
|
+
};
|
|
571
439
|
const styles = StyleSheet.create({
|
|
572
440
|
container: {
|
|
573
441
|
flex: 1,
|
package/lib/GiftedChat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiftedChat.js","sourceRoot":"","sources":["../src/GiftedChat.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAA;AAClC,OAAO,KAAoB,MAAM,OAAO,CAAA;AACxC,OAAO,EAEL,QAAQ,EACR,UAAU,EACV,IAAI,EAKJ,oBAAoB,GAErB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,mBAAmB,GAEpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,eAAe,MAAM,8BAA8B,CAAA;AAE1D,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,MAAM,EAAe,MAAM,UAAU,CAAA;AAC9C,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAsB,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