fix: include play modal on search page
This commit is contained in:
@@ -7,6 +7,8 @@ import { StackParams } from 'screens/types';
|
|||||||
import Search from './stacks/Search';
|
import Search from './stacks/Search';
|
||||||
import Album from 'screens/Music/stacks/Album';
|
import Album from 'screens/Music/stacks/Album';
|
||||||
import { StyleSheet } from 'react-native';
|
import { StyleSheet } from 'react-native';
|
||||||
|
import NowPlaying from 'screens/Music/overlays/NowPlaying';
|
||||||
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
||||||
|
|
||||||
const Stack = createStackNavigator<StackParams>();
|
const Stack = createStackNavigator<StackParams>();
|
||||||
|
|
||||||
@@ -14,17 +16,20 @@ function SearchStack() {
|
|||||||
const defaultStyles = useDefaultStyles();
|
const defaultStyles = useDefaultStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack.Navigator initialRouteName="Search" screenOptions={{
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
||||||
headerTintColor: THEME_COLOR,
|
<Stack.Navigator initialRouteName="Search" screenOptions={{
|
||||||
headerTitleStyle: defaultStyles.stackHeader,
|
headerTintColor: THEME_COLOR,
|
||||||
cardStyle: defaultStyles.view,
|
headerTitleStyle: defaultStyles.stackHeader,
|
||||||
headerTransparent: true,
|
cardStyle: defaultStyles.view,
|
||||||
headerBackground: () => <ColoredBlurView style={StyleSheet.absoluteFill} />,
|
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.Screen name="Search" component={Search} options={{ headerTitle: t('search'), headerShown: false }} />
|
||||||
</Stack.Navigator>
|
<Stack.Screen name="Album" component={Album} options={{ headerTitle: t('album') }} />
|
||||||
|
</Stack.Navigator>
|
||||||
|
<NowPlaying />
|
||||||
|
</GestureHandlerRootView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user