You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
876 B

import React from 'react';
import {View, TextInput} from 'react-native';
const TextInputContainer = ({placeholder, value, setValue, keyboardType}) => {
return (
<View
style={{
width: '100%',
height: 50,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#EAEAEA',
borderRadius: 12,
marginVertical: 12,
}}>
<TextInput
style={{
margin: 8,
padding: 6,
textAlign: 'center',
fontSize: 16,
color: '#333',
}}
multiline={true}
numberOfLines={1}
cursorColor={'#5568FE'}
placeholder={placeholder}
placeholderTextColor={'#9A9FA5'}
onChangeText={setValue}
value={value}
keyboardType={keyboardType}
/>
</View>
);
};
export default TextInputContainer;