Skip to content

Instantly share code, notes, and snippets.

@alyssoncm

alyssoncm/form.js

Created Dec 30, 2020
Embed
What would you like to do?
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