Skip to content
Snippets Groups Projects
Commit 82474195 authored by nolansc's avatar nolansc
Browse files

Recent

parent 44100a9c
No related branches found
No related tags found
No related merge requests found
Showing with 22606 additions and 8 deletions
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
# Metro
.metro-health-check*
# debug
npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
.DS_Store
*.pem
# local env files
.env*.local
# typescript
*.tsbuildinfo
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
{
"expo": {
"name": "CountdownTimerApp",
"slug": "CountdownTimerApp",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
CountdownTimerApp/assets/adaptive-icon.png

17.1 KiB

CountdownTimerApp/assets/favicon.png

1.43 KiB

CountdownTimerApp/assets/icon.png

21.9 KiB

CountdownTimerApp/assets/splash.png

46.2 KiB

module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
This diff is collapsed.
{
"name": "countdowntimerapp",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"expo": "~49.0.15",
"expo-status-bar": "~1.6.0",
"react": "18.2.0",
"react-native": "0.72.6"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
"private": true
}
......@@ -115,7 +115,6 @@ export default function createGroup() {
onCancel={handleDateCancel}
value = {countdown}
/>
<Button title="Fetch Items" onPress={fetchItems} />
<TouchableOpacity style={styles.button}>
<Button color='#fff' title="Create" onPress={() => insertItem(groupname, prize, username1, countdown)} />
</TouchableOpacity>
......
......@@ -86,7 +86,7 @@ export default function Page() {
router.replace('/profile');
}} />
</TouchableOpacity>
<Button title="Fetch Items" onPress={fetchItems} />
</View>
<ImageBackground
source={require('./color.png')}
......
import * as SQLite from 'expo-sqlite';
const db = SQLite.openDatabase('mydb14.db');
const db = SQLite.openDatabase('mydb66.db');
export default db;
\ No newline at end of file
......@@ -10,7 +10,7 @@ export default function editProfile() {
const { user, login, logout, name, changeName } = useAuth();
const profile = {
avatar: 'https://example.com/jane-doe-avatar.png',
avatar: 'https://www.bootdey.com/img/Content/avatar/avatar2.png',
}
const [fullname, setFullname] = useState("");
......@@ -82,7 +82,7 @@ export default function editProfile() {
<View style={styles.avatarContainer}>
<Image
style={styles.avatar}
source={{ uri: 'https://www.bootdey.com/img/Content/avatar/avatar3.png' }}
source={{ uri: 'https://www.bootdey.com/img/Content/avatar/avatar2.png' }}
/>
<TouchableOpacity style={styles.changeAvatarButton} onPress={() => {/* open image picker */ }}>
<Text style={styles.changeAvatarButtonText}>Change Avatar</Text>
......
......@@ -11,7 +11,7 @@ import { SimpleLineIcons } from "@expo/vector-icons";
export default function group() {
const { user, name, madeGroup} = useAuth();
const { user, name, madeGroup, changedHours} = useAuth();
const [isGroup, setIsGroup] = useState(false);
const [changed, setChanged] = useState(true);
......@@ -88,7 +88,7 @@ export default function group() {
useEffect(() => {
console.log(expiryDate);
getGroup();
},[user, name, madeGroup, changed]);
},[user, name, madeGroup, changed,changedHours]);
const getGroup = () => {
db.transaction(tx => {
......
......@@ -105,7 +105,6 @@ export default function logHours() {
<Button title="Submit Entry" onPress={() => submitEntry(weekday, hours)} />
<Button title="Fetch Items" onPress={fetchItems} />
{items.map((item, index) => (
<Text key={index} style={styles.text}>Username : {item.username} password: {item.weekday} FullName: {item.hours}</Text>
......
yarn.lock 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment