-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding login and sign up pages #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor changes to see the app on screen
const Dashboard: React.FC = () => { | ||
const handleNavigation = (page: string) => { | ||
// Handle navigation logic here | ||
console.log(`Navigating to ${page}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redirect this page directly from
_layout.tsx that is you just need to change layout tsx one line
</View> | ||
|
||
<View style={styles.bottomButtons}> | ||
<Button title="Home" onPress={() => handleNavigation('Home')} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use of expo router will make it easier to navigate
// Add your login logic here | ||
console.log('Username:', username); | ||
console.log('Password:', password); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redirect this page directly from
_layout.tsx that is you just need to change layout tsx one line
make this initial route
value={password} | ||
secureTextEntry | ||
/> | ||
<TouchableOpacity style={styles.button} onPress={handleLogin}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently change onpress to href={"/(tabs)/main"}
No description provided.