mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro.local> Co-authored-by: Alex <111128610+Alexk2309@users.noreply.github.com> Co-authored-by: Simon-Eklundh <simon.eklundh@proton.me>
32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import { Platform, ScrollView, View } from "react-native";
|
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
import { AudioToggles } from "@/components/settings/AudioToggles";
|
|
import { MediaProvider } from "@/components/settings/MediaContext";
|
|
import { MpvSubtitleSettings } from "@/components/settings/MpvSubtitleSettings";
|
|
import { SubtitleToggles } from "@/components/settings/SubtitleToggles";
|
|
|
|
export default function AudioSubtitlesPage() {
|
|
const insets = useSafeAreaInsets();
|
|
|
|
return (
|
|
<ScrollView
|
|
contentInsetAdjustmentBehavior='automatic'
|
|
contentContainerStyle={{
|
|
paddingLeft: insets.left,
|
|
paddingRight: insets.right,
|
|
}}
|
|
>
|
|
<View
|
|
className='p-4 flex flex-col'
|
|
style={{ paddingTop: Platform.OS === "android" ? 10 : 0 }}
|
|
>
|
|
<MediaProvider>
|
|
<AudioToggles className='mb-4' />
|
|
<SubtitleToggles className='mb-4' />
|
|
<MpvSubtitleSettings className='mb-4' />
|
|
</MediaProvider>
|
|
</View>
|
|
</ScrollView>
|
|
);
|
|
}
|