-
-
Save calincrist/a40ddb5dce09773713bde422eefa82c1 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
// src/screens/Login.js | |
// …imports | |
const Login = () => { | |
const { navigate } = useNavigation(); | |
const [email, setEmail] = useState(''); | |
const [password, setPassword] = useState('') | |
const loginAction = async () => { | |
// validate inputs… | |
// api call for signing in… | |
navigate('SignedIn'); | |
await Analytics.onSignIn({ id: "1", email }) | |
} | |
return ( | |
// … | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment