Skip to content
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

Merged
merged 2 commits into from
Mar 24, 2024
Merged

Adding login and sign up pages #25

merged 2 commits into from
Mar 24, 2024

Conversation

2905Abhishek
Copy link
Contributor

No description provided.

Copy link
Owner

@Naveen-g09 Naveen-g09 left a 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}`);
Copy link
Owner

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')} />
Copy link
Owner

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);
};
Copy link
Owner

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}>
Copy link
Owner

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"}

@Naveen-g09 Naveen-g09 merged commit 99abc1b into dev Mar 24, 2024
1 check failed
@Naveen-g09 Naveen-g09 deleted the ui branch March 24, 2024 15:35
@Naveen-g09 Naveen-g09 mentioned this pull request Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants