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