parent
6195b1a95e
commit
37f093fc75
@ -1,20 +1,20 @@
|
||||
import {createStackNavigator} from "@react-navigation/stack";
|
||||
import Accueil from "../screens/HomeScreen";
|
||||
import Catalogue from "../screens/Catalogue";
|
||||
import Add from "../screens/AddScreen";
|
||||
import Favorites from "../screens/Favorites";
|
||||
import Settings from "../screens/Settings";
|
||||
|
||||
|
||||
export default function StackNavigation() {
|
||||
const Stack = createStackNavigator();
|
||||
return (
|
||||
<Stack.Navigator initialRouteName="Home">
|
||||
<Stack.Screen name="Accueil" component={Accueil}/>
|
||||
<Stack.Screen name="Catalogue" component={Catalogue}/>
|
||||
<Stack.Screen name="Ajouter" component={Add}/>
|
||||
<Stack.Screen name="Favoris" component={Favorites}/>
|
||||
<Stack.Screen name="Paramètres" component={Settings}/>
|
||||
</Stack.Navigator>
|
||||
)
|
||||
}
|
||||
// import {createStackNavigator} from "@react-navigation/stack";
|
||||
// import Accueil from "../screens/HomeScreen";
|
||||
// import Catalogue from "../screens/Catalogue";
|
||||
// import Add from "../screens/AddScreen";
|
||||
// import Favorites from "../screens/Favorites";
|
||||
// import Settings from "../screens/Settings";
|
||||
//
|
||||
//
|
||||
// export default function StackNavigation() {
|
||||
// const Stack = createStackNavigator();
|
||||
// return (
|
||||
// <Stack.Navigator initialRouteName="Home">
|
||||
// <Stack.Screen name="Accueil" component={Accueil}/>
|
||||
// <Stack.Screen name="Catalogue" component={Catalogue}/>
|
||||
// <Stack.Screen name="Ajouter" component={Add}/>
|
||||
// <Stack.Screen name="Favoris" component={Favorites}/>
|
||||
// <Stack.Screen name="Paramètres" component={Settings}/>
|
||||
// </Stack.Navigator>
|
||||
// )
|
||||
// }
|
@ -1,41 +1,11 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||
import { SafeAreaView } from 'react-native'
|
||||
import JokeListItem from "../components/JokeListItem";
|
||||
import JokeItems from "../components/JokeItems";
|
||||
import '../types/extension';
|
||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
||||
|
||||
export default function Catalogue() {
|
||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||
return (
|
||||
<>
|
||||
<SafeAreaView style={styles.topSafeArea}/>
|
||||
<SafeAreaView style={styles.container}>
|
||||
<StatusBar style="light" />
|
||||
<JokeListItem jokes={allJokes}/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
<JokeItems jokes={allJokes}/>
|
||||
)
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: purpleColor,
|
||||
},
|
||||
centered: {
|
||||
color:darksalmonColor,
|
||||
fontSize:24,
|
||||
textAlign: "center",
|
||||
paddingBottom:20,
|
||||
},
|
||||
title: {
|
||||
backgroundColor: indigoColor
|
||||
},
|
||||
topSafeArea: {
|
||||
flex: 0,
|
||||
backgroundColor: indigoColor
|
||||
}
|
||||
});
|
@ -1,39 +1,11 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||
import { SafeAreaView } from 'react-native'
|
||||
import JokeListItem from "../components/JokeListItem";
|
||||
import JokeItems from "../components/JokeItems";
|
||||
import '../types/extension';
|
||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
||||
|
||||
export default function Catalogue() {
|
||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||
return (
|
||||
<>
|
||||
<SafeAreaView style={styles.container}>
|
||||
<JokeListItem jokes={allJokes}/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
<JokeItems jokes={allJokes}/>
|
||||
)
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: purpleColor,
|
||||
},
|
||||
centered: {
|
||||
color:darksalmonColor,
|
||||
fontSize:24,
|
||||
textAlign: "center",
|
||||
paddingBottom:20,
|
||||
},
|
||||
title: {
|
||||
backgroundColor: indigoColor
|
||||
},
|
||||
topSafeArea: {
|
||||
flex: 0,
|
||||
backgroundColor: indigoColor
|
||||
}
|
||||
});
|
@ -1,41 +1,11 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||
import { SafeAreaView } from 'react-native'
|
||||
import JokeListItem from "../components/JokeListItem";
|
||||
import JokeItems from "../components/JokeItems";
|
||||
import '../types/extension';
|
||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
||||
|
||||
export default function Catalogue() {
|
||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||
return (
|
||||
<>
|
||||
<SafeAreaView style={styles.topSafeArea}/>
|
||||
<SafeAreaView style={styles.container}>
|
||||
<StatusBar style="light" />
|
||||
<JokeListItem jokes={allJokes}/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
<JokeItems jokes={allJokes}/>
|
||||
)
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: purpleColor,
|
||||
},
|
||||
centered: {
|
||||
color:darksalmonColor,
|
||||
fontSize:24,
|
||||
textAlign: "center",
|
||||
paddingBottom:20,
|
||||
},
|
||||
title: {
|
||||
backgroundColor: indigoColor
|
||||
},
|
||||
topSafeArea: {
|
||||
flex: 0,
|
||||
backgroundColor: indigoColor
|
||||
}
|
||||
});
|
@ -1,41 +1,11 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||
import { SafeAreaView } from 'react-native'
|
||||
import JokeListItem from "../components/JokeListItem";
|
||||
import JokeItems from "../components/JokeItems";
|
||||
import '../types/extension';
|
||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
||||
|
||||
export default function Catalogue() {
|
||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||
return (
|
||||
<>
|
||||
<SafeAreaView style={styles.topSafeArea}/>
|
||||
<SafeAreaView style={styles.container}>
|
||||
<StatusBar style="light" />
|
||||
<JokeListItem jokes={allJokes}/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
<JokeItems jokes={allJokes}/>
|
||||
)
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: purpleColor,
|
||||
},
|
||||
centered: {
|
||||
color:darksalmonColor,
|
||||
fontSize:24,
|
||||
textAlign: "center",
|
||||
paddingBottom:20,
|
||||
},
|
||||
title: {
|
||||
backgroundColor: indigoColor
|
||||
},
|
||||
topSafeArea: {
|
||||
flex: 0,
|
||||
backgroundColor: indigoColor
|
||||
}
|
||||
});
|
Loading…
Reference in new issue