Merge branch 'master' of https://codefirst.iut.uca.fr/git/corentin.richard/TP_ReactNative into DevPF
commit
feb86d0dbd
After Width: | Height: | Size: 5.1 KiB |
@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
export class CardSet {
|
||||||
|
|
||||||
|
constructor(id: number,name : string, type : string ) {
|
||||||
|
this._id = id
|
||||||
|
this._name =name
|
||||||
|
this._type = type
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private _id : number
|
||||||
|
|
||||||
|
get id(): number {
|
||||||
|
return this._id
|
||||||
|
}
|
||||||
|
|
||||||
|
// NAME //
|
||||||
|
private _name : string;
|
||||||
|
get name(): string {
|
||||||
|
return this._name;
|
||||||
|
}
|
||||||
|
set name(value: string) {
|
||||||
|
this._name = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private _type : string;
|
||||||
|
get type(): string {
|
||||||
|
return this._type;
|
||||||
|
}
|
||||||
|
set type(value: string) {
|
||||||
|
this._type = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
export class Classe {
|
||||||
|
constructor(private id : number, private name : string) {
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
export class Type{
|
||||||
|
|
||||||
|
constructor(private id : number, private name : string) {
|
||||||
|
}
|
||||||
|
}
|
@ -1,21 +1,21 @@
|
|||||||
|
|
||||||
|
|
||||||
import { NavigationContainer } from '@react-navigation/native';
|
// import { NavigationContainer } from '@react-navigation/native';
|
||||||
import { createStackNavigator } from '@react-navigation/stack';
|
// import { createStackNavigator } from '@react-navigation/stack';
|
||||||
|
|
||||||
import HomeScreen from '../screens/HomeScreen';
|
// import HomeScreen from '../screens/HomeScreen';
|
||||||
import ListScreen from '../screens/ListScreen';
|
// import ListScreen from '../screens/ListScreen';
|
||||||
import ListFav from '../screens/ListFav';
|
// import ListFav from '../screens/ListFav';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function ListNavigator() {
|
// export default function ListNavigator() {
|
||||||
const Stack = createStackNavigator();
|
// const Stack = createStackNavigator();
|
||||||
return (
|
// return (
|
||||||
<Stack.Navigator initialRouteName="List">
|
// <Stack.Navigator initialRouteName="List">
|
||||||
<Stack.Screen name="List" component={ListScreen}/>
|
// <Stack.Screen name="List" component={ListScreen}/>
|
||||||
<Stack.Screen name="ListFav" component={ListFav}/>
|
// <Stack.Screen name="ListFav" component={ListFav}/>
|
||||||
</Stack.Navigator>
|
// </Stack.Navigator>
|
||||||
)
|
// )
|
||||||
}
|
// }
|
Loading…
Reference in new issue