First, great plug-in Brian! Thanks for creating this for NativeScript. Really like it.
As an extension, how could this plugin be extended to support "optional" entries between separators? As an example (and my current scenario), IP addresses. Mask would be:
999.999.999.999
And separate could be just a "space" resulting in a masked box that looks like:
. . .
A valid entry could be 192.168.100.100, completely fulfilling the mask. But with IP addresses, you might also have input like 10.10.1.1.
In its current form, it seems like it's difficult to "tap" directly in to another segment in the mask IF the previous mask is only partially completed. So...
10_.___.___.___
After typing 10, trying to tap in to the second segment will throw the cursor to the end of the text field. If you then tap and hold to refocus in another segment, the cursor will jump back to the first segment after typing another number. See the gif below for an illustration of the cursor behavior.

Not sure how hard it would be to change this behavior. Definitely an "advanced" scenario. I guess solving it would also open the door to supporting indeterminate length strings, like email addresses:
aaaa@aaaa.aaaa
Where each of the aaaa segments could be any length.
Thanks again for your contribution to the {N} community. Hope this idea helps inspire future iterations. :)
First, great plug-in Brian! Thanks for creating this for NativeScript. Really like it.
As an extension, how could this plugin be extended to support "optional" entries between separators? As an example (and my current scenario), IP addresses. Mask would be:
999.999.999.999And separate could be just a "space" resulting in a masked box that looks like:
. . .A valid entry could be
192.168.100.100, completely fulfilling the mask. But with IP addresses, you might also have input like10.10.1.1.In its current form, it seems like it's difficult to "tap" directly in to another segment in the mask IF the previous mask is only partially completed. So...
10_.___.___.___After typing
10, trying to tap in to the second segment will throw the cursor to the end of the text field. If you then tap and hold to refocus in another segment, the cursor will jump back to the first segment after typing another number. See the gif below for an illustration of the cursor behavior.Not sure how hard it would be to change this behavior. Definitely an "advanced" scenario. I guess solving it would also open the door to supporting indeterminate length strings, like email addresses:
aaaa@aaaa.aaaaWhere each of the
aaaasegments could be any length.Thanks again for your contribution to the {N} community. Hope this idea helps inspire future iterations. :)