Goal
Fix the broken navigation tree and ensure the app follows the "file-based routing" standard.
Instructions
- •Layout Integrity:
- •Ensure
app/_layout.tsxhas a properdefault export. - •Implement the
SlotorStackprovider.
- •Ensure
- •Navigation Upgrade:
- •Identify legacy
navigation.navigate()calls. - •Replace with
router.push()orrouter.replace()fromexpo-router.
- •Identify legacy
- •Modularization:
- •Move business logic (API calls, data fetching) out of
app/(tabs)and intosrc/servicesorsrc/hooks.
- •Move business logic (API calls, data fetching) out of
- •Tab Cleanup: Remove the "Wallet" tab from
app/(tabs)/_layout.tsx.
Constraints
- •No
useEffectfor navigation if aLinkcomponent can be used instead. - •All routes must be strictly typed.