mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
Some checks failed
🤖 Android APK Build / 🏗️ Build Android APK (push) Has been cancelled
🤖 iOS IPA Build / 🏗️ Build iOS IPA (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🕒 Handle Stale Issues / 🗑️ Cleanup Stale Issues (push) Has been cancelled
23 lines
707 B
TypeScript
23 lines
707 B
TypeScript
import { Switch, View } from "react-native";
|
|
import { useSettings } from "@/utils/atoms/settings";
|
|
import { ListGroup } from "../list/ListGroup";
|
|
import { ListItem } from "../list/ListItem";
|
|
|
|
export const ChromecastSettings: React.FC = ({ ...props }) => {
|
|
const [settings, updateSettings] = useSettings();
|
|
return (
|
|
<View {...props}>
|
|
<ListGroup title={"Chromecast"}>
|
|
<ListItem title={"Enable H265 for Chromecast"}>
|
|
<Switch
|
|
value={settings.enableH265ForChromecast}
|
|
onValueChange={(enableH265ForChromecast) =>
|
|
updateSettings({ enableH265ForChromecast })
|
|
}
|
|
/>
|
|
</ListItem>
|
|
</ListGroup>
|
|
</View>
|
|
);
|
|
};
|