Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3489612
D8099.id27450.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
D8099.id27450.diff
View Options
diff --git a/native/chat/message-results-screen.react.js b/native/chat/message-results-screen.react.js
--- a/native/chat/message-results-screen.react.js
+++ b/native/chat/message-results-screen.react.js
@@ -16,6 +16,7 @@
import MessageResult from './message-result.react.js';
import type { NavigationRoute } from '../navigation/route-names';
import { useSelector } from '../redux/redux-utils.js';
+import { useStyles } from '../themes/colors.js';
import type { ChatMessageItemWithHeight } from '../types/chat-types.js';
export type MessageResultsScreenParams = {
@@ -30,6 +31,7 @@
function MessageResultsScreen(props: MessageResultsScreenProps): React.Node {
const { navigation, route } = props;
const { threadInfo } = route.params;
+ const styles = useStyles(unboundStyles);
const { id: threadID } = threadInfo;
const [rawMessageResults, setRawMessageResults] = React.useState([]);
@@ -153,10 +155,20 @@
);
return (
- <View ref={scrollViewContainerRef} onLayout={onLayout}>
+ <View
+ ref={scrollViewContainerRef}
+ onLayout={onLayout}
+ style={styles.scrollViewContainer}
+ >
<ScrollView>{messageResultsToDisplay}</ScrollView>
</View>
);
}
+const unboundStyles = {
+ scrollViewContainer: {
+ flex: 1,
+ },
+};
+
export default MessageResultsScreen;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 1:04 PM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677459
Default Alt Text
D8099.id27450.diff (1 KB)
Attached To
Mode
D8099: [native] Force the tooltip to the bottom of the pinned messages screen
Attached
Detach File
Event Timeline
Log In to Comment