mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-18 14:57:30 +08:00
34 lines
848 B
TypeScript
34 lines
848 B
TypeScript
import React from "react";
|
|
import { View, Text, StyleSheet } from "react-native";
|
|
import { useLocalSearchParams } from "expo-router";
|
|
import { ThemedView } from "@/components/ThemedView";
|
|
import { ThemedText } from "@/components/ThemedText";
|
|
|
|
export default function DetailScreen() {
|
|
const { source, id } = useLocalSearchParams();
|
|
|
|
return (
|
|
<ThemedView style={styles.container}>
|
|
<ThemedText type="title">Detail Page</ThemedText>
|
|
<View style={styles.separator} />
|
|
<ThemedText>Source: {source}</ThemedText>
|
|
<ThemedText>ID: {id}</ThemedText>
|
|
</ThemedView>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
padding: 20,
|
|
},
|
|
separator: {
|
|
marginVertical: 30,
|
|
height: 1,
|
|
width: "80%",
|
|
backgroundColor: "#666",
|
|
},
|
|
});
|