import React from "react"; import { TouchableOpacity, Text, View, LayoutAnimation, TextInput, KeyboardAvoidingView, Platform, } from "react-native"; import Ionicons from "react-native-vector-icons/Ionicons"; import { useWindowDimensions } from "react-native"; export const SearchUnitBox = ({ isSearchMode, setisSearchMode }) => { const { height, width } = useWindowDimensions(); return ( <> { LayoutAnimation.configureNext({ duration: 200, update: { type: "easeInEaseOut", springDamping: 0.6 }, }); setisSearchMode(true); }} > {!isSearchMode && } {isSearchMode && ( { LayoutAnimation.configureNext({ duration: 200, update: { type: "easeInEaseOut", springDamping: 0.6 }, }); setisSearchMode(false); }} > あああああああああああああああああああああああああああああああああああああああああああああああああああああああああ setKeyBoardVisible(true)} onEndEditing={() => {}} //onChange={(ret) => setInput(ret.nativeEvent.text)} //value={input} style={{ flex: 1 }} /> )} ); };