import React from 'react'; import { View } 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, open, theme, loading, inputStyle, disabled }) => ( open(true)} style={[{ backgroundColor: themes[theme].backgroundColor }, inputStyle]} background={Touchable.Ripple(themes[theme].bannerBackground)} disabled={disabled} > {children} { loading ? : } ); Input.propTypes = { children: PropTypes.node, open: PropTypes.func, theme: PropTypes.string, inputStyle: PropTypes.object, disabled: PropTypes.bool, loading: PropTypes.bool }; export default Input;