Created
December 30, 2020 17:36
-
-
Save alyssoncm/c451d08f2f6649a70973d64ef5f6b2ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Form = [ | |
{ | |
slug: 'textinput1', | |
label: 'Simple Textual Input', | |
props: { | |
placeholder: 'Edit me!' | |
} | |
}, | |
{ | |
slug: 'mailaddress', | |
label: 'E-mail Adress', | |
props: { | |
keyboardType: 'email-address' | |
} | |
}, | |
{ | |
slug: 'phonenumber', | |
label: 'Phone Number', | |
props: { | |
keyboardType: 'phone-pad', | |
} | |
}, | |
{ | |
slug: 'decimalinput', | |
label: 'Decimal Input', | |
props: { | |
keyboardType: 'decimal-pad', | |
} | |
}, | |
{ | |
slug: 'maskedphonenumber', | |
label: 'Masked Phone Number', | |
props: { | |
keyboardType: 'phone-pad', | |
mask: "+1 ([000]) [000] [00] [00]" | |
} | |
}, | |
{ | |
slug: 'creditcard', | |
label: 'Masked Credit Card', | |
props: { | |
keyboardType: 'numeric', | |
mask: "[0000] [0000] [0000] [0000]" | |
} | |
}, | |
{ | |
slug: 'price', | |
label: 'Masked Price', | |
props: { | |
keyboardType: 'numeric', | |
mask: "$[999990],[99]" | |
} | |
}, | |
{ | |
slug: 'secureinput', | |
label: 'Password Secure', | |
props: { | |
secureTextEntry: true | |
} | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment