Skip to content

Commit 1d914f9

Browse files
committed
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-native into mark-as-unread
2 parents 20a5826 + f1977dd commit 1d914f9

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

package/src/components/MessageMenu/MessageUserReactionsItem.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export const MessageUserReactionsItem = <
3737
messageMenu: {
3838
userReactions: {
3939
avatarContainer,
40+
avatarInnerContainer,
4041
avatarName,
42+
avatarNameContainer,
4143
avatarSize,
4244
radius,
4345
reactionBubbleBackground,
@@ -69,7 +71,7 @@ export const MessageUserReactionsItem = <
6971
accessibilityLabel='Individual User Reaction on long press message'
7072
style={[styles.avatarContainer, avatarContainer]}
7173
>
72-
<View style={styles.avatarInnerContainer}>
74+
<View style={[styles.avatarInnerContainer, avatarInnerContainer]}>
7375
<MessageUserReactionsAvatar reaction={reaction} size={avatarSize} />
7476
<View
7577
style={[
@@ -91,7 +93,7 @@ export const MessageUserReactionsItem = <
9193
/>
9294
</View>
9395
</View>
94-
<View style={styles.avatarNameContainer}>
96+
<View style={[styles.avatarNameContainer, avatarNameContainer]}>
9597
<Text numberOfLines={2} style={[styles.avatarName, { color: black }, avatarName]}>
9698
{name}
9799
</Text>

package/src/components/UIComponents/BottomSheetModal.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
4545
const { children, height = windowHeight / 2, onClose, visible } = props;
4646
const {
4747
theme: {
48+
bottomSheetModal: { container, contentContainer, handle, overlay: overlayTheme },
4849
colors: { grey, overlay, white_snow },
4950
},
5051
} = useTheme();
@@ -121,7 +122,7 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
121122
<Modal animationType='fade' onRequestClose={handleDismiss} transparent visible={visible}>
122123
<GestureHandlerRootView style={{ flex: 1 }}>
123124
<TouchableWithoutFeedback onPress={handleDismiss}>
124-
<View style={[styles.overlay, { backgroundColor: overlay }]}>
125+
<View style={[styles.overlay, { backgroundColor: overlay }, overlayTheme]}>
125126
<GestureDetector gesture={gesture}>
126127
<Animated.View
127128
style={[
@@ -131,10 +132,13 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
131132
height,
132133
transform: [{ translateY }],
133134
},
135+
container,
134136
]}
135137
>
136-
<View style={[styles.handle, { backgroundColor: grey, width: windowWidth / 4 }]} />
137-
<View style={styles.contentContainer}>{children}</View>
138+
<View
139+
style={[styles.handle, { backgroundColor: grey, width: windowWidth / 4 }, handle]}
140+
/>
141+
<View style={[styles.contentContainer, contentContainer]}>{children}</View>
138142
</Animated.View>
139143
</GestureDetector>
140144
</View>

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ export type Theme = {
127127
presenceIndicator: CircleProps;
128128
presenceIndicatorContainer: ViewStyle;
129129
};
130+
bottomSheetModal: {
131+
container: ViewStyle;
132+
contentContainer: ViewStyle;
133+
handle: ViewStyle;
134+
overlay: ViewStyle;
135+
};
130136
channel: {
131137
selectChannel: TextStyle;
132138
};
@@ -443,7 +449,9 @@ export type Theme = {
443449
};
444450
userReactions: {
445451
avatarContainer: ViewStyle;
452+
avatarInnerContainer: ViewStyle;
446453
avatarName: TextStyle;
454+
avatarNameContainer: ViewStyle;
447455
avatarSize: number;
448456
container: ViewStyle;
449457
contentContainer: ViewStyle;
@@ -863,6 +871,12 @@ export const defaultTheme: Theme = {
863871
},
864872
presenceIndicatorContainer: {},
865873
},
874+
bottomSheetModal: {
875+
container: {},
876+
contentContainer: {},
877+
handle: {},
878+
overlay: {},
879+
},
866880
channel: {
867881
selectChannel: {},
868882
},
@@ -1174,7 +1188,9 @@ export const defaultTheme: Theme = {
11741188
},
11751189
userReactions: {
11761190
avatarContainer: {},
1191+
avatarInnerContainer: {},
11771192
avatarName: {},
1193+
avatarNameContainer: {},
11781194
avatarSize: 64,
11791195
container: {},
11801196
contentContainer: {},

0 commit comments

Comments
 (0)