···11import {useCallback, useEffect, useMemo} from 'react'
22-import {View} from 'react-native'
22+import {Keyboard, View} from 'react-native'
33import {msg, Trans} from '@lingui/macro'
44import {useLingui} from '@lingui/react'
55···54545555 const handleSelectDraft = useCallback(
5656 (summary: DraftSummary) => {
5757+ // Dismiss keyboard immediately to prevent flicker. Without this,
5858+ // the text input regains focus (showing the keyboard) after the
5959+ // drafts sheet closes, then loses it again when the post component
6060+ // remounts with the draft content, causing a show-hide-show cycle -sfn
6161+ Keyboard.dismiss()
6262+5763 control.close(() => {
5864 onSelectDraft(summary)
5965 })