From fe7d3bdd9a453029943e443d643f3ec4f2a0640f Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Mon, 30 Jun 2025 15:23:31 +1000 Subject: [PATCH] feat: read username and password inside the login page --- app/login.tsx | 14 +++++-- package-lock.json | 93 +++++++++++++++++++++++++++++++++++++++++------ package.json | 5 ++- 3 files changed, 95 insertions(+), 17 deletions(-) diff --git a/app/login.tsx b/app/login.tsx index 9db785c..efc0ce7 100644 --- a/app/login.tsx +++ b/app/login.tsx @@ -1,6 +1,14 @@ import { TextInput, View, StyleSheet, Button } from 'react-native' +import { useState } from 'react' export default function LoginView() { + const [email, setEmail] = useState('') + const [password, setPassword] = useState('') + + function login() { + console.log(email, password) + } + const styles = StyleSheet.create({ container: { padding: 16, @@ -14,8 +22,8 @@ export default function LoginView() { } }) return - - -