home
This commit is contained in:
39
app/(tabs)/home.tsx
Normal file
39
app/(tabs)/home.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
import SelectChantier from '@/components/selectChantier';
|
||||
import SetStatus from '@/components/setStatus';
|
||||
import { ThemedView, } from '@/components/themed-view';
|
||||
import Constants from 'expo-constants'; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import React from 'react';
|
||||
import { StyleSheet, View } from 'react-native';
|
||||
|
||||
|
||||
|
||||
|
||||
export default function Home() {
|
||||
|
||||
|
||||
return(
|
||||
<ThemedView lvl={3} style={styles.container}>
|
||||
|
||||
|
||||
<View style={styles.header}>
|
||||
<View style={{position: 'absolute'}}>
|
||||
<SelectChantier></SelectChantier>
|
||||
</View>
|
||||
<View style={{position: 'absolute'}}>
|
||||
<SetStatus></SetStatus>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
</ThemedView>
|
||||
)
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
},
|
||||
header: {
|
||||
width:"100%"
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user