File tree Expand file tree Collapse file tree 1 file changed +23
-13
lines changed
package/src/components/MessageInput Expand file tree Collapse file tree 1 file changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,23 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
359359 ) ;
360360 return (
361361 < MicPositionProvider value = { micPositionContextValue } >
362- < Animated . View layout = { LinearTransition . duration ( 200 ) } >
362+ < Animated . View
363+ style = {
364+ messageInputFloating
365+ ? [
366+ styles . floatingWrapper ,
367+ {
368+ bottom :
369+ selectedPicker && ! isKeyboardVisible
370+ ? attachmentPickerBottomSheetHeight - bottomInset + BOTTOM_OFFSET
371+ : BOTTOM_OFFSET ,
372+ } ,
373+ floatingWrapper ,
374+ ]
375+ : null
376+ }
377+ layout = { LinearTransition . duration ( 200 ) }
378+ >
363379 < PortalWhileClosingView
364380 portalHostName = 'overlay-composer'
365381 portalName = 'message-input-composer'
@@ -376,12 +392,7 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
376392 } }
377393 style = {
378394 messageInputFloating
379- ? [
380- styles . wrapper ,
381- styles . floatingWrapper ,
382- { bottom : BOTTOM_OFFSET } ,
383- floatingWrapper ,
384- ]
395+ ? [ styles . wrapper ]
385396 : [
386397 styles . wrapper ,
387398 {
@@ -468,12 +479,11 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
468479 ) : (
469480 < MessageComposerTrailingView />
470481 ) }
471-
472- < View
473- style = { [ styles . suggestionsListContainer , { bottom : height } , suggestionListContainer ] }
474- >
475- < AutoCompleteSuggestionList />
476- </ View >
482+ </ View >
483+ < View
484+ style = { [ styles . suggestionsListContainer , { bottom : height } , suggestionListContainer ] }
485+ >
486+ < AutoCompleteSuggestionList />
477487 </ View >
478488 </ PortalWhileClosingView >
479489 </ Animated . View >
You can’t perform that action at this time.
0 commit comments