1import { Platform } from "react-native";
2
3import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
4import { DEFAULT_BASE_FONT_SIZE } from "../lib/appearancePreferences";
5import { resolveAndroidControlSizing } from "../lib/androidControlSizing";
6
7/** Shared layouts keep their existing dimensions on iOS. */
8export function useAndroidControlSizing() {
9 const { appearance } = useAppearancePreferences();
10 return resolveAndroidControlSizing(
11 Platform.OS === "android" ? appearance.baseFontSize : DEFAULT_BASE_FONT_SIZE,
12 );
13}