File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
components/MessageInput/__tests__/__snapshots__ Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -800,7 +800,9 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
800800 style = {
801801 [
802802 {
803+ " height" : 0 ,
803804 " opacity" : 0 ,
805+ " width" : 0 ,
804806 },
805807 {
806808 " transform" : [
@@ -852,7 +854,9 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
852854 style = {
853855 [
854856 {
857+ " height" : 0 ,
855858 " opacity" : 0 ,
859+ " width" : 0 ,
856860 },
857861 {
858862 " transform" : [
@@ -1683,7 +1687,9 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
16831687 style = {
16841688 [
16851689 {
1690+ " height" : 0 ,
16861691 " opacity" : 0 ,
1692+ " width" : 0 ,
16871693 },
16881694 {
16891695 " transform" : [
@@ -1735,7 +1741,9 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
17351741 style = {
17361742 [
17371743 {
1744+ " height" : 0 ,
17381745 " opacity" : 0 ,
1746+ " width" : 0 ,
17391747 },
17401748 {
17411749 " transform" : [
@@ -2566,7 +2574,9 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
25662574 style = {
25672575 [
25682576 {
2577+ " height" : 0 ,
25692578 " opacity" : 0 ,
2579+ " width" : 0 ,
25702580 },
25712581 {
25722582 " transform" : [
@@ -2618,7 +2628,9 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
26182628 style = {
26192629 [
26202630 {
2631+ " height" : 0 ,
26212632 " opacity" : 0 ,
2633+ " width" : 0 ,
26222634 },
26232635 {
26242636 " transform" : [
Original file line number Diff line number Diff line change @@ -789,7 +789,9 @@ exports[`SendButton should render a SendButton 1`] = `
789789 style = {
790790 [
791791 {
792+ " height" : 0 ,
792793 " opacity" : 0 ,
794+ " width" : 0 ,
793795 },
794796 {
795797 " transform" : [
@@ -841,7 +843,9 @@ exports[`SendButton should render a SendButton 1`] = `
841843 style = {
842844 [
843845 {
846+ " height" : 0 ,
844847 " opacity" : 0 ,
848+ " width" : 0 ,
845849 },
846850 {
847851 " transform" : [
@@ -1661,7 +1665,9 @@ exports[`SendButton should render a disabled SendButton 1`] = `
16611665 style = {
16621666 [
16631667 {
1668+ " height" : 0 ,
16641669 " opacity" : 0 ,
1670+ " width" : 0 ,
16651671 },
16661672 {
16671673 " transform" : [
@@ -1713,7 +1719,9 @@ exports[`SendButton should render a disabled SendButton 1`] = `
17131719 style = {
17141720 [
17151721 {
1722+ " height" : 0 ,
17161723 " opacity" : 0 ,
1724+ " width" : 0 ,
17171725 },
17181726 {
17191727 " transform" : [
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ export const MessageOverlayHostLayer = ({ BackgroundComponent }: MessageOverlayH
230230 ) ;
231231
232232 const topItemStyle = useAnimatedStyle ( ( ) => {
233- if ( ! topVisualY . value || ! topH . value ) return { opacity : 0 } ;
233+ if ( ! topVisualY . value || ! topH . value ) return { opacity : 0 , height : 0 , width : 0 } ;
234234 const horizontalPosition = I18nManager . isRTL ? { right : topH . value . x } : { left : topH . value . x } ;
235235 return {
236236 height : topH . value . h ,
@@ -249,7 +249,7 @@ export const MessageOverlayHostLayer = ({ BackgroundComponent }: MessageOverlayH
249249 } ) ;
250250
251251 const bottomItemStyle = useAnimatedStyle ( ( ) => {
252- if ( ! bottomVisualY . value || ! bottomH . value ) return { opacity : 0 } ;
252+ if ( ! bottomVisualY . value || ! bottomH . value ) return { opacity : 0 , height : 0 , width : 0 } ;
253253 const horizontalPosition = I18nManager . isRTL
254254 ? { right : bottomH . value . x }
255255 : { left : bottomH . value . x } ;
You can’t perform that action at this time.
0 commit comments