mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
23 lines
804 B
TypeScript
23 lines
804 B
TypeScript
import React, { useState } from "react";
|
|
import { Text, View } from "react-native";
|
|
import { Switch } from "react-native-paper";
|
|
|
|
import ScreenLayout from "~/components/layout/ScreenLayout";
|
|
|
|
export default function SettingsScreen() {
|
|
const [isSwitchOn, setIsSwitchOn] = useState(true);
|
|
const onToggleSwitch = () => setIsSwitchOn(!isSwitchOn);
|
|
|
|
return (
|
|
<ScreenLayout title="Settings">
|
|
<View className="p-4">
|
|
<Text className="mb-4 text-lg font-bold text-white">Player</Text>
|
|
<View className="flex-row items-center justify-between rounded-lg border border-white px-4 py-2">
|
|
<Text className="text-md text-white">Gesture Controls</Text>
|
|
<Switch value={isSwitchOn} onValueChange={onToggleSwitch} />
|
|
</View>
|
|
</View>
|
|
</ScreenLayout>
|
|
);
|
|
}
|