diff options
author | Hailey <me@haileyok.com> | 2024-06-17 00:56:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 10:56:02 +0300 |
commit | 89be5a442cd6d16d68c40bfe342889e9a2bf0b1e (patch) | |
tree | e44e1097b69d17b2eb8fc14234af7cea19ceda3c /src | |
parent | 10c6035f310ba1a3a0420a4e013e2b2b30ddb374 (diff) | |
download | voidsky-89be5a442cd6d16d68c40bfe342889e9a2bf0b1e.tar.zst |
Add patch for `RCTBaseTextInput` fixing `selectTextOnFocus` prop (#4533)
* create patch * remove js fix in `SearchScreen`
Diffstat (limited to 'src')
-rw-r--r-- | src/view/screens/Search/Search.tsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index ed132d24e..53bd17e6b 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -30,7 +30,7 @@ import {makeProfileLink} from '#/lib/routes/links' import {NavigationProp} from '#/lib/routes/types' import {augmentSearchQuery} from '#/lib/strings/helpers' import {logger} from '#/logger' -import {isIOS, isNative, isWeb} from '#/platform/detection' +import {isNative, isWeb} from '#/platform/detection' import {listenSoftReset} from '#/state/events' import {useModerationOpts} from '#/state/preferences/moderation-opts' import {useActorAutocompleteQuery} from '#/state/queries/actor-autocomplete' @@ -802,12 +802,6 @@ let SearchInputBox = ({ }) } else { setShowAutocomplete(true) - if (isIOS) { - // We rely on selectTextOnFocus, but it's broken on iOS: - // https://github.com/facebook/react-native/issues/41988 - textInput.current?.setSelection(0, searchText.length) - // We still rely on selectTextOnFocus for it to be instant on Android. - } } }} onChangeText={onChangeText} |