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