Skip to content

Commit bd7b5ad

Browse files
fix(mobile): resolve row ripple from shared theme classes
1 parent 7bc38ba commit bd7b5ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/mobile/src/components/ListRow.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { Platform } from "react-native";
22

3-
import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
3+
import { useResolveClassNames } from "uniwind";
44
import { SymbolView } from "./AppSymbol";
55
import { ListRowLayout, type ListRowContentProps } from "./ListRowLayout";
66
import { RowPressable } from "./RowPressable";
77

88
/** A navigation row owns its look; callers supply content and destination behavior. */
99
export function ListRow(props: ListRowContentProps & { readonly onPress: () => void }) {
10-
const { themeVariables } = useAppearancePreferences();
10+
const rippleStyle = useResolveClassNames("bg-subtle-strong");
1111
return (
1212
<RowPressable
1313
accessibilityRole="button"
1414
accessibilityLabel={[props.label, props.description, props.detail].filter(Boolean).join(", ")}
1515
accessibilityState={{ disabled: Boolean(props.disabled) }}
1616
disabled={props.disabled}
1717
onPress={props.onPress}
18-
android_ripple={{ color: themeVariables["--color-subtle-strong"] }}
18+
android_ripple={{ color: rippleStyle.backgroundColor }}
1919
unstable_pressDelay={Platform.OS === "android" ? 50 : undefined}
2020
className="bg-grouped-card"
2121
>

0 commit comments

Comments
 (0)