i need help adding 2 decimal place in after adding a value. for example if i add 100000 then it will convert it to 100,000.00 here is my current code.
<TextInput
placeholder='0'
keyboardType = 'decimal-pad'
underlineColorAndroid="transparent"
style={{
width:'90%',
fontSize: 20,
fontWeight:'400'}}
onChangeText={TextInputValue => this.onEnterText(TextInputValue)}
/>
onEnterText = (TextInputValue) =>{
if(TextInputValue.trim() != 0){
this.setState({TextInputValue : TextInputValue, ErrorStatus : true}) ;
}else{
this.setState({TextInputValue : TextInputValue, ErrorStatus : false}) ;
}
}