import { Button, Host, Icon, LazyRow, Text } from '@expo/ui/jetpack-compose'; import { height } from '@expo/ui/jetpack-compose/modifiers'; import { StyleSheet, View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { KEYS } from './keys'; import { useAndroidColors } from './material'; import type { KeyRowProps } from './types'; const KEY_PADDING = { start: 14, end: 14, top: 0, bottom: 0 }; // Pill keys on a surface container band above the keyboard, Select filled while it is on. export function KeyRow({ scheme, editor, selectMode, onToggleSelect, canUndo, canRedo, }: KeyRowProps) { const colors = useAndroidColors(scheme); const safe = useSafeAreaInsets(); const keyColors = (on: boolean) => ({ containerColor: on ? colors.secondaryContainer : colors.surfaceContainerHigh, contentColor: on ? colors.onSecondaryContainer : colors.onSurface, }); return ( {KEYS.map((key) => ( ))} ); } const styles = StyleSheet.create({ row: { height: 56 }, host: { alignSelf: 'stretch' }, });