Skip to content

Commit

Permalink
feat: settingsscreen placeholder stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
castdrian committed Mar 5, 2024
1 parent 0dbfd4c commit c65b2a8
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"react-native-css-interop": "^0.0.35",
"react-native-gesture-handler": "~2.14.1",
"react-native-modal": "^13.0.1",
"react-native-paper": "^5.12.3",
"react-native-progress": "^5.0.1",
"react-native-quick-base64": "^2.0.8",
"react-native-quick-crypto": "^0.6.1",
Expand Down
16 changes: 14 additions & 2 deletions apps/expo/src/app/(tabs)/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import React, { useState } from "react";
import { Text, View } from "react-native";
import { Switch } from "react-native-paper";

import ScreenLayout from "~/components/layout/ScreenLayout";
import { Text } from "~/components/ui/Text";

export default function SettingsScreen() {
const [isSwitchOn, setIsSwitchOn] = useState(true);
const onToggleSwitch = () => setIsSwitchOn(!isSwitchOn);

return (
<ScreenLayout title="Settings">
<Text>Settings tab</Text>
<View className="p-4">
<Text className="mb-4 text-lg font-bold text-gray-300">Player</Text>
<View className="flex-row items-center justify-between rounded-lg border border-gray-300 px-4 py-2">
<Text className="text-md text-gray-300">Gesture Controls</Text>
<Switch value={isSwitchOn} onValueChange={onToggleSwitch} />
</View>
</View>
</ScreenLayout>
);
}
2 changes: 1 addition & 1 deletion apps/expo/src/components/DownloadItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const DownloadItem: React.FC<DownloadItemProps> = ({

return (
<View className="mb-4 rounded-lg border border-gray-300 p-4">
<Text className="mb-2 text-lg text-gray-200">{filename}</Text>
<Text className="mb-2 text-lg text-gray-300">{filename}</Text>
<ProgressBar
progress={progress}
width={null}
Expand Down
76 changes: 76 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c65b2a8

Please sign in to comment.