Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3299860
D8797.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8797.diff
View Options
diff --git a/native/chat/inner-robotext-message.react.js b/native/chat/inner-robotext-message.react.js
--- a/native/chat/inner-robotext-message.react.js
+++ b/native/chat/inner-robotext-message.react.js
@@ -79,16 +79,9 @@
});
}, [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 (
<TouchableWithoutFeedback onPress={onPress} onLongPress={onLongPress}>
- <View style={viewStyle}>
+ <View style={styles.robotextContainer}>
<Text style={styles.robotext}>{textParts}</Text>
</View>
</TouchableWithoutFeedback>
diff --git a/native/chat/robotext-message.react.js b/native/chat/robotext-message.react.js
--- a/native/chat/robotext-message.react.js
+++ b/native/chat/robotext-message.react.js
@@ -196,12 +196,19 @@
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 (
<View {...viewProps}>
<AnimatedView style={{ opacity: contentAndHeaderOpacity }}>
{timestamp}
</AnimatedView>
- <View onLayout={onLayout} ref={viewRef}>
+ <View onLayout={onLayout} ref={viewRef} style={viewStyle}>
<AnimatedView style={{ opacity: contentAndHeaderOpacity }}>
<InnerRobotextMessage
item={item}
@@ -209,8 +216,8 @@
onLongPress={onLongPress}
/>
</AnimatedView>
+ {inlineEngagement}
</View>
- {inlineEngagement}
</View>
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 4:17 PM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535215
Default Alt Text
D8797.diff (1 KB)
Attached To
Mode
D8797: [native] fix forcing the incorrect height for robotext messages
Attached
Detach File
Event Timeline
Log In to Comment