refactor: default gesture controls to off on android bc android is funny

This commit is contained in:
Adrian Castro
2024-03-25 18:48:49 +01:00
parent 784628952a
commit cd0b302602
3 changed files with 17 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import type { StateStorage } from "zustand/middleware";
import { Platform } from "react-native";
import { MMKV } from "react-native-mmkv";
import { create } from "zustand";
import { createJSONStorage, persist } from "zustand/middleware";
@@ -53,7 +54,11 @@ export const usePlayerSettingsStore = create<
>(
persist(
(set) => ({
gestureControls: true,
gestureControls: Platform.select({
ios: true,
android: false,
default: true,
}),
setGestureControls: (enabled: boolean) =>
set({ gestureControls: enabled }),
}),