feat(mobile): audio player (#2801)
This commit is contained in:
@@ -40,6 +40,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
|
||||
infoPlist: {
|
||||
LSApplicationCategoryType: "public.app-category.news",
|
||||
ITSAppUsesNonExemptEncryption: false,
|
||||
UIBackgroundModes: ["audio"],
|
||||
},
|
||||
},
|
||||
android: {
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
"react-dom": "18.3.1",
|
||||
"react-hook-form": "7.54.2",
|
||||
"react-native": "0.77.0",
|
||||
"react-native-awesome-slider": "2.9.0",
|
||||
"react-native-bouncy-checkbox": "4.1.2",
|
||||
"react-native-color-matrix-image-filters": "7.0.2",
|
||||
"react-native-gesture-handler": "2.23.1",
|
||||
@@ -87,8 +88,11 @@
|
||||
"react-native-root-siblings": "5.0.1",
|
||||
"react-native-safe-area-context": "5.2.0",
|
||||
"react-native-screens": "4.7.0",
|
||||
"react-native-sheet-transitions": "0.1.2",
|
||||
"react-native-svg": "15.11.1",
|
||||
"react-native-track-player": "4.1.1",
|
||||
"react-native-uikit-colors": "0.2.0",
|
||||
"react-native-volume-manager": "2.0.8",
|
||||
"react-native-web": "0.19.13",
|
||||
"react-native-webview": "13.13.2",
|
||||
"shiki": "3.0.0",
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface RewindBackward15CuteReIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const RewindBackward15CuteReIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: RewindBackward15CuteReIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<Path
|
||||
stroke={color}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M3 11.997c.007 4.11 2.846 7.817 7.024 8.758A9 9 0 1 0 5.217 6.061c-.066.075-.194.02-.182-.08l.392-3.355c.013-.113.175-.12.197-.008l.379 1.884m9.76 3.998h-3a.5.5 0 0 0-.5.5v1.754c0 .371.399.627.756.525.294-.084.644-.154.994-.154 1.313 0 2.188.98 2.188 2.188a2.187 2.187 0 0 1-4.193.874M7.5 9.5l1.5-1v7"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface RewindForward30CuteReIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const RewindForward30CuteReIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: RewindForward30CuteReIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<Path
|
||||
stroke={color}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="m7.214 9.51.012-.028A1.611 1.611 0 0 1 8.71 8.5h.07c.95 0 1.72.77 1.72 1.72v0c0 .46-.183.9-.509 1.222l-.106.105c-.292.29-.687.453-1.1.453v0m-1.57 2.428.011.027c.253.596.837.982 1.484.982h.094c.937 0 1.696-.759 1.696-1.696v0c0-.472-.197-.923-.544-1.245l-.228-.21A1.072 1.072 0 0 0 9 12v0m12-.003c-.007 4.11-2.845 7.817-7.024 8.758a9 9 0 1 1 4.807-14.694c.066.075.194.02.183-.08l-.393-3.355c-.013-.113-.175-.12-.197-.008l-.379 1.884M15 15.5a1.5 1.5 0 0 0 1.5-1.5v-4A1.5 1.5 0 0 0 15 8.5v0a1.5 1.5 0 0 0-1.5 1.5v4a1.5 1.5 0 0 0 1.5 1.5"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface StopCircleCuteFiIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const StopCircleCuteFiIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: StopCircleCuteFiIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<Path
|
||||
fill={color}
|
||||
fillRule="evenodd"
|
||||
d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m.049 5.5h-.098c-.66 0-1.23 0-1.695.047-.494.05-.979.162-1.423.459a3 3 0 0 0-.827.827c-.297.444-.409.93-.459 1.423C7.5 10.72 7.5 11.29 7.5 11.95v.098c0 .66 0 1.23.047 1.695.05.494.162.979.459 1.423a3 3 0 0 0 .827.827c.444.297.93.409 1.423.459.497.05.998.049 1.498.047a67.332 67.332 0 0 1 .492 0c.5.002 1.001.003 1.498-.047.494-.05.979-.162 1.423-.459a3 3 0 0 0 .827-.827c.297-.444.409-.93.459-1.423.05-.497.049-.998.047-1.498a67.332 67.332 0 0 1 0-.492c.002-.5.003-1.001-.047-1.498-.05-.494-.162-.979-.459-1.423a3 3 0 0 0-.827-.827c-.444-.297-.93-.409-1.423-.459C13.28 7.5 12.71 7.5 12.05 7.5"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
@@ -2,6 +2,7 @@ import { initializeDb } from "../database"
|
||||
import { initializeDayjs } from "./dayjs"
|
||||
import { hydrateDatabaseToStore, hydrateSettings } from "./hydrate"
|
||||
import { migrateDatabase } from "./migration"
|
||||
import { initializePlayer } from "./player"
|
||||
/* eslint-disable no-console */
|
||||
export const initializeApp = async () => {
|
||||
console.log(`Initialize...`)
|
||||
@@ -16,6 +17,8 @@ export const initializeApp = async () => {
|
||||
|
||||
const loadingTime = Date.now() - now
|
||||
console.log(`Initialize done,`, `${loadingTime}ms`)
|
||||
|
||||
await apm("initializePlayer", initializePlayer)
|
||||
}
|
||||
|
||||
const apm = async (label: string, fn: () => Promise<any> | any) => {
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import TrackPlayer, { Capability, Event } from "react-native-track-player"
|
||||
|
||||
export async function initializePlayer() {
|
||||
TrackPlayer.registerPlaybackService(() => async () => {
|
||||
TrackPlayer.addEventListener(Event.RemotePlay, () => TrackPlayer.play())
|
||||
TrackPlayer.addEventListener(Event.RemotePause, () => TrackPlayer.pause())
|
||||
TrackPlayer.addEventListener(Event.RemoteStop, () => TrackPlayer.stop())
|
||||
TrackPlayer.addEventListener(Event.RemoteNext, () => TrackPlayer.skipToNext())
|
||||
TrackPlayer.addEventListener(Event.RemotePrevious, () => TrackPlayer.skipToPrevious())
|
||||
TrackPlayer.addEventListener(Event.RemoteSeek, ({ position }) => TrackPlayer.seekTo(position))
|
||||
})
|
||||
|
||||
await TrackPlayer.setupPlayer()
|
||||
|
||||
await TrackPlayer.updateOptions({
|
||||
// Media controls capabilities
|
||||
capabilities: [
|
||||
Capability.Play,
|
||||
Capability.Pause,
|
||||
Capability.SkipToNext,
|
||||
Capability.SkipToPrevious,
|
||||
Capability.Stop,
|
||||
Capability.SeekTo,
|
||||
],
|
||||
|
||||
// Capabilities that will show up when the notification is in the compact form on Android
|
||||
compactCapabilities: [Capability.Play, Capability.Pause],
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
import { atom, useAtom } from "jotai"
|
||||
import { useCallback, useEffect } from "react"
|
||||
import TrackPlayer, { State, useActiveTrack, usePlaybackState } from "react-native-track-player"
|
||||
|
||||
import type { AttachmentsModel } from "../database/schemas/types"
|
||||
|
||||
const LOADING_SUFFIX = "_loading"
|
||||
|
||||
export function usePlayingUrl() {
|
||||
const activeTrack = useActiveTrack()
|
||||
const playerState = usePlaybackState()
|
||||
const isPlaying = !!activeTrack?.url && playerState.state === State.Playing
|
||||
const isLoading = playerState.state === State.Buffering || playerState.state === State.Loading
|
||||
return isPlaying ? activeTrack?.url : isLoading ? `${activeTrack?.url}${LOADING_SUFFIX}` : null
|
||||
}
|
||||
|
||||
export function getAttachmentState(playingUrl?: string, attachment?: AttachmentsModel) {
|
||||
if (!playingUrl || !attachment || !attachment.mime_type?.startsWith("audio/")) {
|
||||
return null
|
||||
}
|
||||
const isPlaying = attachment.url === playingUrl
|
||||
const isLoading = playingUrl === `${attachment.url}${LOADING_SUFFIX}`
|
||||
return isPlaying ? "playing" : isLoading ? "loading" : null
|
||||
}
|
||||
|
||||
class Player {
|
||||
async play(newTrack?: {
|
||||
url: string
|
||||
title?: string | null
|
||||
artist?: string | null
|
||||
artwork?: string | null
|
||||
}) {
|
||||
if (newTrack) {
|
||||
const activeTrack = await TrackPlayer.getActiveTrack()
|
||||
if (activeTrack?.url !== newTrack.url) {
|
||||
const { url, title, artist, artwork } = newTrack
|
||||
|
||||
await TrackPlayer.load({
|
||||
url,
|
||||
title: title ?? "Unknown Title",
|
||||
artist: artist ?? "Unknown Artist",
|
||||
artwork: artwork ?? undefined,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
await TrackPlayer.play()
|
||||
}
|
||||
|
||||
async pause() {
|
||||
await TrackPlayer.pause()
|
||||
}
|
||||
|
||||
async reset() {
|
||||
await TrackPlayer.reset()
|
||||
}
|
||||
|
||||
async seekBy(offset: number) {
|
||||
await TrackPlayer.seekBy(offset)
|
||||
}
|
||||
|
||||
async seekTo(position: number) {
|
||||
await TrackPlayer.seekTo(position)
|
||||
}
|
||||
}
|
||||
|
||||
export const player = new Player()
|
||||
|
||||
export { useActiveTrack, useIsPlaying, useProgress } from "react-native-track-player"
|
||||
|
||||
export const allowedRate = [0.75, 1, 1.25, 1.5, 1.75, 2]
|
||||
export type Rate = (typeof allowedRate)[number]
|
||||
|
||||
const rateAtom = atom<Rate>(1)
|
||||
|
||||
export function useRate() {
|
||||
const [rate, setRate] = useAtom(rateAtom)
|
||||
|
||||
useEffect(() => {
|
||||
async function getRate() {
|
||||
const rate = await TrackPlayer.getRate()
|
||||
if (allowedRate.includes(rate)) {
|
||||
setRate(rate as Rate)
|
||||
} else {
|
||||
setRate(1)
|
||||
}
|
||||
}
|
||||
|
||||
getRate()
|
||||
}, [setRate])
|
||||
|
||||
const setRateAndSave = useCallback(
|
||||
async (rate: Rate) => {
|
||||
if (allowedRate.includes(rate)) {
|
||||
await TrackPlayer.setRate(rate)
|
||||
setRate(rate)
|
||||
}
|
||||
},
|
||||
[setRate],
|
||||
)
|
||||
|
||||
return [rate, setRateAndSave] as const
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
import { useCallback, useEffect, useState } from "react"
|
||||
import { VolumeManager } from "react-native-volume-manager"
|
||||
|
||||
export const useVolume = () => {
|
||||
const [volume, setVolume] = useState<number | undefined>()
|
||||
|
||||
const updateVolume = useCallback(async (newVolume: number) => {
|
||||
if (newVolume < 0 || newVolume > 1) return
|
||||
|
||||
setVolume(newVolume)
|
||||
|
||||
await VolumeManager.setVolume(newVolume)
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
async function getVolume() {
|
||||
const result = await VolumeManager.getVolume()
|
||||
setVolume(result.volume)
|
||||
}
|
||||
|
||||
getVolume()
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
const volumeListener = VolumeManager.addVolumeListener((result) => {
|
||||
setVolume(result.volume)
|
||||
})
|
||||
|
||||
// Remove the volume listener
|
||||
return () => {
|
||||
volumeListener.remove()
|
||||
}
|
||||
}, [])
|
||||
|
||||
return { volume, updateVolume }
|
||||
}
|
||||
@@ -2,6 +2,8 @@ import type { ListRenderItemInfo } from "@shopify/flash-list"
|
||||
import { useCallback, useMemo } from "react"
|
||||
import { View } from "react-native"
|
||||
|
||||
import { usePlayingUrl } from "@/src/lib/player"
|
||||
|
||||
import { useFetchEntriesControls } from "../screen/atoms"
|
||||
import { TimelineSelectorList } from "../screen/TimelineSelectorList"
|
||||
import { useOnViewableItemsChanged } from "./hooks"
|
||||
@@ -9,10 +11,14 @@ import { ItemSeparator } from "./ItemSeparator"
|
||||
import { EntryNormalItem } from "./templates/EntryNormalItem"
|
||||
|
||||
export function EntryListContentArticle({ entryIds }: { entryIds: string[] }) {
|
||||
const playingAudioUrl = usePlayingUrl()
|
||||
|
||||
const { fetchNextPage, isFetching, refetch, isRefetching } = useFetchEntriesControls()
|
||||
|
||||
const renderItem = useCallback(
|
||||
({ item: id }: ListRenderItemInfo<string>) => <EntryNormalItem key={id} entryId={id} />,
|
||||
({ item: id, extraData }: ListRenderItemInfo<string>) => (
|
||||
<EntryNormalItem key={id} entryId={id} extraData={extraData} />
|
||||
),
|
||||
[],
|
||||
)
|
||||
|
||||
@@ -30,6 +36,7 @@ export function EntryListContentArticle({ entryIds }: { entryIds: string[] }) {
|
||||
}}
|
||||
isRefetching={isRefetching}
|
||||
data={entryIds}
|
||||
extraData={playingAudioUrl}
|
||||
keyExtractor={(id) => id}
|
||||
estimatedItemSize={100}
|
||||
renderItem={renderItem}
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
import { Image } from "expo-image"
|
||||
import { router } from "expo-router"
|
||||
import { useCallback, useEffect } from "react"
|
||||
import { Text, View } from "react-native"
|
||||
import { ActivityIndicator, Text, TouchableOpacity, View } from "react-native"
|
||||
import ReAnimated, { useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated"
|
||||
|
||||
import { setWebViewEntry } from "@/src/components/native/webview/EntryContentWebView"
|
||||
import { FeedIcon } from "@/src/components/ui/icon/feed-icon"
|
||||
import { ItemPressable } from "@/src/components/ui/pressable/ItemPressable"
|
||||
import { gentleSpringPreset } from "@/src/constants/spring"
|
||||
import { PauseCuteFiIcon } from "@/src/icons/pause_cute_fi"
|
||||
import { PlayCuteFiIcon } from "@/src/icons/play_cute_fi"
|
||||
import { getImageHeaders } from "@/src/lib/image"
|
||||
import { getAttachmentState, player } from "@/src/lib/player"
|
||||
import { useEntry } from "@/src/store/entry/hooks"
|
||||
import { useFeed } from "@/src/store/feed/hooks"
|
||||
|
||||
import { EntryItemContextMenu } from "../../context-menu/entry"
|
||||
import { EntryItemSkeleton } from "../EntryListContentArticle"
|
||||
|
||||
export function EntryNormalItem({ entryId }: { entryId: string }) {
|
||||
export function EntryNormalItem({ entryId, extraData }: { entryId: string; extraData: string }) {
|
||||
const entry = useEntry(entryId)
|
||||
const feed = useFeed(entry?.feedId as string)
|
||||
|
||||
@@ -48,10 +51,16 @@ export function EntryNormalItem({ entryId }: { entryId: string }) {
|
||||
}, [entry, entry?.read, unreadZoomSharedValue])
|
||||
|
||||
if (!entry) return <EntryItemSkeleton />
|
||||
const { title, description, publishedAt, media } = entry
|
||||
const { title, description, publishedAt, media, attachments } = entry
|
||||
|
||||
const image = media?.[0]?.url
|
||||
const blurhash = media?.[0]?.blurhash
|
||||
|
||||
const audio = attachments?.find((attachment) => attachment.mime_type?.startsWith("audio/"))
|
||||
const audioState = getAttachmentState(extraData, audio)
|
||||
const isPlaying = audioState === "playing"
|
||||
const isLoading = audioState === "loading"
|
||||
|
||||
return (
|
||||
<EntryItemContextMenu id={entryId}>
|
||||
<ItemPressable className="flex flex-row items-center p-4 pl-6" onPress={handlePress}>
|
||||
@@ -85,6 +94,33 @@ export function EntryNormalItem({ entryId }: { entryId: string }) {
|
||||
transition={500}
|
||||
/>
|
||||
)}
|
||||
|
||||
{audio && (
|
||||
<TouchableOpacity
|
||||
className="absolute right-4 flex size-20 items-center justify-center"
|
||||
onPress={() => {
|
||||
if (isLoading) return
|
||||
if (isPlaying) {
|
||||
player.pause()
|
||||
return
|
||||
}
|
||||
player.play({
|
||||
url: audio.url,
|
||||
title: entry?.title,
|
||||
artist: feed?.title,
|
||||
artwork: image,
|
||||
})
|
||||
}}
|
||||
>
|
||||
{isPlaying ? (
|
||||
<PauseCuteFiIcon color="white" width={40} height={40} />
|
||||
) : isLoading ? (
|
||||
<ActivityIndicator />
|
||||
) : (
|
||||
<PlayCuteFiIcon color="white" width={40} height={40} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
</ItemPressable>
|
||||
</EntryItemContextMenu>
|
||||
)
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import { createContext, useContext } from "react"
|
||||
|
||||
export const PlayerScreenContext = createContext<PlayerScreenContextValue | null>(null)
|
||||
export const usePlayerScreenContext = () => {
|
||||
const context = useContext(PlayerScreenContext)
|
||||
if (!context) {
|
||||
throw new Error("usePlayerScreenContext must be used within a PlayerScreenContextProvider")
|
||||
}
|
||||
return context
|
||||
}
|
||||
|
||||
interface PlayerScreenContextValue {
|
||||
isBackgroundLight: boolean
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
import { cn } from "@follow/utils"
|
||||
import { router } from "expo-router"
|
||||
import { Text, TouchableOpacity, View } from "react-native"
|
||||
import { Slider } from "react-native-awesome-slider"
|
||||
import { useDerivedValue, useSharedValue } from "react-native-reanimated"
|
||||
import * as DropdownMenu from "zeego/dropdown-menu"
|
||||
|
||||
import { Back2CuteReIcon } from "@/src/icons/back_2_cute_re"
|
||||
import { Forward2CuteReIcon } from "@/src/icons/forward_2_cute_re"
|
||||
import { PauseCuteFiIcon } from "@/src/icons/pause_cute_fi"
|
||||
import { PlayCuteFiIcon } from "@/src/icons/play_cute_fi"
|
||||
import { RewindBackward15CuteReIcon } from "@/src/icons/rewind_backward_15_cute_re"
|
||||
import { RewindForward30CuteReIcon } from "@/src/icons/rewind_forward_30_cute_re"
|
||||
import { StopCircleCuteFiIcon } from "@/src/icons/stop_circle_cute_fi"
|
||||
import { VolumeCuteReIcon } from "@/src/icons/volume_cute_re"
|
||||
import { VolumeOffCuteReIcon } from "@/src/icons/volume_off_cute_re"
|
||||
import { allowedRate, player, useIsPlaying, useProgress, useRate } from "@/src/lib/player"
|
||||
import { useVolume } from "@/src/lib/volume"
|
||||
import { useColor } from "@/src/theme/colors"
|
||||
|
||||
import { usePlayerScreenContext } from "./context"
|
||||
|
||||
type ControlButtonProps = {
|
||||
size?: number
|
||||
className?: string
|
||||
color?: string
|
||||
}
|
||||
|
||||
export function PlayPauseButton({ size = 24, className, color }: ControlButtonProps) {
|
||||
const { playing } = useIsPlaying()
|
||||
const label = useColor("label")
|
||||
return (
|
||||
<View className={className}>
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
playing ? player.pause() : player.play()
|
||||
}}
|
||||
>
|
||||
{playing ? (
|
||||
<PauseCuteFiIcon color={color ?? label} width={size} height={size} />
|
||||
) : (
|
||||
<PlayCuteFiIcon color={color ?? label} width={size} height={size} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export function SeekButton({
|
||||
size = 24,
|
||||
className,
|
||||
color,
|
||||
offset = 30,
|
||||
}: ControlButtonProps & { offset?: number }) {
|
||||
const label = useColor("label")
|
||||
return (
|
||||
<View className={className}>
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
player.seekBy(offset)
|
||||
}}
|
||||
>
|
||||
{offset === 30 ? (
|
||||
<RewindForward30CuteReIcon color={color ?? label} width={size} height={size} />
|
||||
) : offset === -15 ? (
|
||||
<RewindBackward15CuteReIcon color={color ?? label} width={size} height={size} />
|
||||
) : offset > 0 ? (
|
||||
<Forward2CuteReIcon color={color ?? label} width={size} height={size} />
|
||||
) : (
|
||||
<Back2CuteReIcon color={color ?? label} width={size} height={size} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export function RateSelector() {
|
||||
const { isBackgroundLight } = usePlayerScreenContext()
|
||||
const [currentRate, setCurrentRate] = useRate()
|
||||
|
||||
return (
|
||||
<View className="flex-row items-center justify-center">
|
||||
<DropdownMenu.Root>
|
||||
<DropdownMenu.Trigger>
|
||||
<Text
|
||||
className={cn(
|
||||
"w-[43] text-lg font-bold",
|
||||
isBackgroundLight ? "text-black/70" : "text-white/70",
|
||||
)}
|
||||
>
|
||||
{currentRate}x
|
||||
</Text>
|
||||
</DropdownMenu.Trigger>
|
||||
<DropdownMenu.Content>
|
||||
{allowedRate.map((rate) => (
|
||||
<DropdownMenu.CheckboxItem
|
||||
value={rate === currentRate}
|
||||
key={`${rate}`}
|
||||
onSelect={() => setCurrentRate(rate)}
|
||||
>
|
||||
<DropdownMenu.ItemTitle>{`${rate}x`}</DropdownMenu.ItemTitle>
|
||||
</DropdownMenu.CheckboxItem>
|
||||
))}
|
||||
</DropdownMenu.Content>
|
||||
</DropdownMenu.Root>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export function StopButton({ size = 24, className, color }: ControlButtonProps) {
|
||||
const label = useColor("label")
|
||||
return (
|
||||
<TouchableOpacity
|
||||
className={className}
|
||||
onPress={() => {
|
||||
player.reset()
|
||||
router.back()
|
||||
}}
|
||||
>
|
||||
<StopCircleCuteFiIcon color={color ?? label} width={size} height={size} />
|
||||
</TouchableOpacity>
|
||||
)
|
||||
}
|
||||
|
||||
export function ControlGroup() {
|
||||
const { isBackgroundLight } = usePlayerScreenContext()
|
||||
const buttonColor = isBackgroundLight ? "black" : "white"
|
||||
|
||||
return (
|
||||
<View className="flex-row items-center justify-between">
|
||||
<RateSelector />
|
||||
<SeekButton size={35} offset={-15} color={buttonColor} />
|
||||
<PlayPauseButton size={50} color={buttonColor} />
|
||||
<SeekButton size={35} offset={30} color={buttonColor} />
|
||||
<View className="w-[43] flex-row justify-end">
|
||||
<StopButton color={buttonColor} />
|
||||
</View>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
const formatSecondsToMinutes = (seconds: number) => {
|
||||
const minutes = Math.floor(seconds / 60)
|
||||
const remainingSeconds = Math.floor(seconds % 60)
|
||||
|
||||
const formattedMinutes = String(minutes).padStart(2, "0")
|
||||
const formattedSeconds = String(remainingSeconds).padStart(2, "0")
|
||||
|
||||
return `${formattedMinutes}:${formattedSeconds}`
|
||||
}
|
||||
|
||||
export function ProgressBar() {
|
||||
const { isBackgroundLight } = usePlayerScreenContext()
|
||||
|
||||
const { duration, position } = useProgress(250)
|
||||
const isSliding = useSharedValue(false)
|
||||
const progress = useDerivedValue(() => {
|
||||
return duration > 0 ? position / duration : 0
|
||||
})
|
||||
const min = useSharedValue(0)
|
||||
const max = useSharedValue(1)
|
||||
|
||||
const trackElapsedTime = formatSecondsToMinutes(position)
|
||||
const trackRemainingTime = formatSecondsToMinutes(duration - position)
|
||||
|
||||
return (
|
||||
<View className="my-6">
|
||||
<Slider
|
||||
progress={progress}
|
||||
minimumValue={min}
|
||||
maximumValue={max}
|
||||
thumbWidth={0}
|
||||
containerStyle={{ height: 7, borderRadius: 16 }}
|
||||
renderBubble={() => null}
|
||||
theme={{
|
||||
minimumTrackTintColor: "rgba(255,255,255,0.6)",
|
||||
maximumTrackTintColor: "rgba(255,255,255,0.4)",
|
||||
}}
|
||||
onSlidingStart={() => (isSliding.value = true)}
|
||||
onValueChange={async (value) => {
|
||||
await player.seekTo(value * duration)
|
||||
}}
|
||||
onSlidingComplete={async (value) => {
|
||||
if (!isSliding.value) return
|
||||
|
||||
isSliding.value = false
|
||||
|
||||
await player.seekTo(value * duration)
|
||||
}}
|
||||
/>
|
||||
|
||||
<View className="mt-3 flex-row justify-between">
|
||||
<Text
|
||||
className={cn(
|
||||
"font-mono text-xs font-medium tracking-wider opacity-75",
|
||||
isBackgroundLight ? "text-black" : "text-white",
|
||||
)}
|
||||
>
|
||||
{trackElapsedTime}
|
||||
</Text>
|
||||
|
||||
<Text
|
||||
className={cn(
|
||||
"font-mono text-xs font-medium tracking-wider opacity-75",
|
||||
isBackgroundLight ? "text-black" : "text-white",
|
||||
)}
|
||||
>
|
||||
{"-"} {trackRemainingTime}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export function VolumeBar() {
|
||||
const { isBackgroundLight } = usePlayerScreenContext()
|
||||
const buttonColor = isBackgroundLight ? "black" : "white"
|
||||
|
||||
const { volume, updateVolume } = useVolume()
|
||||
|
||||
const progress = useSharedValue(0)
|
||||
const min = useSharedValue(0)
|
||||
const max = useSharedValue(1)
|
||||
|
||||
progress.value = volume ?? 0
|
||||
|
||||
return (
|
||||
<View className="mb-10">
|
||||
<View className="flex-row items-center justify-between">
|
||||
<VolumeOffCuteReIcon height={15} width={15} color={buttonColor} />
|
||||
<View className="flex-1 flex-row px-4">
|
||||
<Slider
|
||||
progress={progress}
|
||||
minimumValue={min}
|
||||
containerStyle={{ height: 7, borderRadius: 16 }}
|
||||
onValueChange={(value) => {
|
||||
updateVolume(value)
|
||||
}}
|
||||
renderBubble={() => null}
|
||||
theme={{
|
||||
maximumTrackTintColor: "rgba(255,255,255,0.4)",
|
||||
minimumTrackTintColor: "rgba(255,255,255,0.6)",
|
||||
}}
|
||||
thumbWidth={0}
|
||||
maximumValue={max}
|
||||
/>
|
||||
</View>
|
||||
<VolumeCuteReIcon height={15} width={15} color={buttonColor} />
|
||||
</View>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { cn } from "@follow/utils"
|
||||
import { Image } from "expo-image"
|
||||
import { router, usePathname } from "expo-router"
|
||||
import { Pressable, Text, View } from "react-native"
|
||||
import ReAnimated, { SlideInDown, SlideOutDown } from "react-native-reanimated"
|
||||
|
||||
import { ThemedBlurView } from "@/src/components/common/ThemedBlurView"
|
||||
import { useActiveTrack } from "@/src/lib/player"
|
||||
|
||||
import { PlayPauseButton, SeekButton } from "./control"
|
||||
|
||||
const allowedRoutes = new Set(["/", "/subscriptions", "/player"])
|
||||
|
||||
export function FloatingBar({ className }: { className?: string }) {
|
||||
const activeTrack = useActiveTrack()
|
||||
const pathname = usePathname()
|
||||
if (!activeTrack || !allowedRoutes.has(pathname)) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<ReAnimated.View
|
||||
className={cn("mx-4 shadow-md", className)}
|
||||
entering={SlideInDown}
|
||||
exiting={SlideOutDown}
|
||||
>
|
||||
<Pressable
|
||||
onPress={() => {
|
||||
router.push("/player")
|
||||
}}
|
||||
>
|
||||
<ThemedBlurView className="flex flex-row items-center gap-4 overflow-hidden rounded-2xl p-2">
|
||||
<Image source={activeTrack.artwork} className="size-12 rounded-lg" />
|
||||
<View className="flex-1 overflow-hidden">
|
||||
<Text className="text-label text-lg font-semibold" numberOfLines={1}>
|
||||
{activeTrack.title}
|
||||
</Text>
|
||||
</View>
|
||||
<View className="mr-2 flex flex-row gap-4">
|
||||
<PlayPauseButton />
|
||||
<SeekButton />
|
||||
</View>
|
||||
</ThemedBlurView>
|
||||
</Pressable>
|
||||
</ReAnimated.View>
|
||||
)
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import type { ReactNode } from "react"
|
||||
import { StyleSheet, View } from "react-native"
|
||||
import { GestureHandlerRootView } from "react-native-gesture-handler"
|
||||
import { KeyboardProvider } from "react-native-keyboard-controller"
|
||||
import { SheetProvider } from "react-native-sheet-transitions"
|
||||
|
||||
import { PreviewImageProvider } from "../components/ui/image/PreviewPageProvider"
|
||||
import { sqlite } from "../database"
|
||||
@@ -31,12 +32,19 @@ export const RootProviders = ({ children }: { children: ReactNode }) => {
|
||||
<View style={[styles.flex, currentThemeColors]}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>
|
||||
<GestureHandlerRootView>
|
||||
<ActionSheetProvider>
|
||||
<PreviewImageProvider>
|
||||
<PortalProvider>{children}</PortalProvider>
|
||||
</PreviewImageProvider>
|
||||
</ActionSheetProvider>
|
||||
<GestureHandlerRootView
|
||||
style={{
|
||||
flex: 1,
|
||||
backgroundColor: "#000",
|
||||
}}
|
||||
>
|
||||
<SheetProvider>
|
||||
<ActionSheetProvider>
|
||||
<PreviewImageProvider>
|
||||
<PortalProvider>{children}</PortalProvider>
|
||||
</PreviewImageProvider>
|
||||
</ActionSheetProvider>
|
||||
</SheetProvider>
|
||||
</GestureHandlerRootView>
|
||||
</ThemeProvider>
|
||||
</QueryClientProvider>
|
||||
|
||||
@@ -22,6 +22,7 @@ import { Search3CuteFiIcon } from "@/src/icons/search_3_cute_fi"
|
||||
import { Search3CuteReIcon } from "@/src/icons/search_3_cute_re"
|
||||
import { Settings1CuteFiIcon } from "@/src/icons/settings_1_cute_fi"
|
||||
import { Settings1CuteReIcon } from "@/src/icons/settings_1_cute_re"
|
||||
import { FloatingBar } from "@/src/modules/player/floating-bar"
|
||||
import { useColor } from "@/src/theme/colors"
|
||||
|
||||
const fifthTap = Gesture.Tap()
|
||||
@@ -147,6 +148,7 @@ export default function TabLayout() {
|
||||
}}
|
||||
/>
|
||||
</Tabs>
|
||||
<FloatingBar className="absolute inset-x-0 bottom-28" />
|
||||
</SetBottomTabBarVisibleContext.Provider>
|
||||
</BottomTabBarBackgroundContext.Provider>
|
||||
)
|
||||
|
||||
@@ -2,6 +2,7 @@ import "../global.css"
|
||||
|
||||
import { Stack } from "expo-router"
|
||||
import { useColorScheme } from "nativewind"
|
||||
import { useSheet } from "react-native-sheet-transitions"
|
||||
|
||||
import { DebugButton } from "../modules/debug"
|
||||
import { RootProviders } from "../providers"
|
||||
@@ -11,27 +12,50 @@ import { getSystemBackgroundColor } from "../theme/utils"
|
||||
export default function RootLayout() {
|
||||
useColorScheme()
|
||||
|
||||
const systemBackgroundColor = getSystemBackgroundColor()
|
||||
|
||||
return (
|
||||
<RootProviders>
|
||||
<Session />
|
||||
<Stack
|
||||
screenOptions={{
|
||||
contentStyle: { backgroundColor: systemBackgroundColor },
|
||||
headerShown: false,
|
||||
}}
|
||||
>
|
||||
<Stack.Screen name="(stack)" options={{ headerShown: false }} />
|
||||
<Stack.Screen name="(headless)" options={{ headerShown: false }} />
|
||||
<Stack.Screen name="(modal)" options={{ headerShown: false, presentation: "modal" }} />
|
||||
</Stack>
|
||||
<AnimatedStack />
|
||||
|
||||
{__DEV__ && <DebugButton />}
|
||||
</RootProviders>
|
||||
)
|
||||
}
|
||||
|
||||
function AnimatedStack() {
|
||||
const systemBackgroundColor = getSystemBackgroundColor()
|
||||
const { isScaling } = useSheet()
|
||||
|
||||
return (
|
||||
<Stack
|
||||
screenOptions={{
|
||||
contentStyle: { backgroundColor: systemBackgroundColor },
|
||||
headerShown: false,
|
||||
}}
|
||||
>
|
||||
<Stack.Screen
|
||||
name="(stack)"
|
||||
options={{
|
||||
headerShown: false,
|
||||
contentStyle: isScaling ? { borderRadius: 50, overflow: "hidden" } : {},
|
||||
}}
|
||||
/>
|
||||
<Stack.Screen name="(headless)" options={{ headerShown: false }} />
|
||||
<Stack.Screen name="(modal)" options={{ headerShown: false, presentation: "modal" }} />
|
||||
<Stack.Screen
|
||||
name="player"
|
||||
options={{
|
||||
presentation: "transparentModal",
|
||||
headerShown: false,
|
||||
contentStyle: {
|
||||
backgroundColor: "transparent",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
)
|
||||
}
|
||||
|
||||
const Session = () => {
|
||||
usePrefetchSessionUser()
|
||||
return null
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
import { cn, getLuminance, shadeColor } from "@follow/utils"
|
||||
import { Image } from "expo-image"
|
||||
import { LinearGradient } from "expo-linear-gradient"
|
||||
import { router } from "expo-router"
|
||||
import { useEffect, useMemo, useState } from "react"
|
||||
import { StyleSheet, Text, View } from "react-native"
|
||||
import ImageColors from "react-native-image-colors"
|
||||
import { SheetScreen } from "react-native-sheet-transitions"
|
||||
|
||||
import { useActiveTrack } from "../lib/player"
|
||||
import { PlayerScreenContext } from "../modules/player/context"
|
||||
import { ControlGroup, ProgressBar, VolumeBar } from "../modules/player/control"
|
||||
|
||||
const defaultBackgroundColor = "#000000"
|
||||
|
||||
export default function PlaterScreen() {
|
||||
const activeTrack = useActiveTrack()
|
||||
|
||||
const [backgroundColor, setBackgroundColor] = useState(defaultBackgroundColor)
|
||||
const [isGradientLight, setIsGradientLight] = useState(false)
|
||||
|
||||
const playerScreenContextValue = useMemo(
|
||||
() => ({ isBackgroundLight: isGradientLight }),
|
||||
[isGradientLight],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
async function extractColors() {
|
||||
if (!activeTrack?.artwork) {
|
||||
return
|
||||
}
|
||||
|
||||
const result = await ImageColors.getColors(activeTrack.artwork, {
|
||||
fallback: defaultBackgroundColor,
|
||||
cache: true,
|
||||
})
|
||||
|
||||
if (result.platform === "web") {
|
||||
return
|
||||
}
|
||||
|
||||
if (result.platform === "ios") {
|
||||
setIsGradientLight(getLuminance(result.background) > 0.5)
|
||||
setBackgroundColor(result.background)
|
||||
} else {
|
||||
setIsGradientLight(getLuminance(result.dominant) > 0.5)
|
||||
setBackgroundColor(result.average)
|
||||
}
|
||||
}
|
||||
|
||||
extractColors()
|
||||
}, [activeTrack?.artwork])
|
||||
|
||||
if (!activeTrack) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<SheetScreen onClose={() => router.back()}>
|
||||
<PlayerScreenContext.Provider value={playerScreenContextValue}>
|
||||
<View className="flex-1 px-[1000] p-safe">
|
||||
<LinearGradient
|
||||
style={StyleSheet.absoluteFill}
|
||||
colors={[backgroundColor, shadeColor(backgroundColor, -50)]}
|
||||
start={{ x: 0, y: 0 }}
|
||||
end={{ x: 1, y: 0 }}
|
||||
/>
|
||||
<DismissIndicator />
|
||||
<View className="mx-auto my-24 aspect-square w-[65%] shadow">
|
||||
<Image source={activeTrack.artwork} className="size-full rounded-lg" />
|
||||
</View>
|
||||
<View className="mx-10 flex-1">
|
||||
<Text
|
||||
className={cn(
|
||||
"text-xl font-bold opacity-90",
|
||||
isGradientLight ? "text-black" : "text-white",
|
||||
)}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{activeTrack.title}
|
||||
</Text>
|
||||
<Text
|
||||
className={cn(
|
||||
"mt-2 text-xl font-semibold opacity-60",
|
||||
isGradientLight ? "text-black" : "text-white",
|
||||
)}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{activeTrack.artist}
|
||||
</Text>
|
||||
<ProgressBar />
|
||||
<ControlGroup />
|
||||
<View className="flex-1" />
|
||||
<VolumeBar />
|
||||
</View>
|
||||
</View>
|
||||
</PlayerScreenContext.Provider>
|
||||
</SheetScreen>
|
||||
)
|
||||
}
|
||||
|
||||
function DismissIndicator() {
|
||||
return (
|
||||
<View className="absolute inset-x-0 flex items-center justify-center top-safe-offset-2">
|
||||
<View className="h-[5] w-[40] rounded-full bg-white/45" />
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path stroke="#10161F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 11.997c.007 4.11 2.846 7.817 7.024 8.758A9 9 0 1 0 5.217 6.061c-.066.075-.194.02-.182-.08l.392-3.355c.013-.113.175-.12.197-.008l.379 1.884m9.76 3.998h-3a.5.5 0 0 0-.5.5v1.754c0 .371.399.627.756.525.294-.084.644-.154.994-.154 1.313 0 2.188.98 2.188 2.188a2.187 2.187 0 0 1-4.193.874M7.5 9.5l1.5-1v7"/></svg>
|
||||
|
After Width: | Height: | Size: 530 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path stroke="#10161F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m7.214 9.51.012-.028A1.611 1.611 0 0 1 8.71 8.5h.07c.95 0 1.72.77 1.72 1.72v0c0 .46-.183.9-.509 1.222l-.106.105c-.292.29-.687.453-1.1.453v0m-1.57 2.428.011.027c.253.596.837.982 1.484.982h.094c.937 0 1.696-.759 1.696-1.696v0c0-.472-.197-.923-.544-1.245l-.228-.21A1.072 1.072 0 0 0 9 12v0m12-.003c-.007 4.11-2.845 7.817-7.024 8.758a9 9 0 1 1 4.807-14.694c.066.075.194.02.183-.08l-.393-3.355c-.013-.113-.175-.12-.197-.008l-.379 1.884M15 15.5a1.5 1.5 0 0 0 1.5-1.5v-4A1.5 1.5 0 0 0 15 8.5v0a1.5 1.5 0 0 0-1.5 1.5v4a1.5 1.5 0 0 0 1.5 1.5"/></svg>
|
||||
|
After Width: | Height: | Size: 762 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path fill="#10161F" fill-rule="evenodd" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m.049 5.5h-.098c-.66 0-1.23 0-1.695.047-.494.05-.979.162-1.423.459a3 3 0 0 0-.827.827c-.297.444-.409.93-.459 1.423C7.5 10.72 7.5 11.29 7.5 11.95v.098c0 .66 0 1.23.047 1.695.05.494.162.979.459 1.423a3 3 0 0 0 .827.827c.444.297.93.409 1.423.459.497.05.998.049 1.498.047a67.332 67.332 0 0 1 .492 0c.5.002 1.001.003 1.498-.047.494-.05.979-.162 1.423-.459a3 3 0 0 0 .827-.827c.297-.444.409-.93.459-1.423.05-.497.049-.998.047-1.498a67.332 67.332 0 0 1 0-.492c.002-.5.003-1.001-.047-1.498-.05-.494-.162-.979-.459-1.423a3 3 0 0 0-.827-.827c-.444-.297-.93-.409-1.423-.459C13.28 7.5 12.71 7.5 12.05 7.5" clip-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 866 B |
+3
-1
@@ -145,7 +145,9 @@
|
||||
"@tanstack/react-virtual": "patches/@tanstack__react-virtual.patch",
|
||||
"@pengx17/electron-forge-maker-appimage": "patches/@pengx17__electron-forge-maker-appimage.patch",
|
||||
"devlop": "patches/devlop.patch",
|
||||
"@microflash/remark-callout-directives": "patches/@microflash__remark-callout-directives.patch"
|
||||
"@microflash/remark-callout-directives": "patches/@microflash__remark-callout-directives.patch",
|
||||
"react-native-track-player": "patches/react-native-track-player.patch",
|
||||
"react-native-sheet-transitions": "patches/react-native-sheet-transitions.patch"
|
||||
},
|
||||
"overrides": {
|
||||
"app-builder-lib": "25.1.8",
|
||||
|
||||
@@ -185,3 +185,23 @@ export const getLuminance = (hexColor: string) => {
|
||||
const b = (rgb >> 0) & 0xff
|
||||
return (0.299 * r + 0.587 * g + 0.114 * b) / 255
|
||||
}
|
||||
|
||||
export const shadeColor = (color: string, percent: number): string => {
|
||||
const R = Number.parseInt(color.slice(1, 3), 16)
|
||||
const G = Number.parseInt(color.slice(3, 5), 16)
|
||||
const B = Number.parseInt(color.slice(5, 7), 16)
|
||||
|
||||
let newR = Math.round((R * (100 + percent)) / 100)
|
||||
let newG = Math.round((G * (100 + percent)) / 100)
|
||||
let newB = Math.round((B * (100 + percent)) / 100)
|
||||
|
||||
newR = Math.min(newR, 255)
|
||||
newG = Math.min(newG, 255)
|
||||
newB = Math.min(newB, 255)
|
||||
|
||||
const RR = newR.toString(16).length === 1 ? `0${newR.toString(16)}` : newR.toString(16)
|
||||
const GG = newG.toString(16).length === 1 ? `0${newG.toString(16)}` : newG.toString(16)
|
||||
const BB = newB.toString(16).length === 1 ? `0${newB.toString(16)}` : newB.toString(16)
|
||||
|
||||
return `#${RR}${GG}${BB}`
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
diff --git a/src/SheetProvider.tsx b/src/SheetProvider.tsx
|
||||
index 2e3964c86ad78a9eddcb074ab26ae8ee2ae12179..fa1f95cfe779c5ed4120c30e36216e3561637897 100644
|
||||
--- a/src/SheetProvider.tsx
|
||||
+++ b/src/SheetProvider.tsx
|
||||
@@ -11,6 +11,7 @@ import Animated, {
|
||||
interface SheetContextType {
|
||||
scale: Animated.SharedValue<number>
|
||||
setScale: (scale: number) => void
|
||||
+ isScaling: boolean
|
||||
resizeType: 'incremental' | 'decremental'
|
||||
enableForWeb: boolean
|
||||
}
|
||||
@@ -30,6 +31,7 @@ export function SheetProvider({
|
||||
}: SheetProviderProps) {
|
||||
const scale = useSharedValue(1)
|
||||
const isMounted = useSharedValue(false)
|
||||
+ const [isScaling, setIsScaling] = React.useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
// Delay setting isMounted to ensure view is ready
|
||||
@@ -51,6 +53,8 @@ export function SheetProvider({
|
||||
return
|
||||
}
|
||||
|
||||
+ setIsScaling(newScale !== 1)
|
||||
+
|
||||
scale.value = withSpring(newScale, {
|
||||
damping: 20,
|
||||
stiffness: 300,
|
||||
@@ -74,6 +78,7 @@ export function SheetProvider({
|
||||
<SheetContext.Provider value={{
|
||||
scale,
|
||||
setScale,
|
||||
+ isScaling,
|
||||
resizeType,
|
||||
enableForWeb: isEnabled
|
||||
}}>
|
||||
diff --git a/src/SheetScreen.tsx b/src/SheetScreen.tsx
|
||||
index 3eebf713a5dcf42dd43b2c34cef136b682828d23..ca1394fe4319151cd1a31f303c2e70de5f48850a 100644
|
||||
--- a/src/SheetScreen.tsx
|
||||
+++ b/src/SheetScreen.tsx
|
||||
@@ -278,7 +278,7 @@ export function SheetScreen({
|
||||
{ scale }
|
||||
],
|
||||
opacity: opacity.value,
|
||||
- borderRadius: borderRadius.value,
|
||||
+ borderRadius: translateY.value === 0 ? 0 : borderRadius.value,
|
||||
}
|
||||
}, [disableSheetContentResizeOnDragDown])
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
diff --git a/ios/RNTrackPlayer/RNTrackPlayerBridge.m b/ios/RNTrackPlayer/RNTrackPlayerBridge.m
|
||||
index 7741994191921ed86f7577f7ce589b3939d9dd49..776c09ec0ae450daa4dc9031ccd3ff4baba016d3 100644
|
||||
--- a/ios/RNTrackPlayer/RNTrackPlayerBridge.m
|
||||
+++ b/ios/RNTrackPlayer/RNTrackPlayerBridge.m
|
||||
@@ -151,17 +151,4 @@ @interface RCT_EXTERN_REMAP_MODULE(TrackPlayerModule, RNTrackPlayer, NSObject)
|
||||
resolver:(RCTPromiseResolveBlock)resolve
|
||||
rejecter:(RCTPromiseRejectBlock)reject);
|
||||
|
||||
-RCT_EXTERN_METHOD(getSleepTimerProgress:(RCTPromiseResolveBlock)resolve
|
||||
- rejecter:(RCTPromiseRejectBlock)reject);
|
||||
-
|
||||
-RCT_EXTERN_METHOD(setSleepTimer:(double)time
|
||||
- resolver:(RCTPromiseResolveBlock)resolve
|
||||
- rejecter:(RCTPromiseRejectBlock)reject);
|
||||
-
|
||||
-RCT_EXTERN_METHOD(sleepWhenActiveTrackReachesEnd:(RCTPromiseResolveBlock)resolve
|
||||
- rejecter:(RCTPromiseRejectBlock)reject);
|
||||
-
|
||||
-RCT_EXTERN_METHOD(clearSleepTimer:(RCTPromiseResolveBlock)resolve
|
||||
- rejecter:(RCTPromiseRejectBlock)reject);
|
||||
-
|
||||
@end
|
||||
Generated
+97
-19
@@ -50,6 +50,12 @@ patchedDependencies:
|
||||
re-resizable:
|
||||
hash: yitcmpfwcomg2fky72uc3lhk2i
|
||||
path: patches/re-resizable@6.9.17.patch
|
||||
react-native-sheet-transitions:
|
||||
hash: xmkq4ssu3mefxtr2e65xl27hxi
|
||||
path: patches/react-native-sheet-transitions.patch
|
||||
react-native-track-player:
|
||||
hash: ul2ym56izpf2mkfucn2nug6afu
|
||||
path: patches/react-native-track-player.patch
|
||||
workbox-precaching:
|
||||
hash: frtipzgil4wle57aliuhcr746e
|
||||
path: patches/workbox-precaching.patch
|
||||
@@ -596,6 +602,9 @@ importers:
|
||||
react-native:
|
||||
specifier: 0.77.0
|
||||
version: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
react-native-awesome-slider:
|
||||
specifier: 2.9.0
|
||||
version: 2.9.0(react-native-gesture-handler@2.23.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-reanimated@3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-bouncy-checkbox:
|
||||
specifier: 4.1.2
|
||||
version: 4.1.2
|
||||
@@ -632,12 +641,21 @@ importers:
|
||||
react-native-screens:
|
||||
specifier: 4.7.0
|
||||
version: 4.7.0(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-sheet-transitions:
|
||||
specifier: 0.1.2
|
||||
version: 0.1.2(patch_hash=xmkq4ssu3mefxtr2e65xl27hxi)(react-native-gesture-handler@2.23.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-reanimated@3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-svg:
|
||||
specifier: 15.11.1
|
||||
version: 15.11.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-track-player:
|
||||
specifier: 4.1.1
|
||||
version: 4.1.1(patch_hash=ul2ym56izpf2mkfucn2nug6afu)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-uikit-colors:
|
||||
specifier: 0.2.0
|
||||
version: 0.2.0(fe3lmks7adwcuf5fbpjna3wt2m)
|
||||
react-native-volume-manager:
|
||||
specifier: 2.0.8
|
||||
version: 2.0.8(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-web:
|
||||
specifier: 0.19.13
|
||||
version: 0.19.13(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
@@ -4039,9 +4057,9 @@ packages:
|
||||
'@radix-ui/react-context-menu@2.2.6':
|
||||
resolution: {integrity: sha512-aUP99QZ3VU84NPsHeaFt4cQUNgJqFsLLOt/RbbWXszZ6MP0DpDyjkFZORr4RpAEx3sUBk+Kc8h13yGtC5Qw8dg==}
|
||||
peerDependencies:
|
||||
'@types/react': '*'
|
||||
'@types/react-dom': '*'
|
||||
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
|
||||
'@types/react': 18.3.12
|
||||
'@types/react-dom': 18.3.1
|
||||
react: 18.3.1
|
||||
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
|
||||
peerDependenciesMeta:
|
||||
'@types/react':
|
||||
@@ -5245,7 +5263,7 @@ packages:
|
||||
'@tanstack/react-query@5.66.7':
|
||||
resolution: {integrity: sha512-qd3q/tUpF2K1xItfPZddk1k/8pSXnovg41XyCqJgPoyYEirMBtB0sVEVVQ/CsAOngzgWtBPXimVf4q4kM9uO6A==}
|
||||
peerDependencies:
|
||||
react: ^18 || ^19
|
||||
react: 18.3.1
|
||||
|
||||
'@tanstack/react-virtual@3.13.0':
|
||||
resolution: {integrity: sha512-CchF0NlLIowiM2GxtsoKBkXA4uqSnY2KvnXo+kyUFD4a4ll6+J0qzoRsUPMwXV/H26lRsxgJIr/YmjYum2oEjg==}
|
||||
@@ -12400,6 +12418,15 @@ packages:
|
||||
react-merge-refs@1.1.0:
|
||||
resolution: {integrity: sha512-alTKsjEL0dKH/ru1Iyn7vliS2QRcBp9zZPGoWxUOvRGWPUYgjo+V01is7p04It6KhgrzhJGnIj9GgX8W4bZoCQ==}
|
||||
|
||||
react-native-awesome-slider@2.9.0:
|
||||
resolution: {integrity: sha512-sc5qgX4YtM6IxjtosjgQLdsal120MvU+YWs0F2MdgQWijps22AXLDCUoBnZZ8vxVhVyJ2WnnIPrmtVBvVJjSuQ==}
|
||||
engines: {node: '>= 18.0.0'}
|
||||
peerDependencies:
|
||||
react: 18.3.1
|
||||
react-native: '*'
|
||||
react-native-gesture-handler: '>=2.0.0'
|
||||
react-native-reanimated: '>=3.0.0'
|
||||
|
||||
react-native-bouncy-checkbox@4.1.2:
|
||||
resolution: {integrity: sha512-hB7YwCGTNoMpTPOPiP+RWyQH35S6vxUbc7IGEW/Rqyp7GonEyhtqtthmxiphneRXnywMh8CZwND7OnvppJZscg==}
|
||||
|
||||
@@ -12505,12 +12532,33 @@ packages:
|
||||
react: '*'
|
||||
react-native: '*'
|
||||
|
||||
react-native-sheet-transitions@0.1.2:
|
||||
resolution: {integrity: sha512-9PPREdwH3tMR8otUK1voiFw9AFNtC37Del2fZwbCMBKjOyClC+f3Fwp7KqUouP0A5c3zjEc3T8TetBGQGPQE9A==}
|
||||
peerDependencies:
|
||||
react: '*'
|
||||
react-native: npm:react-native@0.77.0
|
||||
react-native-gesture-handler: '*'
|
||||
react-native-reanimated: '*'
|
||||
|
||||
react-native-svg@15.11.1:
|
||||
resolution: {integrity: sha512-Qmwx/yJKt+AHUr4zjxx/Q69qwKtRfr1+uIfFMQoq3WFRhqU76aL9db1DyvPiY632DAsVGba1pHf92OZPkpjrdQ==}
|
||||
peerDependencies:
|
||||
react: '*'
|
||||
react-native: '*'
|
||||
|
||||
react-native-track-player@4.1.1:
|
||||
resolution: {integrity: sha512-E5N/eK/+HtAVJUAzXpm1cWz8ROheV9jb0TI6h2bM+333U+DWibTTnT2T1122FkCoXLXIYavtm2FR2if+5jH8cA==}
|
||||
peerDependencies:
|
||||
react: '>=16.8.6'
|
||||
react-native: npm:react-native@0.77.0
|
||||
react-native-windows: '>=0.63.0'
|
||||
shaka-player: ^4.7.9
|
||||
peerDependenciesMeta:
|
||||
react-native-windows:
|
||||
optional: true
|
||||
shaka-player:
|
||||
optional: true
|
||||
|
||||
react-native-uikit-colors@0.2.0:
|
||||
resolution: {integrity: sha512-YYJHejX3JgmfGceo058fC8iFVhXdZtWjjqcb9lfSYVjYX29DnkcHmdjUGNLAK6M5R0/IFv9v7N2V2drpRKRVvA==}
|
||||
peerDependencies:
|
||||
@@ -12519,6 +12567,12 @@ packages:
|
||||
react-native: '>=0.76.0'
|
||||
tailwindcss: '>=3.0.0'
|
||||
|
||||
react-native-volume-manager@2.0.8:
|
||||
resolution: {integrity: sha512-aZM47/mYkdQ4CbXpKYO6Ajiczv7fxbQXZ9c0H8gRuQUaS3OCz/MZABer6o9aDWq0KMNsQ7q7GVFLRPnSSeeMmw==}
|
||||
peerDependencies:
|
||||
react: 18.3.1
|
||||
react-native: '*'
|
||||
|
||||
react-native-web@0.19.13:
|
||||
resolution: {integrity: sha512-etv3bN8rJglrRCp/uL4p7l8QvUNUC++QwDbdZ8CB7BvZiMvsxfFIRM1j04vxNldG3uo2puRd6OSWR3ibtmc29A==}
|
||||
peerDependencies:
|
||||
@@ -16899,7 +16953,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@expo/config-types': 52.0.4
|
||||
'@expo/json-file': 9.0.2
|
||||
'@expo/plist': 0.2.0
|
||||
'@expo/plist': 0.2.2
|
||||
'@expo/sdk-runtime-versions': 1.0.0
|
||||
chalk: 4.1.2
|
||||
debug: 4.4.0(supports-color@8.1.1)
|
||||
@@ -16956,7 +17010,7 @@ snapshots:
|
||||
'@expo/config@10.0.6':
|
||||
dependencies:
|
||||
'@babel/code-frame': 7.10.4
|
||||
'@expo/config-plugins': 9.0.12
|
||||
'@expo/config-plugins': 9.0.15
|
||||
'@expo/config-types': 52.0.4
|
||||
'@expo/json-file': 9.0.2
|
||||
deepmerge: 4.3.1
|
||||
@@ -17183,7 +17237,7 @@ snapshots:
|
||||
fs-extra: 10.1.0
|
||||
http-call: 5.3.0
|
||||
semver: 7.7.1
|
||||
tslib: 2.6.2
|
||||
tslib: 2.8.1
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
- '@swc/wasm'
|
||||
@@ -17193,8 +17247,8 @@ snapshots:
|
||||
|
||||
'@expo/prebuild-config@8.0.17':
|
||||
dependencies:
|
||||
'@expo/config': 10.0.6
|
||||
'@expo/config-plugins': 9.0.12
|
||||
'@expo/config': 10.0.10
|
||||
'@expo/config-plugins': 9.0.15
|
||||
'@expo/config-types': 52.0.4
|
||||
'@expo/image-utils': 0.6.5
|
||||
'@expo/json-file': 9.0.2
|
||||
@@ -17237,7 +17291,7 @@ snapshots:
|
||||
'@segment/loosely-validate-event': 2.0.0
|
||||
fetch-retry: 4.1.1
|
||||
md5: 2.3.0
|
||||
node-fetch: 2.6.7(encoding@0.1.13)
|
||||
node-fetch: 2.7.0(encoding@0.1.13)
|
||||
remove-trailing-slash: 0.1.1
|
||||
uuid: 8.3.2
|
||||
transitivePeerDependencies:
|
||||
@@ -17265,14 +17319,14 @@ snapshots:
|
||||
'@expo/logger': 1.0.117
|
||||
'@expo/spawn-async': 1.7.2
|
||||
arg: 5.0.2
|
||||
fs-extra: 11.2.0
|
||||
fs-extra: 11.3.0
|
||||
joi: 17.13.3
|
||||
jsep: 1.4.0
|
||||
lodash.clonedeep: 4.5.0
|
||||
lodash.get: 4.4.2
|
||||
this-file: 2.0.3
|
||||
uuid: 9.0.1
|
||||
yaml: 2.6.0
|
||||
yaml: 2.7.0
|
||||
|
||||
'@expo/timeago.js@1.0.0': {}
|
||||
|
||||
@@ -18133,7 +18187,7 @@ snapshots:
|
||||
consola: 3.4.0
|
||||
detect-libc: 2.0.3
|
||||
https-proxy-agent: 7.0.6
|
||||
node-fetch: 2.6.9(encoding@0.1.13)
|
||||
node-fetch: 2.7.0(encoding@0.1.13)
|
||||
nopt: 8.1.0
|
||||
semver: 7.7.1
|
||||
tar: 7.4.3
|
||||
@@ -18216,7 +18270,7 @@ snapshots:
|
||||
strip-ansi: 6.0.1
|
||||
supports-color: 8.1.1
|
||||
supports-hyperlinks: 2.3.0
|
||||
tslib: 2.6.2
|
||||
tslib: 2.8.1
|
||||
widest-line: 3.1.0
|
||||
wrap-ansi: 7.0.0
|
||||
|
||||
@@ -18246,7 +18300,7 @@ snapshots:
|
||||
supports-color: 8.1.1
|
||||
supports-hyperlinks: 2.3.0
|
||||
ts-node: 10.9.2(@types/node@22.13.4)(typescript@5.7.3)
|
||||
tslib: 2.6.2
|
||||
tslib: 2.8.1
|
||||
widest-line: 3.1.0
|
||||
wordwrap: 1.0.0
|
||||
wrap-ansi: 7.0.0
|
||||
@@ -20772,7 +20826,7 @@ snapshots:
|
||||
|
||||
'@urql/exchange-retry@1.2.0(graphql@16.8.1)':
|
||||
dependencies:
|
||||
'@urql/core': 4.0.11(graphql@16.8.1)
|
||||
'@urql/core': 5.1.0(graphql@16.8.1)
|
||||
wonka: 6.3.4
|
||||
transitivePeerDependencies:
|
||||
- graphql
|
||||
@@ -24763,7 +24817,7 @@ snapshots:
|
||||
|
||||
filelist@1.0.4:
|
||||
dependencies:
|
||||
minimatch: 5.1.2
|
||||
minimatch: 5.1.6
|
||||
|
||||
filename-reserved-regex@2.0.0: {}
|
||||
|
||||
@@ -25278,7 +25332,7 @@ snapshots:
|
||||
array-union: 2.1.0
|
||||
dir-glob: 3.0.1
|
||||
fast-glob: 3.3.3
|
||||
ignore: 5.3.0
|
||||
ignore: 5.3.2
|
||||
merge2: 1.4.1
|
||||
slash: 3.0.0
|
||||
|
||||
@@ -25313,7 +25367,7 @@ snapshots:
|
||||
graphql-tag@2.12.6(graphql@16.8.1):
|
||||
dependencies:
|
||||
graphql: 16.8.1
|
||||
tslib: 2.6.2
|
||||
tslib: 2.8.1
|
||||
|
||||
graphql@16.8.1: {}
|
||||
|
||||
@@ -29176,6 +29230,13 @@ snapshots:
|
||||
|
||||
react-merge-refs@1.1.0: {}
|
||||
|
||||
react-native-awesome-slider@2.9.0(react-native-gesture-handler@2.23.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-reanimated@3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
react-native-gesture-handler: 2.23.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-reanimated: 3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
|
||||
react-native-bouncy-checkbox@4.1.2:
|
||||
dependencies:
|
||||
'@freakycoder/react-native-bounceable': 1.0.3
|
||||
@@ -29300,6 +29361,13 @@ snapshots:
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
warn-once: 0.1.1
|
||||
|
||||
react-native-sheet-transitions@0.1.2(patch_hash=xmkq4ssu3mefxtr2e65xl27hxi)(react-native-gesture-handler@2.23.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-reanimated@3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
react-native-gesture-handler: 2.23.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
react-native-reanimated: 3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
|
||||
|
||||
react-native-svg@15.11.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1):
|
||||
dependencies:
|
||||
css-select: 5.1.0
|
||||
@@ -29308,6 +29376,11 @@ snapshots:
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
warn-once: 0.1.1
|
||||
|
||||
react-native-track-player@4.1.1(patch_hash=ul2ym56izpf2mkfucn2nug6afu)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
|
||||
react-native-uikit-colors@0.2.0(fe3lmks7adwcuf5fbpjna3wt2m):
|
||||
dependencies:
|
||||
nativewind: 4.1.23(react-native-reanimated@3.16.7(@babel/core@7.26.9)(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-safe-area-context@5.2.0(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-svg@15.11.1(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)(tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.13.4)(typescript@5.7.3)))
|
||||
@@ -29315,6 +29388,11 @@ snapshots:
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
tailwindcss: 3.4.16(ts-node@10.9.2(@types/node@22.13.4)(typescript@5.7.3))
|
||||
|
||||
react-native-volume-manager@2.0.8(react-native@0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1):
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
react-native: 0.77.0(@babel/core@7.26.9)(@babel/preset-env@7.26.9(@babel/core@7.26.9))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
|
||||
|
||||
react-native-web@0.19.13(encoding@0.1.13)(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
|
||||
dependencies:
|
||||
'@babel/runtime': 7.26.9
|
||||
|
||||
Reference in New Issue
Block a user