Page MenuHomePhabricator

D8099.id27450.diff
No OneTemporary

D8099.id27450.diff

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

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)

Event Timeline