import * as React from 'react'; import { View, TextInput } from 'react-native'; import AppText from '../LidoAppText/index.native'; import styles from './index.style'; interface LidoAppTextProps { style?: object; label?: string; labelText?: string; maxLength?: number; placeholder?: string; inputStyle?: object; keyboardType: any; onChangeText: () => void; onFocus: () => void; onBlur: () => void; editable?: boolean; labelStyle?: object; } export type Ref = TextInput; const TextBox = React.forwardRef((props, ref) => { const { style, label, labelText, maxLength, placeholder, inputStyle, keyboardType, onChangeText, onFocus, onBlur, editable = true, labelStyle = {}, ...restProps } = props; return ( {label ? {labelText} : null} ); }); export default TextBox;