import React from 'react'; import { View, Text } from 'react-native'; import PropTypes from 'prop-types'; 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'; const Input = ({ children, onPress, theme, loading, inputStyle, placeholder, disabled }) => ( {placeholder ? {placeholder} : children} { loading ? : } ); Input.propTypes = { children: PropTypes.node, onPress: PropTypes.func, theme: PropTypes.string, inputStyle: PropTypes.object, disabled: PropTypes.bool, placeholder: PropTypes.string, loading: PropTypes.bool }; export default Input;