UNPKG

@ffsm/native-ui

Version:

UI Components for React Native

19 lines (18 loc) 759 B
import { ReactNode } from 'react'; import { NativeSyntheticEvent, StyleProp, TextInput, TextInputProps, TextStyle, ViewStyle } from 'react-native'; type BaseProps = Omit<TextInputProps, 'onChange' | 'secureTextEntry' | 'editable'>; export interface InputProps extends BaseProps { leftSection?: ReactNode; rightSection?: ReactNode; name?: string; onChange?(e: NativeSyntheticEvent<TextInput>): void; type?: 'text' | 'password'; disabled?: boolean; styles?: { leftSection?: StyleProp<ViewStyle>; rightSection?: StyleProp<ViewStyle>; input?: StyleProp<TextStyle>; }; } export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<TextInput>>; export {};