Skip to content

Commit

Permalink
structured the app
Browse files Browse the repository at this point in the history
  • Loading branch information
marksikaundi committed Mar 10, 2024
1 parent c1fe3de commit 52b6727
Show file tree
Hide file tree
Showing 52 changed files with 140 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .expo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
> 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.
- "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": []
}
1 change: 1 addition & 0 deletions .expo/metro/externals/assert/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:assert');
1 change: 1 addition & 0 deletions .expo/metro/externals/async_hooks/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:async_hooks');
1 change: 1 addition & 0 deletions .expo/metro/externals/buffer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:buffer');
1 change: 1 addition & 0 deletions .expo/metro/externals/child_process/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:child_process');
1 change: 1 addition & 0 deletions .expo/metro/externals/cluster/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:cluster');
1 change: 1 addition & 0 deletions .expo/metro/externals/console/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:console');
1 change: 1 addition & 0 deletions .expo/metro/externals/constants/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:constants');
1 change: 1 addition & 0 deletions .expo/metro/externals/crypto/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:crypto');
1 change: 1 addition & 0 deletions .expo/metro/externals/dgram/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:dgram');
1 change: 1 addition & 0 deletions .expo/metro/externals/diagnostics_channel/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:diagnostics_channel');
1 change: 1 addition & 0 deletions .expo/metro/externals/dns/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:dns');
1 change: 1 addition & 0 deletions .expo/metro/externals/domain/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:domain');
1 change: 1 addition & 0 deletions .expo/metro/externals/events/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:events');
1 change: 1 addition & 0 deletions .expo/metro/externals/fs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:fs');
1 change: 1 addition & 0 deletions .expo/metro/externals/fs/promises/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:fs/promises');
1 change: 1 addition & 0 deletions .expo/metro/externals/http/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:http');
1 change: 1 addition & 0 deletions .expo/metro/externals/http2/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:http2');
1 change: 1 addition & 0 deletions .expo/metro/externals/https/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:https');
1 change: 1 addition & 0 deletions .expo/metro/externals/inspector/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:inspector');
1 change: 1 addition & 0 deletions .expo/metro/externals/module/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:module');
1 change: 1 addition & 0 deletions .expo/metro/externals/net/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:net');
1 change: 1 addition & 0 deletions .expo/metro/externals/os/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:os');
1 change: 1 addition & 0 deletions .expo/metro/externals/path/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:path');
1 change: 1 addition & 0 deletions .expo/metro/externals/perf_hooks/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:perf_hooks');
1 change: 1 addition & 0 deletions .expo/metro/externals/process/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:process');
1 change: 1 addition & 0 deletions .expo/metro/externals/punycode/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:punycode');
1 change: 1 addition & 0 deletions .expo/metro/externals/querystring/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:querystring');
1 change: 1 addition & 0 deletions .expo/metro/externals/readline/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:readline');
1 change: 1 addition & 0 deletions .expo/metro/externals/repl/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:repl');
1 change: 1 addition & 0 deletions .expo/metro/externals/stream/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:stream');
1 change: 1 addition & 0 deletions .expo/metro/externals/string_decoder/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:string_decoder');
1 change: 1 addition & 0 deletions .expo/metro/externals/timers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:timers');
1 change: 1 addition & 0 deletions .expo/metro/externals/tls/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:tls');
1 change: 1 addition & 0 deletions .expo/metro/externals/trace_events/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:trace_events');
1 change: 1 addition & 0 deletions .expo/metro/externals/tty/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:tty');
1 change: 1 addition & 0 deletions .expo/metro/externals/url/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:url');
1 change: 1 addition & 0 deletions .expo/metro/externals/util/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:util');
1 change: 1 addition & 0 deletions .expo/metro/externals/v8/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:v8');
1 change: 1 addition & 0 deletions .expo/metro/externals/vm/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:vm');
1 change: 1 addition & 0 deletions .expo/metro/externals/wasi/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:wasi');
1 change: 1 addition & 0 deletions .expo/metro/externals/worker_threads/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:worker_threads');
1 change: 1 addition & 0 deletions .expo/metro/externals/zlib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = $$require_external('node:zlib');
1 change: 1 addition & 0 deletions .expo/metro/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global.$$require_external = typeof window === "undefined" ? require : () => null;
1 change: 1 addition & 0 deletions .expo/metro/polyfill.native.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .expo/packager-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"expoServerPort": 19000,
"packagerPort": 19000
}
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
}
10 changes: 5 additions & 5 deletions App.js → App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";

export default function App() {
return (
Expand All @@ -13,8 +13,8 @@ export default function App() {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
59 changes: 57 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"web": "expo start --web"
},
"dependencies": {
"expo": "~50.0.11",
"expo": "^50.0.11",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.73.4"
},
"devDependencies": {
"@babel/core": "^7.20.0"
"@babel/core": "^7.20.0",
"@types/react": "~18.2.45",
"@types/react-native": "^0.73.0",
"typescript": "^5.3.0"
},
"private": true
}
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"compilerOptions": {},
"extends": "expo/tsconfig.base"
}

0 comments on commit 52b6727

Please sign in to comment.