mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:43:25 +00:00
refactor: default gesture controls to off on android bc android is funny
This commit is contained in:
@@ -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 }),
|
||||
}),
|
||||
|
Reference in New Issue
Block a user