Skip to content

Instantly share code, notes, and snippets.

@alyssoncm
Created December 30, 2020 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alyssoncm/c451d08f2f6649a70973d64ef5f6b2ff to your computer and use it in GitHub Desktop.
Save alyssoncm/c451d08f2f6649a70973d64ef5f6b2ff to your computer and use it in GitHub Desktop.
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