remove back functionality
This commit is contained in:
@@ -550,13 +550,9 @@ export function SearchScreen(
|
|||||||
if (inputIsFocused) {
|
if (inputIsFocused) {
|
||||||
setSearchText(q)
|
setSearchText(q)
|
||||||
textInput.current?.blur()
|
textInput.current?.blur()
|
||||||
} else {
|
|
||||||
if (isWeb && q) {
|
|
||||||
navigation.goBack()
|
|
||||||
} else {
|
} else {
|
||||||
navigation.setParams({q: ''})
|
navigation.setParams({q: ''})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, [inputIsFocused, navigation, q])
|
}, [inputIsFocused, navigation, q])
|
||||||
|
|
||||||
const onChangeText = React.useCallback(async (text: string) => {
|
const onChangeText = React.useCallback(async (text: string) => {
|
||||||
@@ -721,11 +717,7 @@ export function SearchScreen(
|
|||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
hitSlop={HITSLOP_10}>
|
hitSlop={HITSLOP_10}>
|
||||||
<Text style={[pal.text]}>
|
<Text style={[pal.text]}>
|
||||||
{isWeb && !inputIsFocused && q ? (
|
|
||||||
<Trans>Back</Trans>
|
|
||||||
) : (
|
|
||||||
<Trans>Cancel</Trans>
|
<Trans>Cancel</Trans>
|
||||||
)}
|
|
||||||
</Text>
|
</Text>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user