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