Bluesky app fork with some witchin' additions ๐Ÿ’ซ
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[๐Ÿด] Dismiss keyboard before opening convo menu (#3862)

* Dismiss keyboard before opening convo menu

* call `props.onPress()` instead

authored by

Samuel Newman and committed by
GitHub
9b7818d3 4862bc2b

+7 -2
+6 -1
src/components/dms/ConvoMenu.tsx
··· 1 1 import React, {useCallback} from 'react' 2 - import {Pressable} from 'react-native' 2 + import {Keyboard, Pressable} from 'react-native' 3 3 import {AppBskyActorDefs} from '@atproto/api' 4 4 import {ChatBskyConvoDefs} from '@atproto-labs/api' 5 5 import {msg, Trans} from '@lingui/macro' ··· 88 88 {({props, state}) => ( 89 89 <Pressable 90 90 {...props} 91 + onPress={() => { 92 + Keyboard.dismiss() 93 + // eslint-disable-next-line react/prop-types -- eslint is confused by the name `props` 94 + props.onPress() 95 + }} 91 96 style={[ 92 97 a.p_sm, 93 98 a.rounded_sm,
+1 -1
src/screens/Messages/Conversation/MessagesList.tsx
··· 213 213 contentContainerStyle={a.flex_1}> 214 214 {/* This view keeps the scroll bar and content within the CenterView on web, otherwise the entire window would scroll */} 215 215 {/* @ts-expect-error web only */} 216 - <View style={[{flex: 1}, isWeb && {'overflow-y': 'scroll'}]}> 216 + <View style={[a.flex_1, isWeb && {'overflow-y': 'scroll'}]}> 217 217 {/* Custom scroll provider so that we can use the `onScroll` event in our custom List implementation */} 218 218 <ScrollProvider onScroll={onScroll} onMomentumEnd={onMomentumEnd}> 219 219 <List