mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 15:03:26 +00:00
fix: keyboard catching taps on search component
This commit is contained in:
@@ -22,7 +22,10 @@ export default function SearchScreen() {
|
||||
};
|
||||
|
||||
return (
|
||||
<ScrollView>
|
||||
<ScrollView
|
||||
keyboardDismissMode="on-drag"
|
||||
keyboardShouldPersistTaps="handled"
|
||||
>
|
||||
<ScreenLayout
|
||||
title={
|
||||
<View className="flex-row items-center">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Image, TouchableOpacity, View } from "react-native";
|
||||
import { Image, Keyboard, TouchableOpacity, View } from "react-native";
|
||||
import { useRouter } from "expo-router";
|
||||
|
||||
import { Text } from "~/components/ui/Text";
|
||||
@@ -16,6 +16,7 @@ export default function Item({ data }: { data: ItemData }) {
|
||||
const { title, type, year, posterUrl } = data;
|
||||
|
||||
const handlePress = () => {
|
||||
Keyboard.dismiss();
|
||||
router.push({
|
||||
pathname: "/videoPlayer/loading",
|
||||
params: { data: JSON.stringify(data) },
|
||||
|
Reference in New Issue
Block a user