import { StyleSheet, ScrollView } from 'react-native'; import { Stack, useRouter } from 'expo-router'; import { ThemedText, ThemedView } from '@/components'; /** * 测试页面 * * 这是一个独立的业务页面示例,不包含底部 tabs * * 特点: * - 带有返回按钮的 header * - 不包含底部导航栏 * - 可以作为业务页面的模板 */ export default function TestPage() { const router = useRouter(); return ( <> {/* 配置页面 header */} 测试页面 这是一个独立的业务页面示例,展示了如何创建不包含底部 tabs 的页面。 页面特点 ✅ 带有返回按钮的 header ✅ 不包含底部导航栏 ✅ 支持主题切换 ✅ 可以作为业务页面模板 使用场景 • 详情页面 • 表单页面 • 设置页面 • 其他业务页面 路由说明 文件路径: app/test-page.tsx 访问路径: /test-page 跳转方式: router.push('/test-page') 💡 提示 对于复杂的业务页面,建议在 screens/ 目录下创建独立的组件, 然后在 app/ 目录下的路由文件中引用。 ); } const styles = StyleSheet.create({ container: { flex: 1, }, scrollView: { flex: 1, }, content: { padding: 20, }, title: { marginBottom: 16, }, description: { marginBottom: 24, lineHeight: 24, }, section: { marginBottom: 24, }, item: { marginTop: 8, marginLeft: 8, lineHeight: 24, }, infoBox: { padding: 16, borderRadius: 8, backgroundColor: 'rgba(0, 122, 255, 0.1)', marginTop: 8, }, infoText: { marginTop: 8, lineHeight: 22, }, });