|
|
@ -1,27 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
import { StyleSheet, Text, View, Button, TouchableNativeFeedback } from 'react-native';
|
|
|
|
import { StyleSheet, Text, View, TouchableNativeFeedback } from 'react-native';
|
|
|
|
import { useNavigation } from '@react-navigation/native';
|
|
|
|
import { useNavigation } from '@react-navigation/native';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
|
|
import StackNavigation from '../navigation/StackNavigation'
|
|
|
|
import StackNavigation from '../navigation/StackNavigation'
|
|
|
|
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
|
|
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
|
|
|
|
|
|
|
|
|
|
export default function HomeScreen() {
|
|
|
|
import Button from 'react-bootstrap/Button';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @ts-ignore //(ta gueule pour l'erreur sur navigation)
|
|
|
|
|
|
|
|
export default function HomeScreen({navigation}) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
// <View>
|
|
|
|
<View style={styles.container}>
|
|
|
|
//<TouchableNativeFeedback onPress={() => navigation.navigate("ListScreen")}>
|
|
|
|
<View style={styles.centered}>
|
|
|
|
//<Text>Click me !</Text>
|
|
|
|
<Text style={styles.title}>Mes super Nounours !</Text>
|
|
|
|
//</TouchableNativeFeedback>
|
|
|
|
</View>
|
|
|
|
<View style={styles.container}>
|
|
|
|
<Text>Mon super texte ...</Text>
|
|
|
|
<View style={styles.centered}>
|
|
|
|
{/* <MyCustomComponent /> */}
|
|
|
|
<Text style={styles.title}>Mes super Nounours !</Text>
|
|
|
|
<View style={styles.MidArea}>
|
|
|
|
</View>
|
|
|
|
<Text style={styles.textStyle}>Nous sommes actuellement dans l'écran d'accueil !</Text>
|
|
|
|
<Text>Mon super texte ...</Text>
|
|
|
|
|
|
|
|
{/* <MyCustomComponent /> */}
|
|
|
|
|
|
|
|
<View style={styles.MidArea}>
|
|
|
|
|
|
|
|
<Text style={styles.textStyle}>Nous sommes actuellement dans l'écran d'accueil !</Text>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
</View>
|
|
|
|
//</View>
|
|
|
|
|
|
|
|
|
|
|
|
<View>
|
|
|
|
|
|
|
|
<Text style={styles.t3}> Vous cherchez une entités ? </Text>
|
|
|
|
|
|
|
|
<TouchableNativeFeedback onPress={() => navigation.navigate("ListScreen")}>
|
|
|
|
|
|
|
|
<Text style={styles.ButtonStyle}> Consulter la liste global !</Text>
|
|
|
|
|
|
|
|
</TouchableNativeFeedback>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View>
|
|
|
|
|
|
|
|
<Text style={styles.t3}> Vous avez des entités favorites ? </Text>
|
|
|
|
|
|
|
|
<TouchableNativeFeedback onPress={() => navigation.navigate("ListFav")}>
|
|
|
|
|
|
|
|
<Text style={styles.ButtonStyle}>Aller sur la page de favoris !</Text>
|
|
|
|
|
|
|
|
</TouchableNativeFeedback>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +47,8 @@ export default function HomeScreen() {
|
|
|
|
alignItems: "center"
|
|
|
|
alignItems: "center"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
title: {
|
|
|
|
fontSize: 20
|
|
|
|
fontSize: 20,
|
|
|
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
MidArea: {
|
|
|
|
MidArea: {
|
|
|
|
justifyContent: "center",
|
|
|
|
justifyContent: "center",
|
|
|
@ -43,9 +56,22 @@ export default function HomeScreen() {
|
|
|
|
paddingTop: 50,
|
|
|
|
paddingTop: 50,
|
|
|
|
paddingBottom: 50,
|
|
|
|
paddingBottom: 50,
|
|
|
|
margin: 40,
|
|
|
|
margin: 40,
|
|
|
|
|
|
|
|
borderRadius: 15,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
textStyle: {
|
|
|
|
textStyle: {
|
|
|
|
textAlign: "center",
|
|
|
|
textAlign: "center",
|
|
|
|
fontSize: 20,
|
|
|
|
fontSize: 20,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
ButtonStyle :{
|
|
|
|
|
|
|
|
backgroundColor: "#2E8AE6",
|
|
|
|
|
|
|
|
borderRadius: 15,
|
|
|
|
|
|
|
|
padding: 20,
|
|
|
|
|
|
|
|
color: "white",
|
|
|
|
|
|
|
|
fontSize : 20,
|
|
|
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
t3 :{
|
|
|
|
|
|
|
|
fontSize : 20,
|
|
|
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|