Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 834 KiB After Width: | Height: | Size: 834 KiB |
Before Width: | Height: | Size: 579 KiB After Width: | Height: | Size: 579 KiB |
@ -0,0 +1,35 @@
|
|||||||
|
export class Music {
|
||||||
|
private _name: string;
|
||||||
|
private _bio: string;
|
||||||
|
private _image: ImageSource;
|
||||||
|
|
||||||
|
constructor(title: string, bio: string, image: any) {
|
||||||
|
this._title = name;
|
||||||
|
this._bio = bio;
|
||||||
|
this._image = image;
|
||||||
|
}
|
||||||
|
|
||||||
|
get title(): string {
|
||||||
|
return this._title;
|
||||||
|
}
|
||||||
|
|
||||||
|
set title(value: string) {
|
||||||
|
this._title = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get bio(): string {
|
||||||
|
return this._latitude;
|
||||||
|
}
|
||||||
|
|
||||||
|
set bio(value: string) {
|
||||||
|
this._latitude = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get image(): any {
|
||||||
|
return this._image;
|
||||||
|
}
|
||||||
|
|
||||||
|
set image(value: any) {
|
||||||
|
this._image = value;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
import React, {Component} from 'react';
|
||||||
|
import { NavigationContainer } from 'react-native';
|
||||||
|
|
||||||
|
export default function Navigation() {
|
||||||
|
const BottomTabNavigator = createBottomTabNavigator();
|
||||||
|
return (
|
||||||
|
<NavigationContainer>
|
||||||
|
<BottomTabNavigator.Navigator initialRouteName="Favorite">
|
||||||
|
<BottomTabNavigator.Screen name="Home" component={Home}
|
||||||
|
options={{
|
||||||
|
title: 'Home',
|
||||||
|
tabBarIcon: ({color}) => <TabBarIcon name="hear" color={color}/>,
|
||||||
|
}}/>
|
||||||
|
<BottomTabNavigator.Screen name="Favoris" component={Favorite}
|
||||||
|
options={{
|
||||||
|
title: 'Favoris',
|
||||||
|
tabBarIcon: ({color}) => <TabBarIcon name="hear" color={color}/>,
|
||||||
|
}}/>
|
||||||
|
</BottomTabNavigator.Navigator>
|
||||||
|
</NavigationContainer>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function TabBarIcon(props: {
|
||||||
|
name: React.ComponentProps<typeof FontAwesome>['name'];
|
||||||
|
color: string;
|
||||||
|
}) {
|
||||||
|
return <FontAwesome size={30} {...props} />;
|
||||||
|
}
|