mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:33:26 +00:00
15 lines
322 B
TypeScript
15 lines
322 B
TypeScript
import { useState } from "react";
|
|
import { useSharedValue } from "react-native-reanimated";
|
|
|
|
export const useVolume = () => {
|
|
const [showVolumeOverlay, setShowVolumeOverlay] = useState(false);
|
|
|
|
const volume = useSharedValue(1);
|
|
|
|
return {
|
|
showVolumeOverlay,
|
|
setShowVolumeOverlay,
|
|
volume,
|
|
} as const;
|
|
};
|