-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from crypgo23/ME-loginregister
Me loginregister
- Loading branch information
Showing
18 changed files
with
1,412 additions
and
260 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
> Why do I have a folder named ".expo" in my project? | ||
The ".expo" folder is created when an Expo project is started using "expo start" command. | ||
|
||
> What do the files contain? | ||
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds. | ||
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator. | ||
- "settings.json": contains the server configuration that is used to serve the application manifest. | ||
|
||
> Should I commit the ".expo" folder? | ||
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine. | ||
|
||
Upon project creation, the ".expo" folder is already added to your ".gitignore" file. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"hostType": "lan", | ||
"lanType": "ip", | ||
"dev": true, | ||
"minify": false, | ||
"urlRandomness": null, | ||
"https": false | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,84 @@ | ||
import React from "react"; | ||
import { Text, View } from "react-native"; | ||
import { Text, View, StyleSheet } from "react-native"; | ||
import { SvgXml } from "react-native-svg"; | ||
import setButton from "../assets/testHome/setButton.svg"; | ||
import getButton from "../assets/testHome/getButton.svg"; | ||
import { useNavigation } from "@react-navigation/native"; | ||
|
||
function HomePageTemp() { | ||
const navigation = useNavigation(); | ||
|
||
// Function to navigate to the "Test" screen | ||
const goToAllTransactions = () => { | ||
navigation.navigate("All Transactions"); // "Test" is the name of the screen in your Stack Navigator | ||
}; | ||
|
||
// Function to handle logout | ||
const handleLogout = () => { | ||
navigation.navigate("Login") | ||
// You may also want to navigate to the login screen or perform any other actions after signing out | ||
}; | ||
|
||
// Function to navigate to the "Test" screen | ||
const goToCreateTransactions = () => { | ||
navigation.navigate("Create Transaction"); // "Test" is the name of the screen in your Stack Navigator | ||
}; | ||
|
||
|
||
function Login() { | ||
return ( | ||
<View> | ||
<Text>Login Screen</Text> | ||
{/* Your content goes here */} | ||
<View style={styles.container}> | ||
<View style={styles.logoutContainer}> | ||
<Text style={styles.logout} onPress={handleLogout}>Log Out</Text> | ||
</View> | ||
<Text style={styles.title}>HOME</Text> | ||
<View style={styles.subcontainer}> | ||
<View style={styles.button}> | ||
<SvgXml xml={getButton} onPress={goToAllTransactions}/> | ||
</View> | ||
<View style={styles.button}> | ||
<SvgXml xml={setButton} onPress={goToCreateTransactions}/> | ||
</View> | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
export default Login; | ||
export default HomePageTemp; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
alignItems: "center", | ||
justifyContent: "center", | ||
position: 'relative', | ||
}, | ||
title: { | ||
fontSize: 40, | ||
fontWeight: 'bold', | ||
color: '#fff', | ||
marginBottom: 16, | ||
marginTop: '30%', | ||
textAlign: 'center', | ||
}, | ||
subcontainer: { | ||
flex: 1, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
flexDirection: 'column', | ||
}, | ||
button: { | ||
alignItems: "center", | ||
justifyContent: "center", | ||
marginVertical: "10%", | ||
}, | ||
logoutContainer: { | ||
position: 'absolute', | ||
top: 0, | ||
right: 0, | ||
padding: 16, | ||
}, | ||
logout: { | ||
fontSize: 17, | ||
color: '#fff', | ||
}, | ||
}) |
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
Oops, something went wrong.