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

31 lines
1.2 KiB
TypeScript
Raw Normal View History

import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { THEME_COLOR } from 'CONSTANTS';
2020-11-02 22:50:00 +01:00
import { t } from '@localisation';
2023-04-22 23:31:37 +02:00
import useDefaultStyles, { ColoredBlurView } from 'components/Colors';
import { StackParams } from 'screens/types';
import Search from './stacks/Search';
import Album from 'screens/Music/stacks/Album';
2023-04-22 23:31:37 +02:00
import { StyleSheet } from 'react-native';
2020-07-05 23:15:30 +02:00
const Stack = createStackNavigator<StackParams>();
2021-04-24 15:30:07 +02:00
function SearchStack() {
const defaultStyles = useDefaultStyles();
2020-07-06 16:40:30 +02:00
return (
<Stack.Navigator initialRouteName="Search" screenOptions={{
headerTintColor: THEME_COLOR,
headerTitleStyle: defaultStyles.stackHeader,
cardStyle: defaultStyles.view,
2023-04-22 23:31:37 +02:00
headerTransparent: true,
headerBackground: () => <ColoredBlurView style={StyleSheet.absoluteFill} />,
}}>
<Stack.Screen name="Search" component={Search} options={{ headerTitle: t('search'), headerShown: false }} />
<Stack.Screen name="Album" component={Album} options={{ headerTitle: t('album') }} />
</Stack.Navigator>
2020-07-05 23:15:30 +02:00
);
}
export default SearchStack;