import React, { FC, useState } from 'react'; import { TextInput, Text, View, InputModeOptions } from 'react-native'; import { styling } from './style'; type Props = { placeholder: string; onChange: (text: string) => void; header?: string; isPrivate?: boolean; inputMode?: InputModeOptions; }; const Input: FC = ({ onChange, placeholder, header, isPrivate, inputMode }) => { const [focused, setFocused] = useState(false); const styles = styling(focused); return ( {header ? {header} : null} setFocused(true)} onBlur={() => setFocused(false)} style={styles.wrapper} /> ); }; export default Input;