expo init cool-cats
If using npm:
expo init cool-cats --npm
import React from 'react'; | |
const CreateUser = ({ createUser, createNewUser, state, handleChange }) => { | |
const { | |
name, | |
username, | |
email, | |
address: { | |
street, | |
suite, |
createNewUser = async (e, action) => { | |
e.preventDefault(); | |
const currentUsers = client.readQuery({ query: GET_ALL_USERS_QUERY }); | |
const id = currentUsers.users.length + 1; | |
await action({ | |
variables: { | |
input: { |
state = { | |
name: '', | |
username: '', | |
email: '', | |
address: { | |
street: '', | |
suite: '', | |
city: '', | |
zipcode: '', | |
geo: { |
const { | |
name, | |
username, | |
email, | |
address: { | |
street, | |
suite, | |
city, | |
zipcode, | |
geo: { lat, lng }, |
// from https://codepen.io/Evangogh/pen/VjaRQV | |
MktoForms2.loadForm("//app-ab06.marketo.com", "981-LQX-968", 3668); | |
MktoForms2.whenReady(function(form) { | |
form.onValidate(function(builtInValid) { | |
if (!builtInValid) return; | |
form.submittable(true); | |
var vals = form.vals(); | |
var invalidDomains = ["gmail.cm", "gmail.co", | |
"gmail.om", "yahoo.cm", "yahoo.co", "yahoo.om", |