Skip to content

Instantly share code, notes, and snippets.

@radiegtya
Created September 11, 2019 13:45
Show Gist options
  • Save radiegtya/165e1a4e54181faeb80a6482508b2242 to your computer and use it in GitHub Desktop.
Save radiegtya/165e1a4e54181faeb80a6482508b2242 to your computer and use it in GitHub Desktop.
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