···2525import {augmentSearchQuery} from '#/lib/strings/helpers'
2626import {s} from '#/lib/styles'
2727import {logger} from '#/logger'
2828-import {isNative, isWeb} from '#/platform/detection'
2828+import {isIOS, isNative, isWeb} from '#/platform/detection'
2929import {listenSoftReset} from '#/state/events'
3030import {useActorAutocompleteQuery} from '#/state/queries/actor-autocomplete'
3131import {useActorSearch} from '#/state/queries/actor-search'
···670670 ref={textInput}
671671 placeholder={_(msg`Search`)}
672672 placeholderTextColor={pal.colors.textLight}
673673- selectTextOnFocus={isNative}
674673 returnKeyType="search"
675674 value={searchText}
676675 style={[pal.text, styles.headerSearchInput]}
677676 keyboardAppearance={theme.colorScheme}
677677+ selectTextOnFocus={isNative}
678678 onFocus={() => {
679679 if (isWeb) {
680680 // Prevent a jump on iPad by ensuring that
···684684 })
685685 } else {
686686 setShowAutocomplete(true)
687687+ if (isIOS) {
688688+ // We rely on selectTextOnFocus, but it's broken on iOS:
689689+ // https://github.com/facebook/react-native/issues/41988
690690+ textInput.current?.setSelection(0, searchText.length)
691691+ // We still rely on selectTextOnFocus for it to be instant on Android.
692692+ }
687693 }
688694 }}
689695 onChangeText={onChangeText}