import React from 'react';
import { View } from 'react-native';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
import AlbumsTab from '../library/AlbumsTab';
import ArtistsTab from '../library/ArtistsTab';
import PlaylistsTab from '../library/PlaylistsTab';
import { createStackNavigator, StackNavigationProp } from '@react-navigation/stack';
import AlbumView from '../common/AlbumView';
import { RouteProp } from '@react-navigation/native';
import text from '../../styles/text';
import colors from '../../styles/colors';
import FastImage from 'react-native-fast-image';
import ArtistView from '../common/ArtistView';
const Tab = createMaterialTopTabNavigator();
const LibraryTopTabNavigator = () => (
);
type LibraryStackParamList = {
LibraryTopTabs: undefined;
AlbumView: { id: string; title: string };
ArtistView: { id: string; title: string };
};
type AlbumScreenNavigationProp = StackNavigationProp;
type AlbumScreenRouteProp = RouteProp;
type AlbumScreenProps = {
route: AlbumScreenRouteProp;
navigation: AlbumScreenNavigationProp;
};
const AlbumScreen: React.FC = ({ route }) => (
);
type ArtistScreenNavigationProp = StackNavigationProp;
type ArtistScreenRouteProp = RouteProp;
type ArtistScreenProps = {
route: ArtistScreenRouteProp;
navigation: ArtistScreenNavigationProp;
};
const ArtistScreen: React.FC = ({ route }) => (
);
const Stack = createStackNavigator();
const itemScreenOptions = {
title: '',
headerStyle: {
height: 50,
backgroundColor: colors.gradient.high,
},
headerTitleContainerStyle: {
marginLeft: -14,
},
headerLeftContainerStyle: {
marginLeft: 8,
},
headerTitleStyle: {
...text.header,
},
headerBackImage: () => (
),
};
const LibraryStackNavigator = () => (
);
export default LibraryStackNavigator;