The HomeScreen component serves as the main entrypoint for the home tab. It implements a complex UI featuring:
- Animated Header: A header that responds to scroll position via
headerAnimatedProps. - Parallax/Tilt Effects: Uses
useDeviceMotion to apply transform styles to featured content, categories, and buttons. - Dynamic Tab Visibility: Automatically hides or shows tabs based on scroll direction using a
SLIDE_ACTIVATION_POINT (set to 90) and a SCROLL_THRESHOLD (set to 4). - VisionOS Support: Wraps content in a
VisionContainer and adjusts padding if isVisionOS is true. - Content Rendering: Displays a
FeaturedContent section followed by a list of MovieList or GameList components based on the rowTitle in the movie data.
To use this screen, it is typically rendered via expo-router as the / or /index route within the (tabs) layout.