diff --git a/app/(tabs)/home.tsx b/app/(tabs)/home.tsx
index e1b9b02..34fcb4b 100644
--- a/app/(tabs)/home.tsx
+++ b/app/(tabs)/home.tsx
@@ -18,9 +18,10 @@ export default function Home() {
-
+
+
)
}
@@ -31,6 +32,7 @@ const styles = StyleSheet.create({
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
},
header: {
+ flex: 1,
width:"100%"
},
});
\ No newline at end of file
diff --git a/components/setStatus.tsx b/components/setStatus.tsx
index 6ed04a1..9345824 100644
--- a/components/setStatus.tsx
+++ b/components/setStatus.tsx
@@ -1,14 +1,13 @@
import { useChantier } from '@/app/ContextChantier';
import { useState } from 'react';
-import { Dimensions, LayoutAnimation, Modal, Pressable, StyleSheet, View } from 'react-native';
+import { Dimensions, LayoutAnimation, Pressable, StyleSheet, View } from 'react-native';
import Animated, { LinearTransition } from 'react-native-reanimated';
import { ThemedButton } from './themed-button';
import { ThemedText } from './themed-text';
-import { ThemedTextInput } from './themed-textinput';
import { ThemedView } from "./themed-view";
const screenHeight = Dimensions.get("window").height;
-
+const { width, height } = Dimensions.get("window");
export default function SetStatus() {
@@ -18,9 +17,6 @@ export default function SetStatus() {
const [isOpen,setIsOpen] = useState(false);
const AnimatedThemedView = Animated.createAnimatedComponent(ThemedView);
- const AnimatedThemedText = Animated.createAnimatedComponent(ThemedText);
- const AnimatedThemedButton = Animated.createAnimatedComponent(ThemedButton);
- const AnimatedThemedTextInput = Animated.createAnimatedComponent(ThemedTextInput);
const choices = ["En cours","Interrompu","Terminé","Non réalisé"]
@@ -50,20 +46,7 @@ export default function SetStatus() {
return(
- <>
- setIsOpen(false)}
- >
- {isOpen && (
- setIsOpen(false)}
- />
- )}
-
+
onPressOpen()}>
@@ -81,17 +64,14 @@ export default function SetStatus() {
}
- >
)
}
const styles = StyleSheet.create({
- overlay: {
- ...StyleSheet.absoluteFillObject,
- zIndex: 1,
- },
+
windowBox:{
+ zIndex: 2,
//backgroundColor: '#00FFFF40',
width:"30%",
padding: 10,