parent
6195b1a95e
commit
37f093fc75
@ -1,20 +1,20 @@
|
|||||||
import {createStackNavigator} from "@react-navigation/stack";
|
// import {createStackNavigator} from "@react-navigation/stack";
|
||||||
import Accueil from "../screens/HomeScreen";
|
// import Accueil from "../screens/HomeScreen";
|
||||||
import Catalogue from "../screens/Catalogue";
|
// import Catalogue from "../screens/Catalogue";
|
||||||
import Add from "../screens/AddScreen";
|
// import Add from "../screens/AddScreen";
|
||||||
import Favorites from "../screens/Favorites";
|
// import Favorites from "../screens/Favorites";
|
||||||
import Settings from "../screens/Settings";
|
// import Settings from "../screens/Settings";
|
||||||
|
//
|
||||||
|
//
|
||||||
export default function StackNavigation() {
|
// export default function StackNavigation() {
|
||||||
const Stack = createStackNavigator();
|
// const Stack = createStackNavigator();
|
||||||
return (
|
// return (
|
||||||
<Stack.Navigator initialRouteName="Home">
|
// <Stack.Navigator initialRouteName="Home">
|
||||||
<Stack.Screen name="Accueil" component={Accueil}/>
|
// <Stack.Screen name="Accueil" component={Accueil}/>
|
||||||
<Stack.Screen name="Catalogue" component={Catalogue}/>
|
// <Stack.Screen name="Catalogue" component={Catalogue}/>
|
||||||
<Stack.Screen name="Ajouter" component={Add}/>
|
// <Stack.Screen name="Ajouter" component={Add}/>
|
||||||
<Stack.Screen name="Favoris" component={Favorites}/>
|
// <Stack.Screen name="Favoris" component={Favorites}/>
|
||||||
<Stack.Screen name="Paramètres" component={Settings}/>
|
// <Stack.Screen name="Paramètres" component={Settings}/>
|
||||||
</Stack.Navigator>
|
// </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 { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||||
import { SafeAreaView } from 'react-native'
|
import JokeItems from "../components/JokeItems";
|
||||||
import JokeListItem from "../components/JokeListItem";
|
|
||||||
import '../types/extension';
|
import '../types/extension';
|
||||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
|
||||||
|
|
||||||
export default function Catalogue() {
|
export default function Catalogue() {
|
||||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||||
return (
|
return (
|
||||||
<>
|
<JokeItems jokes={allJokes}/>
|
||||||
<SafeAreaView style={styles.topSafeArea}/>
|
|
||||||
<SafeAreaView style={styles.container}>
|
|
||||||
<StatusBar style="light" />
|
|
||||||
<JokeListItem jokes={allJokes}/>
|
|
||||||
</SafeAreaView>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
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 { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||||
import { SafeAreaView } from 'react-native'
|
import JokeItems from "../components/JokeItems";
|
||||||
import JokeListItem from "../components/JokeListItem";
|
|
||||||
import '../types/extension';
|
import '../types/extension';
|
||||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
|
||||||
|
|
||||||
export default function Catalogue() {
|
export default function Catalogue() {
|
||||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||||
return (
|
return (
|
||||||
<>
|
<JokeItems jokes={allJokes}/>
|
||||||
<SafeAreaView style={styles.container}>
|
)
|
||||||
<JokeListItem jokes={allJokes}/>
|
|
||||||
</SafeAreaView>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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 { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||||
import { SafeAreaView } from 'react-native'
|
import JokeItems from "../components/JokeItems";
|
||||||
import JokeListItem from "../components/JokeListItem";
|
|
||||||
import '../types/extension';
|
import '../types/extension';
|
||||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
|
||||||
|
|
||||||
export default function Catalogue() {
|
export default function Catalogue() {
|
||||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||||
return (
|
return (
|
||||||
<>
|
<JokeItems jokes={allJokes}/>
|
||||||
<SafeAreaView style={styles.topSafeArea}/>
|
|
||||||
<SafeAreaView style={styles.container}>
|
|
||||||
<StatusBar style="light" />
|
|
||||||
<JokeListItem jokes={allJokes}/>
|
|
||||||
</SafeAreaView>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
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 { customJokeStub } from '../data/stub/CustomJokeStub';
|
||||||
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
import { sampleJokeStub } from '../data/stub/SampleJokeStub';
|
||||||
import { SafeAreaView } from 'react-native'
|
import JokeItems from "../components/JokeItems";
|
||||||
import JokeListItem from "../components/JokeListItem";
|
|
||||||
import '../types/extension';
|
import '../types/extension';
|
||||||
import {darksalmonColor, indigoColor, purpleColor} from "../assets/Theme";
|
|
||||||
|
|
||||||
export default function Catalogue() {
|
export default function Catalogue() {
|
||||||
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
const allJokes = [...customJokeStub, ...sampleJokeStub];
|
||||||
return (
|
return (
|
||||||
<>
|
<JokeItems jokes={allJokes}/>
|
||||||
<SafeAreaView style={styles.topSafeArea}/>
|
|
||||||
<SafeAreaView style={styles.container}>
|
|
||||||
<StatusBar style="light" />
|
|
||||||
<JokeListItem jokes={allJokes}/>
|
|
||||||
</SafeAreaView>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
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