mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
refactor to tamagui
This commit is contained in:
@@ -6,9 +6,9 @@ export const usePlaybackSpeed = () => {
|
||||
const videoRef = usePlayerStore((state) => state.videoRef);
|
||||
|
||||
const changePlaybackSpeed = useCallback(
|
||||
(newValue: number) => {
|
||||
async (newValue: number) => {
|
||||
if (videoRef) {
|
||||
void videoRef.setRateAsync(newValue, true);
|
||||
await videoRef.setRateAsync(newValue, true);
|
||||
}
|
||||
},
|
||||
[videoRef],
|
||||
|
Reference in New Issue
Block a user