import React from 'react'; import { Text, View } from 'react-native'; import Touchable from 'react-native-platform-touchable'; import { CustomIcon } from '../../CustomIcon'; import { themes } from '../../../lib/constants'; import ActivityIndicator from '../../ActivityIndicator'; import styles from './styles'; import { TSupportedThemes } from '../../../theme'; interface IInput { children?: JSX.Element; onPress: () => void; theme: TSupportedThemes; inputStyle?: object; disabled?: boolean | null; placeholder?: string; loading?: boolean; innerInputStyle?: object; } const Input = ({ children, onPress, theme, loading, inputStyle, placeholder, disabled, innerInputStyle }: IInput) => ( {placeholder ? {placeholder} : children} {loading ? ( ) : ( )} ); export default Input;