Limiting user input to a valid decimal number


how to do this in nativescript? or how to implement this code in nativescript core?

I want to limit input, for example if is one dot in textField text, dont change textfield text when user press on dot again


You will have to customize the delegate here

An example of customizing table view delegate is showcased here, you will have to follow similar steps to make it work for UITextFieldDelegate.