This commit is contained in:
Jorrin
2024-02-13 23:05:46 +01:00
parent 85372e5e5c
commit a4f4f6822d

View File

@@ -1,5 +1,6 @@
import type { TouchableOpacity } from "react-native"; import type { TouchableOpacity } from "react-native";
import React from "react"; import React from "react";
import { View } from "react-native";
import { TouchableWithoutFeedback } from "react-native-gesture-handler"; import { TouchableWithoutFeedback } from "react-native-gesture-handler";
import { usePlayerStore } from "~/stores/player/store"; import { usePlayerStore } from "~/stores/player/store";
@@ -17,7 +18,7 @@ export const Controls = ({ children, className }: ControlsProps) => {
className={className} className={className}
onPress={() => setIsIdle(false)} onPress={() => setIsIdle(false)}
> >
{!idle && children} <View>{!idle && children}</View>
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
); );
}; };