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