Skip to content

Commit 4e47888

Browse files
committed
set up mobile development
1 parent 12fd335 commit 4e47888

27 files changed

+8840
-5126
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Fulcrum-Adventures
22

3-
cd frontend
4-
npm install
5-
npm run dev
3+
# Frontend:
4+
5+
1. install expo go on your phone
6+
2. cd frontend, npm install, npm start, scan qr code on your phone
7+
3. when developing: when you save it should auto reload. console logs appear in terminal, shake your device for debugging, and if you need to clear cache use npm start -- -c.
8+
4. if you need to add react native libraries: do npx expo install to pick compatible versions
69

710
no backend needed for now!

frontend/.gitignore

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
22

33
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
12-
13-
# testing
14-
/coverage
15-
16-
# next.js
17-
/.next/
18-
/out/
19-
20-
# production
21-
/build
22-
23-
# misc
24-
.DS_Store
25-
*.pem
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
.kotlin/
14+
*.orig.*
15+
*.jks
16+
*.p8
17+
*.p12
18+
*.key
19+
*.mobileprovision
20+
21+
# Metro
22+
.metro-health-check*
2623

2724
# debug
28-
npm-debug.log*
29-
yarn-debug.log*
30-
yarn-error.log*
31-
.pnpm-debug.log*
25+
npm-debug.*
26+
yarn-debug.*
27+
yarn-error.*
3228

33-
# env files (can opt-in for committing if needed)
34-
.env*
29+
# macOS
30+
.DS_Store
31+
*.pem
3532

36-
# vercel
37-
.vercel
33+
# local env files
34+
.env*.local
3835

3936
# typescript
4037
*.tsbuildinfo
41-
next-env.d.ts
38+
39+
# eslint
40+
.eslintcache
41+
42+
# generated native folders
43+
/ios
44+
/android

frontend/.prettierignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Do not run Prettier on these paths. Customize as needed.
2-
.next/
3-
build/
1+
.expo/
2+
android/
3+
ios/
44
dist/
5-
out/
6-
public/
5+
node_modules/
6+
*.lock

frontend/App.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { StatusBar } from "expo-status-bar";
2+
import { StyleSheet, Text, View } from "react-native";
3+
4+
const styles = StyleSheet.create({
5+
container: {
6+
flex: 1,
7+
backgroundColor: "#fff",
8+
alignItems: "center",
9+
justifyContent: "center",
10+
},
11+
});
12+
13+
export default function App() {
14+
return (
15+
<View style={styles.container}>
16+
<Text>Open up App.tsx to start working on your app!</Text>
17+
<StatusBar style="auto" />
18+
</View>
19+
);
20+
}

frontend/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

frontend/app.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"expo": {
3+
"name": "frontend",
4+
"slug": "frontend",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "light",
9+
"newArchEnabled": true,
10+
"splash": {
11+
"image": "./assets/splash-icon.png",
12+
"resizeMode": "contain",
13+
"backgroundColor": "#ffffff"
14+
},
15+
"ios": {
16+
"supportsTablet": true
17+
},
18+
"android": {
19+
"adaptiveIcon": {
20+
"foregroundImage": "./assets/adaptive-icon.png",
21+
"backgroundColor": "#ffffff"
22+
},
23+
"edgeToEdgeEnabled": true,
24+
"predictiveBackGestureEnabled": false
25+
},
26+
"web": {
27+
"favicon": "./assets/favicon.png"
28+
}
29+
}
30+
}

frontend/assets/adaptive-icon.png

17.1 KB
Loading

frontend/assets/favicon.png

1.43 KB
Loading

frontend/assets/icon.png

21.9 KB
Loading

frontend/assets/splash-icon.png

17.1 KB
Loading

0 commit comments

Comments
 (0)