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