···1import {useCallback, useEffect, useMemo} from 'react'
2-import {View} from 'react-native'
3import {msg, Trans} from '@lingui/macro'
4import {useLingui} from '@lingui/react'
5···5455 const handleSelectDraft = useCallback(
56 (summary: DraftSummary) => {
00000057 control.close(() => {
58 onSelectDraft(summary)
59 })
···1import {useCallback, useEffect, useMemo} from 'react'
2+import {Keyboard, View} from 'react-native'
3import {msg, Trans} from '@lingui/macro'
4import {useLingui} from '@lingui/react'
5···5455 const handleSelectDraft = useCallback(
56 (summary: DraftSummary) => {
57+ // Dismiss keyboard immediately to prevent flicker. Without this,
58+ // the text input regains focus (showing the keyboard) after the
59+ // drafts sheet closes, then loses it again when the post component
60+ // remounts with the draft content, causing a show-hide-show cycle -sfn
61+ Keyboard.dismiss()
62+63 control.close(() => {
64 onSelectDraft(summary)
65 })