import { useState } from 'react';
import { Button, GestureResponderEvent, Pressable, ScrollView, StyleSheet, View } from 'react-native';
import { ThemedTextInput } from './themed-textinpute';
import { ThemedView } from "./themed-view";
import { ThemedText } from './themed-text';
import { ThemedButton } from './themed-button';
export default function SelectChantier() {
const [search, setSearch] = useState('');
const [isOpen,setIsOpen] = useState(false);
const [chantiers,setChantiers] = useState([]);
function onPressOpen(event: GestureResponderEvent): void {
setIsOpen(!isOpen);
}
const renderChantier = () => {
return(
);
};
if(isOpen){
return (
Open
)
}
else{
return(
Close
)
};
}
const styles = StyleSheet.create({
openedSelectZone:{
position: 'absolute',
width: "100%",
borderRadius: 10,
zIndex: 9999,
elevation: 9999,
},
closedSelectZone:{
position: 'absolute',
width: "50%",
borderRadius: 10,
zIndex: 9999,
elevation: 9999,
},
titleContainer: {
flexDirection: 'row',
alignItems: 'center',
gap: 8,
},
searchMenu:{
color:'#FFAAAA',
borderRadius: 5,
width: "100%",
margin: 0,
},
searchZone:{
width: "100%",
padding:20,
marginTop:50,
alignItems: 'center',
},
chantier:{
},
input: {
width: '100%',
borderWidth: 1,
borderRadius: 10,
padding: 10,
fontSize: 16,
},
button:{
width:'100%',
margin: 5,
borderRadius: 10,
padding: 10,
},
buttonOpen:{
width:'50%',
margin: 5,
borderRadius: 10,
padding: 10,
},
buttonText:{
textAlign: 'center',
}
});