23 lines
464 B
JavaScript
23 lines
464 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import AppTextInput from '../../app-text-input'
|
|
|
|
import styles from '../../../styles'
|
|
|
|
export default function PasswordField(props) {
|
|
return (
|
|
<AppTextInput
|
|
style={ styles.passwordField }
|
|
secureTextEntry
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
PasswordField.propTypes = {
|
|
placeholder: PropTypes.string,
|
|
value: PropTypes.string,
|
|
onChangeText: PropTypes.func,
|
|
autoFocus: PropTypes.bool
|
|
}
|