Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions .expo/README.md
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.
3 changes: 3 additions & 0 deletions .expo/devices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"devices": []
}
9 changes: 9 additions & 0 deletions .expo/packager-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"expoServerPort": 19000,
"packagerPort": 19000,
"packagerPid": null,
"expoServerNgrokUrl": null,
"packagerNgrokUrl": null,
"ngrokPid": null,
"webpackServerPort": null
}
10 changes: 10 additions & 0 deletions .expo/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hostType": "lan",
"lanType": "ip",
"dev": true,
"minify": false,
"urlRandomness": null,
"https": false,
"scheme": null,
"devClient": false
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
64 changes: 64 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import 'react-native-gesture-handler';
import * as React from 'react';
import { View, Dimensions,StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import TransactionOption from "./Scrns/TransactionOption"
import Camera from "./Scrns/Camera"
import CreateTransaction from './Scrns/CreateTransaction';
import Login from './Scrns/Login';
import AllDebts from './Scrns/AllDebts';
import Create from './Scrns/Create';
import CreateGroup from './Scrns/CreateGroup';
import Home from './Scrns/Home';
import Signup from './Scrns/Signup';
import GroupPage from './Scrns/GroupPage';
import Profile from './Scrns/Profile';
import PayingTransaction from './Scrns/PayingTransaction';
import JoinGroup from './Scrns/JoinGroup';
import GroupOption from './Scrns/GroupOption';
import UserProfile from './Scrns/UserProfile';
import About from './Scrns/About';
import Sidebar from './Scrns/Sidebar';
import Summary from './Scrns/Summary';
import AllTransactions from './Scrns/AllTransactions';
import NameTransaction from './Scrns/NameTransaction';

const Stack = createNativeStackNavigator();

export default function App() {
return (<>
<StatusBar barStyle={"dark-content"} backgroundColor="white"/>
<View style={{height:Dimensions.get("window").height}}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Login"
screenOptions={{
headerShown: false,gestureEnabled:false}

}
>
<Stack.Screen name="Signup" component={Signup}/>
<Stack.Screen name="Login" component={Login}/>
<Stack.Screen name="Home" component={Home}/>
<Stack.Screen name="Create" component={Create}/>
<Stack.Screen name="GroupPage" component={GroupPage}/>
<Stack.Screen name="CreateGroup" component={CreateGroup}/>
<Stack.Screen name="AllDebts" component={AllDebts}/>
<Stack.Screen name="Profile" component={Profile}/>
<Stack.Screen name="TransactionOption" component={TransactionOption}/>
<Stack.Screen name="Camera" component={Camera}/>
<Stack.Screen name="CreateTransaction" component={CreateTransaction}/>
<Stack.Screen name="PayingTransaction" component={PayingTransaction}/>
<Stack.Screen name="JoinGroup" component={JoinGroup}/>
<Stack.Screen name="GroupOption" component={GroupOption}/>
<Stack.Screen name="UserProfile" component={UserProfile}/>
<Stack.Screen name="About" component={About}/>
<Stack.Screen name="Sidebar" component={Sidebar}/>
<Stack.Screen name="Summary" component={Summary}/>
<Stack.Screen name="AllTransactions" component={AllTransactions}/>
<Stack.Screen name="NameTransaction" component={NameTransaction}/>
</Stack.Navigator>
</NavigationContainer>
</View>
</> );
}
170 changes: 170 additions & 0 deletions AppData.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
var userId;
var groudId;
var receiptData = {};
var users = {};
var userInfo = {};
var userData = {};
var userIds = {};
var groups = {};
var groupInfo = {};
var groupDebts = {};
var groupTransactiions={};
var receiptURL;
var imageURI;
var userSpending = [];
var total;
var transactionName;
var transactionDescription;
var pid = {}
export function setUserId(id){
this.userId = id
}

export function getUserId(){
return this.userId;
}

export function setCurrentProfileView(id){
this.pid = id;
}

export function getCurrentProfileView(){
return this.pid;
}

export function setGroupId(id){
this.groudId = id
}

export function getGroupId(){
return this.groudId;
}

export function setGroupsData(groups){
this.groups = groups
}

export function getGroupData(){
return this.groups;
}

export function setGroupInfo(id){
var result = getGroupData().find(group=>group.id==id);
console.log(result);
this.groupInfo = result;
}

export function getGroupInfo(){
return this.groupInfo;
}


export function setReceiptData(data){
this.receiptData = data
}

export function getReceiptData(){
return this.receiptData;
}

export function setUsers(users){
console.log(users);
setUsersIds(users);
this.users = users;
}

export function getUsers(){
return this.users;
}

export function setUserInfo(){
var result = getUsers().find(user=>user.id==getUserId());
this.userInfo = result;
}

export function getUserInfo(){
return this.userInfo;
}


export function setUsersData(data){
this.userData= data;
}

export function getUserData(){
return this.userData;
}



export function setUsersIds(users){
this.userIds = users.map(a => a.id);
}

export function getUsersIds(){
return this.userIds;
}

export function setReceiptURL(url){
this.receiptURL = url
}

export function getReceiptURL(){
return this.receiptURL;
}

export function setImageURI(url){
this.imageURI = url
}

export function getImageURI(){
return this.imageURI;
}



export function setGroupDebtsAll(debts){
this.groupDebts = debts;
}

export function GetGroupDebtsAll(){
return this.groupDebts;
}

export function setGroupTransactionsAll(transactions){
this.groupTransactions = transactions;
}

export function GetGroupTransactionsAll(){
return this.groupTransactions;
}

export function setUserSpending(userSpending){
this.userSpending = userSpending;
}
export function getUserSpending(){
return this.userSpending;
}

export function setTransactionTotal(total){
this.total = total;
}

export function getTransactionTotal(){
return this.total;
}

export function setTransactionName(transactionName){
this.transactionName = transactionName;
}
export function getTransactionName(){
return this.transactionName;
}

export function setTransactionDescription(description){
this.transactionDescription = description;
}

export function getTransactionDescription(){
return this.transactionDescription;
}
15 changes: 15 additions & 0 deletions Firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { initializeApp } from "firebase/app";
import { getDatabase } from "firebase/database";
import firebase from 'firebase/app';
import 'firebase/firestore';
const firebaseConfig = {
apiKey: "AIzaSyDELoE8JW8XKCatY9HnoarpNkY1LtiDLE8",
authDomain: "split-cst499.firebaseapp.com",
projectId: "split-cst499",
storageBucket: "split-cst499.appspot.com",
messagingSenderId: "376800778250",
appId: "1:376800778250:web:a574b4302acb30587ae7f3",
measurementId: "G-K6N4WZ0Z4C"
};
export const app = initializeApp(firebaseConfig);
export const database = getDatabase(app);
1 change: 0 additions & 1 deletion README.md

This file was deleted.

Loading