mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-28 14:39:33 -05:00
discover context menus
signout modal styling
This commit is contained in:
@@ -8,6 +8,7 @@ import { H2, H4 } from '../../../components/Global/helpers/text'
|
||||
import Icon from '../../Global/components/icon'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import DiscoverStackParamList from '../../../screens/Discover/types'
|
||||
import navigationRef from '../../../../navigation'
|
||||
|
||||
export default function RecentlyAdded(): React.JSX.Element {
|
||||
const {
|
||||
@@ -53,6 +54,12 @@ export default function RecentlyAdded(): React.JSX.Element {
|
||||
album: item,
|
||||
})
|
||||
}}
|
||||
onLongPress={() => {
|
||||
navigationRef.navigate('Context', {
|
||||
item,
|
||||
navigation,
|
||||
})
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -10,6 +10,7 @@ import { H4 } from '../../Global/helpers/text'
|
||||
import { useSafeAreaFrame } from 'react-native-safe-area-context'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import DiscoverStackParamList from '../../../screens/Discover/types'
|
||||
import navigationRef from '../../../../navigation'
|
||||
|
||||
export default function PublicPlaylists() {
|
||||
const {
|
||||
@@ -58,6 +59,12 @@ export default function PublicPlaylists() {
|
||||
onPress={() => {
|
||||
navigation.navigate('Playlist', { playlist: item, canEdit: false })
|
||||
}}
|
||||
onLongPress={() =>
|
||||
navigationRef.navigate('Context', {
|
||||
item,
|
||||
navigation,
|
||||
})
|
||||
}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { useDiscoverContext } from '../../../providers/Discover'
|
||||
import { H4 } from '../../Global/helpers/text'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import DiscoverStackParamList from '../../../screens/Discover/types'
|
||||
import navigationRef from '../../../../navigation'
|
||||
|
||||
export default function SuggestedArtists(): React.JSX.Element {
|
||||
const { suggestedArtistsInfiniteQuery } = useDiscoverContext()
|
||||
@@ -40,6 +41,12 @@ export default function SuggestedArtists(): React.JSX.Element {
|
||||
artist: item,
|
||||
})
|
||||
}}
|
||||
onLongPress={() =>
|
||||
navigationRef.navigate('Context', {
|
||||
item,
|
||||
navigation,
|
||||
})
|
||||
}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -34,7 +34,7 @@ export default function SettingsScreen(): React.JSX.Element {
|
||||
options={{
|
||||
/* https://www.reddit.com/r/reactnative/comments/1dgktbn/comment/lxd23sj/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button */
|
||||
presentation: 'formSheet',
|
||||
sheetAllowedDetents: [0.35],
|
||||
sheetAllowedDetents: 'fitToContents',
|
||||
headerShown: false,
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user