File tree Expand file tree Collapse file tree 8 files changed +34
-8
lines changed
contexts/themeContext/utils Expand file tree Collapse file tree 8 files changed +34
-8
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ### [ 6.6.3] ( https://github.com/GetStream/stream-chat-react-native/compare/v6.6.2...v6.6.3 ) (2025-02-21)
4+
5+
6+ ### Bug Fixes
7+
8+ * change height of bottom sheet in message menu using theme ([ #2969 ] ( https://github.com/GetStream/stream-chat-react-native/issues/2969 ) ) ([ 094a0e1] ( https://github.com/GetStream/stream-chat-react-native/commit/094a0e1472ba39ab9d18d8a4a8ccefe33be60260 ) )
9+ * file upload preview state refresh when state changes ([ #2970 ] ( https://github.com/GetStream/stream-chat-react-native/issues/2970 ) ) ([ 776ac2c] ( https://github.com/GetStream/stream-chat-react-native/commit/776ac2cca47bce409e60f1a45373271b6c16e31d ) )
10+
311### [ 6.6.2] ( https://github.com/GetStream/stream-chat-react-native/compare/v6.6.1...v6.6.2 ) (2025-02-19)
412
513
Original file line number Diff line number Diff line change 11{
22 "name" : " stream-chat-expo" ,
33 "description" : " The official Expo SDK for Stream Chat, a service for building chat applications" ,
4- "version" : " 6.6.2 " ,
4+ "version" : " 6.6.3 " ,
55 "author" : {
66 "company" : " Stream.io Inc" ,
77 "name" : " Stream.io Inc"
1010 "main" : " src/index.js" ,
1111 "types" : " types/index.d.ts" ,
1212 "dependencies" : {
13- "stream-chat-react-native-core" : " 6.6.2 "
13+ "stream-chat-react-native-core" : " 6.6.3 "
1414 },
1515 "peerDependencies" : {
1616 "expo" : " >=51.0.0" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " stream-chat-react-native" ,
33 "description" : " The official React Native SDK for Stream Chat, a service for building chat applications" ,
4- "version" : " 6.6.2 " ,
4+ "version" : " 6.6.3 " ,
55 "homepage" : " https://www.npmjs.com/package/stream-chat-react-native" ,
66 "author" : {
77 "company" : " Stream.io Inc" ,
2020 "types" : " types/index.d.ts" ,
2121 "dependencies" : {
2222 "es6-symbol" : " ^3.1.3" ,
23- "stream-chat-react-native-core" : " 6.6.2 "
23+ "stream-chat-react-native-core" : " 6.6.3 "
2424 },
2525 "peerDependencies" : {
2626 "@react-native-camera-roll/camera-roll" : " >=7.8.0" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " stream-chat-react-native-core" ,
33 "description" : " The official React Native and Expo components for Stream Chat, a service for building chat applications" ,
4- "version" : " 6.6.2 " ,
4+ "version" : " 6.6.3 " ,
55 "author" : {
66 "company" : " Stream.io Inc" ,
77 "name" : " Stream.io Inc"
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ const FileUploadPreviewWithContext = <
161161 } ) ) ,
162162 ) ;
163163 // eslint-disable-next-line react-hooks/exhaustive-deps
164- } , [ fileUploads . length ] ) ;
164+ } , [ fileUploads ] ) ;
165165
166166 // Handler triggered when an audio is loaded in the message input. The initial state is defined for the audio here and the duration is set.
167167 const onLoad = ( index : string , duration : number ) => {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 MessagesContextValue ,
1313 useMessagesContext ,
1414} from '../../contexts/messagesContext/MessagesContext' ;
15+ import { useTheme } from '../../contexts/themeContext/ThemeContext' ;
1516import { DefaultStreamChatGenerics } from '../../types/types' ;
1617import { BottomSheetModal } from '../UIComponents/BottomSheetModal' ;
1718
@@ -96,10 +97,23 @@ export const MessageMenu = <
9697 propMessageUserReactionsAvatar ?? contextMessageUserReactionsAvatar ;
9798 const MessageUserReactionsItem = propMessageUserReactionsItem ?? contextMessageUserReactionsItem ;
9899 const message = propMessage ?? contextMessage ;
100+ const {
101+ theme : {
102+ messageMenu : {
103+ bottomSheet : { height : bottomSheetHeight } ,
104+ } ,
105+ } ,
106+ } = useTheme ( ) ;
99107
100108 return (
101109 < BottomSheetModal
102- height = { messageActions . length === 0 && ! showMessageReactions ? height / 5 : height / 2 }
110+ height = {
111+ bottomSheetHeight
112+ ? bottomSheetHeight
113+ : messageActions . length === 0 && ! showMessageReactions
114+ ? height / 5
115+ : height / 2
116+ }
103117 onClose = { dismissOverlay }
104118 visible = { visible }
105119 >
Original file line number Diff line number Diff line change @@ -450,6 +450,9 @@ export type Theme = {
450450 icon : ViewStyle ;
451451 title : TextStyle ;
452452 } ;
453+ bottomSheet : {
454+ height ?: number ;
455+ } ;
453456 reactionButton : {
454457 filledColor : ColorValue ;
455458 unfilledColor : ColorValue ;
@@ -1207,6 +1210,7 @@ export const defaultTheme: Theme = {
12071210 icon : { } ,
12081211 title : { } ,
12091212 } ,
1213+ bottomSheet : { } ,
12101214 reactionButton : {
12111215 filledColor : Colors . accent_blue ,
12121216 unfilledColor : Colors . grey ,
Original file line number Diff line number Diff line change 11{
2- "version" : " 6.6.2 "
2+ "version" : " 6.6.3 "
33}
You can’t perform that action at this time.
0 commit comments