Skip to content

Commit

Permalink
fix: include play modal on search page
Browse files Browse the repository at this point in the history
  • Loading branch information
leinelissen committed Apr 24, 2023
1 parent ed78e4a commit e140a0e
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/screens/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,29 @@ import { StackParams } from 'screens/types';
import Search from './stacks/Search';
import Album from 'screens/Music/stacks/Album';
import { StyleSheet } from 'react-native';
import NowPlaying from 'screens/Music/overlays/NowPlaying';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

const Stack = createStackNavigator<StackParams>();

function SearchStack() {
const defaultStyles = useDefaultStyles();

return (
<Stack.Navigator initialRouteName="Search" screenOptions={{
headerTintColor: THEME_COLOR,
headerTitleStyle: defaultStyles.stackHeader,
cardStyle: defaultStyles.view,
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>
<GestureHandlerRootView style={{ flex: 1 }}>
<Stack.Navigator initialRouteName="Search" screenOptions={{
headerTintColor: THEME_COLOR,
headerTitleStyle: defaultStyles.stackHeader,
cardStyle: defaultStyles.view,
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>
<NowPlaying />
</GestureHandlerRootView>
);
}

Expand Down

0 comments on commit e140a0e

Please sign in to comment.