Created
September 11, 2019 13:45
-
-
Save radiegtya/165e1a4e54181faeb80a6482508b2242 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 options = { | |
image: { | |
url: 'https://i.ibb.co/TBzjW9h/circle-2x.png', | |
height: 190, | |
width: 190 | |
}, | |
socialButtons: [ | |
{ | |
name: 'twitter', | |
borderColor:'#3741A8', | |
color: '#3741A8', | |
onPress: () => { | |
alert('twitter') | |
} | |
}, | |
{ | |
name: 'google', | |
borderColor:'#3741A8', | |
color: '#3741A8', | |
onPress: () => { | |
alert('google') | |
} | |
}, | |
{ | |
name: 'facebook', | |
borderColor:'#3741A8', | |
color: '#3741A8', | |
onPress: () => { | |
alert('facebook') | |
} | |
} | |
], | |
fields: [ | |
{ | |
label: 'Email', | |
validation: { | |
msgRequired: 'Required !', | |
message: 'Email Not Valid!' | |
} | |
}, | |
{ | |
label: 'Password', | |
validation: { | |
msgRequired: 'Required !', | |
minChr: 6, | |
message: 'Password must min 6 charcter' | |
} | |
}, | |
], | |
btnSubmit: { | |
label: 'LOGIN', | |
onPress: (value) => { | |
this.setState({email: value.email, password: value.password}) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment