refactor(App, navigation): migrate to Expo Router and clean up navigation structure
- Updated App entry point to utilize Expo Router, simplifying the navigation setup. - Removed legacy navigation components and services to streamline the codebase. - Adjusted package.json to reflect the new entry point and updated dependencies for compatibility. - Enhanced overall application structure by consolidating navigation logic and improving maintainability.
This commit is contained in:
17
app/(app)/(tabs)/schedule/_layout.tsx
Normal file
17
app/(app)/(tabs)/schedule/_layout.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Stack } from 'expo-router';
|
||||
|
||||
export default function ScheduleStackLayout() {
|
||||
return (
|
||||
<Stack screenOptions={{ headerShown: false }}>
|
||||
<Stack.Screen name="index" />
|
||||
<Stack.Screen
|
||||
name="course"
|
||||
options={{
|
||||
headerShown: false,
|
||||
presentation: 'transparentModal',
|
||||
animation: 'fade',
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
5
app/(app)/(tabs)/schedule/course.tsx
Normal file
5
app/(app)/(tabs)/schedule/course.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { CourseDetailScreen } from '../../../../src/screens/schedule';
|
||||
|
||||
export default function CourseDetailRoute() {
|
||||
return <CourseDetailScreen />;
|
||||
}
|
||||
5
app/(app)/(tabs)/schedule/index.tsx
Normal file
5
app/(app)/(tabs)/schedule/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ScheduleScreen } from '../../../../src/screens/schedule';
|
||||
|
||||
export default function ScheduleRoute() {
|
||||
return <ScheduleScreen />;
|
||||
}
|
||||
Reference in New Issue
Block a user