init: 初始化模板项目
This commit is contained in:
21
apps/expo/app/user/[id].tsx
Normal file
21
apps/expo/app/user/[id].tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { UserDetailScreen } from 'app/features/user/detail-screen'
|
||||
import { Stack } from 'expo-router'
|
||||
import { useParams } from 'solito/navigation'
|
||||
|
||||
export default function Screen() {
|
||||
const { id } = useParams()
|
||||
return (
|
||||
<>
|
||||
<Stack.Screen
|
||||
options={{
|
||||
title: 'User',
|
||||
presentation: 'modal',
|
||||
animation: 'slide_from_right',
|
||||
gestureEnabled: true,
|
||||
gestureDirection: 'horizontal',
|
||||
}}
|
||||
/>
|
||||
<UserDetailScreen id={id as string} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user