react-native-gifted-chat 3.2.1 → 3.2.2
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/README.md +2 -0
- package/package.json +1 -1
- package/src/SystemMessage.tsx +4 -1
package/README.md
CHANGED
|
@@ -514,3 +514,5 @@ Feel free to ask me questions on Twitter [@FaridSafi](https://www.x.com/FaridSaf
|
|
|
514
514
|
Have any questions? Reach out to [Kesha Antonov](https://github.com/kesha-antonov)
|
|
515
515
|
|
|
516
516
|
Please note that I'm maintaining this project in my free time for free. If you find any issues, feel free to open them, and I'll do my best to address them as time permits.
|
|
517
|
+
|
|
518
|
+
If you consider my work helpful please consider [become a backer](https://github.com/sponsors/kesha-antonov), I'll have more time to work on open source. Thanks!
|
package/package.json
CHANGED
package/src/SystemMessage.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
TextStyle,
|
|
8
8
|
} from 'react-native'
|
|
9
9
|
import { Color } from './Color'
|
|
10
|
-
import { MessageText } from './MessageText'
|
|
10
|
+
import { MessageText, MessageTextProps } from './MessageText'
|
|
11
11
|
import { IMessage } from './Models'
|
|
12
12
|
import stylesCommon from './styles'
|
|
13
13
|
|
|
@@ -16,6 +16,7 @@ export interface SystemMessageProps<TMessage extends IMessage> {
|
|
|
16
16
|
containerStyle?: StyleProp<ViewStyle>
|
|
17
17
|
messageContainerStyle?: StyleProp<ViewStyle>
|
|
18
18
|
textStyle?: StyleProp<TextStyle>
|
|
19
|
+
messageTextProps?: Partial<MessageTextProps<TMessage>>
|
|
19
20
|
children?: React.ReactNode
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -24,6 +25,7 @@ export function SystemMessage<TMessage extends IMessage> ({
|
|
|
24
25
|
containerStyle,
|
|
25
26
|
messageContainerStyle,
|
|
26
27
|
textStyle,
|
|
28
|
+
messageTextProps,
|
|
27
29
|
children,
|
|
28
30
|
}: SystemMessageProps<TMessage>) {
|
|
29
31
|
if (currentMessage == null)
|
|
@@ -38,6 +40,7 @@ export function SystemMessage<TMessage extends IMessage> ({
|
|
|
38
40
|
customTextStyle={[styles.text, textStyle]}
|
|
39
41
|
position='left'
|
|
40
42
|
containerStyle={{ left: [styles.messageContainer, messageContainerStyle] }}
|
|
43
|
+
{...messageTextProps}
|
|
41
44
|
/>
|
|
42
45
|
)
|
|
43
46
|
}
|