2020-06-21 13:02:23 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import { createStackNavigator } from '@react-navigation/stack';
|
|
|
|
|
import { StackParams } from './types';
|
|
|
|
|
import Albums from './stacks/Albums';
|
|
|
|
|
import Album from './stacks/Album';
|
|
|
|
|
import RecentAlbums from './stacks/RecentAlbums';
|
2020-07-05 23:15:30 +02:00
|
|
|
import Search from './stacks/Search';
|
2020-06-21 13:02:23 +02:00
|
|
|
|
|
|
|
|
const Stack = createStackNavigator<StackParams>();
|
|
|
|
|
|
|
|
|
|
function MusicStack() {
|
|
|
|
|
return (
|
|
|
|
|
<Stack.Navigator initialRouteName="RecentAlbums">
|
|
|
|
|
<Stack.Screen name="RecentAlbums" component={RecentAlbums} options={{ headerTitle: 'Recent Albums' }} />
|
|
|
|
|
<Stack.Screen name="Albums" component={Albums} />
|
|
|
|
|
<Stack.Screen name="Album" component={Album} />
|
2020-07-05 23:15:30 +02:00
|
|
|
<Stack.Screen name="Search" component={Search} />
|
2020-06-21 13:02:23 +02:00
|
|
|
</Stack.Navigator>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default MusicStack;
|