/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { forwardRef } from 'react'; import { TextInput, type TextInputProps } from 'react-native'; import { CrossedMethods, inlineStyle, useTheme } from '@crossed/styled'; export interface InputPartProps extends Omit { style?: CrossedMethods; value?: string; label?: string; } const styles = inlineStyle(({ colors }) => ({ base: { borderWidth: 0, backgroundColor: 'transparent', maxWidth: 64, textAlign: 'center', color: colors.text.primary, }, web: { ':focus': { outlineWidth: 0, }, ':focus-visible': { outlineWidth: 0, }, }, })); export const InputPart = forwardRef( ({ value, onChangeText, placeholder, onBlur, onFocus, id }, ref) => { const { colors } = useTheme(); return ( ); } );