chargeTypeModelArrDly
is my Array in React js, which will iterate for the 6 time and create 6 textfield. I am unable to get unique value with unique Id which will help me to do calculation in onEndEditing(e)
with unique Id
.
please find the code below:
_.each(this.props.chargeTypeModelArrDly,(chargeTypeModelArrDly,index))=>
{ <ListItem avatar key={index}>
<TextInput
style={{width:50,height: 40, borderColor:'gray',borderWidth: 1}}
defaultValue ={"0"}
onEndEditing={(e) => this.onEndEditing(e) }
keyboardType={'numeric'}
/>
</ListItem>
}