Files
jellyfin-audio-player/src/screens/Music/index.tsx

30 lines
1.2 KiB
TypeScript
Raw Normal View History

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-07-10 15:25:32 +02:00
import { THEME_COLOR } from 'CONSTANTS';
2020-11-02 22:50:00 +01:00
import { t } from '@localisation';
import useDefaultStyles from 'components/Colors';
2020-06-21 13:02:23 +02:00
const Stack = createStackNavigator<StackParams>();
function MusicStack() {
const defaultStyles = useDefaultStyles();
2020-06-21 13:02:23 +02:00
return (
<Stack.Navigator initialRouteName="RecentAlbums" screenOptions={{
headerTintColor: THEME_COLOR,
headerTitleStyle: defaultStyles.stackHeader
}}>
2020-11-02 22:50:00 +01:00
<Stack.Screen name="RecentAlbums" component={RecentAlbums} options={{ headerTitle: t('recent-albums') }} />
<Stack.Screen name="Albums" component={Albums} options={{ headerTitle: t('albums') }} />
<Stack.Screen name="Album" component={Album} options={{ headerTitle: t('album') }} />
<Stack.Screen name="Search" component={Search} options={{ headerTitle: t('search') }} />
2020-06-21 13:02:23 +02:00
</Stack.Navigator>
);
}
export default MusicStack;