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