react-native-textinput-effects icon indicating copy to clipboard operation
react-native-textinput-effects copied to clipboard

onChangeText

Open CuongTran69 opened this issue 7 years ago • 2 comments

How I can use event onChangeText() :(

CuongTran69 avatar Feb 28 '19 08:02 CuongTran69

There is a property on change you can see the below code for reference

this.state={
ac_password : null
}
  <Fumi
  style={{width:'100%'}}
    label={'Password'}
    iconClass={FontAwesomeIcon}
    iconName={'lock'}
    iconColor={'#FF456D'}
    iconSize={20}
    iconWidth={40}
    inputPadding={16}
    onChangeText={(ac_password) => { this.setState({ac_password}) }} // here updating state on very chnage
/>

edgesinghkataria avatar Mar 19 '19 10:03 edgesinghkataria

You can directly use react-native TextInput props @CuongTran69, just like @simransinghkataria has posted.

You can read more about it in react-native documentation: https://twitter.com/davidwalshblog/status/1109993816365428736

halilb avatar Mar 25 '19 09:03 halilb