検索削除機能を追加
This commit is contained in:
parent
0c10bcc339
commit
acd5d0bb88
@ -79,6 +79,9 @@ export const SearchUnitBox = ({
|
||||
paddingRight: 10,
|
||||
paddingLeft: 10,
|
||||
flex: 1,
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<TextInput
|
||||
@ -88,9 +91,26 @@ export const SearchUnitBox = ({
|
||||
value={input}
|
||||
style={{ flex: 1 }}
|
||||
/>
|
||||
{input && (
|
||||
<TouchableOpacity
|
||||
onPress={() => setInput("") }
|
||||
style={{
|
||||
padding: 3,
|
||||
borderRadius: 15,
|
||||
backgroundColor: "lightgray",
|
||||
}}
|
||||
>
|
||||
<Ionicons
|
||||
name="close"
|
||||
size={20}
|
||||
color="white"
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
{!input &&<View style={{ flexDirection: "row", alignItems: "center" }}>
|
||||
{!input && (
|
||||
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
||||
{Object.keys(lineList_LineWebID).map((d) => (
|
||||
<TouchableOpacity
|
||||
style={{
|
||||
@ -121,13 +141,18 @@ export const SearchUnitBox = ({
|
||||
key={stationIDPair[lineList_LineWebID[d]]}
|
||||
>
|
||||
<Text
|
||||
style={{ color: "white", fontWeight: "bold", fontSize: 20 }}
|
||||
style={{
|
||||
color: "white",
|
||||
fontWeight: "bold",
|
||||
fontSize: 20,
|
||||
}}
|
||||
>
|
||||
{stationIDPair[lineList_LineWebID[d]]}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
</View>}
|
||||
</View>
|
||||
)}
|
||||
</View>
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
Loading…
Reference in New Issue
Block a user