import React from 'react'; import { RkButton, RkTextInput, RkText, RkStyleSheet, } from 'react-native-ui-kitten'; import { FontAwesome } from '../assets/icons'; export class PasswordTextInput extends React.Component { state = { hidden: true, }; onInputLabelPressed = () => { this.setState({ hidden: !this.state.hidden }); }; renderInputLabel = () => ( {FontAwesome.slashEye} ); render = () => ( ); } const styles = RkStyleSheet.create({ icon: { fontSize: 24, }, button: { right: 17, }, });