diff --git a/native/chat/inner-robotext-message.react.js b/native/chat/inner-robotext-message.react.js index 38b9b6eac2..e981f79aa7 100644 --- a/native/chat/inner-robotext-message.react.js +++ b/native/chat/inner-robotext-message.react.js @@ -79,16 +79,9 @@ function InnerRobotextMessage(props: InnerRobotextMessageProps): React.Node { }); }, [robotextWithENSNames, activeTheme, threadID, styles.robotext]); - const viewStyle = [styles.robotextContainer]; - if (!__DEV__) { - // We don't force view height in dev mode because we - // want to measure it in Message to see if it's correct - viewStyle.push({ height: item.contentHeight }); - } - return ( - + {textParts} diff --git a/native/chat/robotext-message.react.js b/native/chat/robotext-message.react.js index fbbf12e557..c5cf7a235c 100644 --- a/native/chat/robotext-message.react.js +++ b/native/chat/robotext-message.react.js @@ -196,12 +196,19 @@ function RobotextMessage(props: Props): React.Node { const contentAndHeaderOpacity = useContentAndHeaderOpacity(item); + const viewStyle = {}; + if (!__DEV__) { + // We don't force view height in dev mode because we + // want to measure it in Message to see if it's correct + viewStyle.height = item.contentHeight; + } + return ( {timestamp} - + + {inlineEngagement} - {inlineEngagement} ); }