Wave Tube
Get Wave AI
Back

AI Summary

✅ Ready

Video Overview

Title and Author

  • Title: Liquid Glass Tabs with Expo Router v6 | Native Tabs
  • Author: Expo

Duration

  • Length: 10 minutes

Description Summary

The video introduces native tabs functionality in Expo Router v6 (SDK 54+), highlighting the transition from JavaScript tabs to fully native tabs on iOS and Android. Key features discussed include liquid glass tabs for iOS, Android popovers, scroll-to-top, badges, and dark mode support.

Content Breakdown

Introduction

  • Common Navigation Pattern: Native tabs are essential in mobile applications.
  • New Feature Announcement: Introduction of native tabs in Expo Router v6, moving away from JavaScript implementations.
  • Platform Compatibility:
    • iOS: Liquid glass effect on versions 26 and above.
    • Android: Native implementation with unique features.

"Unlike JavaScript tabs, this uses the system native tabs on both iOS and Android."

Key Features

  • Liquid Glass Effect: Aesthetic feature on iOS 26+.
  • Platform Specific Features:
    • iOS: Adapts to background and automatically handles dark mode.
    • Android: Popover on long press with screen name.

Installation and Setup

Creating a New App

  1. Start by creating a new Expo app using the command:
    expo init Native Tabs Video
    
  2. Navigate to the app directory and open in an IDE.

Version Check

  • Verify using package.json:
    • Expo SDK must be version 54 or above.
    • Expo Router must be version 6 or higher.
    • React Native Screens must be version 4.16.0 or above.

Implementing Native Tabs

Step-by-Step Implementation

  1. Remove Old Tabs: Delete existing JavaScript tab implementation.
  2. Import Native Tabs: Use the unstable API from expo router/unstable/native-tabs.
  3. Create Native Tabs: Replace JavaScript tabs with native ones, specifying labels and icons.

Icon Customization

  • iOS: Use SF house.fill for icons.
  • Android: Use drawable resources.

Adding Functionality

Additional Tabs

  • Duplicate Existing Tab: Create new tabs by duplicating existing configurations and changing labels/icons.

Tab Badges

  • Implementing badges is straightforward, enhancing user notifications.

Testing Native Features

  • Dark Mode: Test automatic adaptations to dark mode.
  • Scroll-to-Top Behavior: Explain automatic scrolling when reselecting the same tab.

Liquid Glass Tabs on iOS

  • Pre-requisites: Must compile with Xcode 26 for the liquid glass effect.
  • Development Build: Generate the iOS folder and run the app using:
    npx expo run:iOS
    

Tab Options and Customization

  • Disabling Features: Options to disable scroll-to-top and pop-to-top behaviors.

Limitations

  1. Android Restrictions:
    • Maximum of five tabs.
    • No support for custom images.
    • Nested tabs are unsupported.
    • Tab bar height measurement is not available.

"It's powerful, but not a drop-in replacement for the old JavaScript tabs."

Conclusion

  • Feedback Encouragement: Users are encouraged to share their feedback to help refine the API.
  • Call to Action: Viewers are reminded to like, subscribe, and explore additional resources linked in the description.

Final Thoughts

The video effectively demonstrates the transition to native tabs in Expo, emphasizing the benefits and aesthetic improvements, particularly with the liquid glass effect. The structured tutorial format aids viewers in understanding both the implementation steps and the potential limitations of this new feature. The encouragement for feedback indicates an ongoing development process, inviting the community to contribute to the feature's evolution.