import React from 'react'; import { TextInput, KeyboardAvoidingView, StyleSheet } from 'react-native';
import Colors from '../constants/Colors';
const QaTextInput = ({ style, minWidth, maxWidth, placeholder }) => { const input = { height: 35, minWidth: minWidth, maxWidth: maxWidth, borderWidth: 1, borderColor: Colors.input, backgroundColor: Colors.input };
return (
<KeyboardAvoidingView
behavior="position"
keyboardVerticalOffset="100"
enabled>
<TextInput
placeholder={placeholder}
autoFocus={true}
showSoftInputOnFocus={true}
style={input}
/>
</KeyboardAvoidingView>
);
};
export default QaTextInput;