Files
Folo/apps/mobile/native/expo-module.config.json
T
grtsinry43 ad3ac4926a feat(mobile): implement custom tab bar and item pressable components on android native (#3613)
* feat(mobile): implement custom tab bar and item pressable components on android native

Adds native Android implementations for custom UI components previously available on iOS:

- **Custom Tab Bar:**
    - Implements `TabBarRootView` using `ViewPager2` and a custom `CustomTabBarView` (LinearLayout) to host RN-rendered tab items (`TabBarPortalView`).
    - Provides `TabScreenView` as a container for page content within Fragments managed by `TabBarPagerAdapter`.
    - Includes `TabBarModule`, `TabScreenModule`, and `TabBarPortalModule` for Expo autolinking and JS bridging (props: `selectedIndex`, event: `onTabIndexChange`, function: `switchTab`).
    - This approach mirrors the iOS version by avoiding the native `TabLayout` and allowing full customization of the tab bar via React Native components.

- **Item Pressable:**
    - Implements `ItemPressableView` extending `ExpoView`.
    * Provides native touch feedback using Android's foreground ripple (`selectableItemBackground`) by default.
    * Includes a prop `touchHighlight` to enable/disable feedback.
    * Fires `onItemPress` event on click/tap.
    * Includes `ItemPressableModule` for Expo integration.

* fix(mobile): Adjust content view `padding` to prevent overlap with Bottom Bar

* feat(mobile): implement native tab bar components and improve tab switching logic
2025-05-06 16:00:03 +08:00

28 lines
717 B
JSON

{
"platforms": ["apple", "android"],
"apple": {
"modules": [
"SharedWebViewModule",
"HelperModule",
"ToasterModule",
"AppleIntelligenceGlowEffectModule",
"FollowNative.GaleriaModule",
"GaleriaAccessoryModule",
"TabBarModule",
"TabScreenModule",
"TabBarPortalModule",
"EnhancePagerViewModule",
"EnhancePageViewModule",
"ItemPressableModule"
]
},
"android": {
"modules": [
"expo.modules.follownative.tabbar.TabBarModule",
"expo.modules.follownative.tabbar.TabScreenModule",
"expo.modules.follownative.tabbar.TabBarPortalModule",
"expo.modules.follownative.itempressable.ItemPressableModule"
]
}
}