fix(mobile): keep the Android tab ripple static

The Android tab ripple followed the artwork tint, so every palette swap
sent a new ripple color. react-native-screens then rebuilt Material's item
backgrounds and cut off the ripple from the tap that triggered the swap.
Use a fixed ripple color so the existing ripple guard skips the reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
joshuafhigginsandClaude Opus 5.5 committed 2026-11-17 12:17:50 -05:00 Verified
1 parent 5dcbe6b9c5
commit 5df2a90266
1 file changed
+3 -1
+3 -1
View File
@@ -127,7 +127,9 @@ function TabsContent() {
tintColor={tabColors.tintColor}
minimizeBehavior="onScrollDown"
{...(Platform.OS === "android"
? { disableIndicator: true, rippleColor: tabColors.tintColor }
? // A new ripple color rebuilds Material's item backgrounds and
// cuts off the in-flight ripple, so it must not follow the palette.
{ disableIndicator: true, rippleColor: appleMusic.tabInactive }
: {})}
>
{Platform.OS === "ios" && !tabletLayout && showBottomAccessory ? (