diff --git a/native/chat/message-result.react.js b/native/chat/message-result.react.js --- a/native/chat/message-result.react.js +++ b/native/chat/message-result.react.js @@ -29,6 +29,7 @@ | NavigationRoute<'MessageResultsScreen'> | NavigationRoute<'MessageSearch'>, +messageVerticalBounds: ?VerticalBounds, + scrollable: boolean, }; function MessageResult(props: MessageResultProps): React.Node { @@ -41,8 +42,19 @@ [props.item], ); + const containerStyle = React.useMemo(() => { + if (!props.scrollable) { + return styles.container; + } + return { + ...styles.container, + overflow: 'scroll', + maxHeight: 400, + }; + }, [props.scrollable, styles.container]); + return ( - + ); }), diff --git a/native/chat/toggle-pin-modal.react.js b/native/chat/toggle-pin-modal.react.js --- a/native/chat/toggle-pin-modal.react.js +++ b/native/chat/toggle-pin-modal.react.js @@ -102,6 +102,7 @@ navigation={navigation} route={route} messageVerticalBounds={null} + scrollable={true} />