-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
committed #36
committed #36
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,12 +1,20 @@ | ||||||||||
node_modules/ | ||||||||||
.clj-kondo/ | ||||||||||
.lsp/ | ||||||||||
.expo/ | ||||||||||
*~ | ||||||||||
\#*# | ||||||||||
.\#* | ||||||||||
.m2 | ||||||||||
dist/ | ||||||||||
packages/frontend/android/ | ||||||||||
packages/frontend/ios/ | ||||||||||
packages/frontend/dist | ||||||||||
Comment on lines
-10
to
-12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exclude +android
+ios |
||||||||||
npm-debug.* | ||||||||||
*.jks | ||||||||||
*.p8 | ||||||||||
*.p12 | ||||||||||
*.key | ||||||||||
*.mobileprovision | ||||||||||
*.orig.* | ||||||||||
web-build/ | ||||||||||
assets/ | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Binary assets are stored separately. The exception are SVGs, of which we're progressively migrating towards.
Suggested change
|
||||||||||
# macOS | ||||||||||
.DS_Store | ||||||||||
|
||||||||||
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb | ||||||||||
# The following patterns were generated by expo-cli | ||||||||||
|
||||||||||
expo-env.d.ts | ||||||||||
# @end expo-cli |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,25 @@ | ||
# SBE Mental Health App | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we keep the original README structure? |
||
|
||
A proof of concept application created by the SBE Innovation Team, part of the SBE NSF Council. | ||
## Installation | ||
|
||
## Prerequisites | ||
1. Install dependencies | ||
|
||
- Node.js 20 | ||
- Java 17 | ||
- Android CLI Tools | ||
- ADB with a connected Android device/emulator | ||
```bash | ||
npm install | ||
``` | ||
|
||
## Getting Started | ||
2. Start the app | ||
|
||
To quickly deploy the mobile app to an Android device with Expo: | ||
```bash | ||
npx expo start | ||
``` | ||
|
||
```sh | ||
$ git clone https://github.com/safsbe/mental-health-app | ||
$ cd mental-health-app | ||
$ npm ci | ||
$ npm run -w '@safsbe/mental-health-frontend' watch:common | ||
$ npm run -w '@safsbe/mental-health-frontend' watch:android:expo | ||
In the output, you'll find options to open the app in a | ||
|
||
# Press 's' to switch to Expo Go builds | ||
``` | ||
- [development build](https://docs.expo.dev/develop/development-builds/introduction/) | ||
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/) | ||
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/) | ||
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo | ||
|
||
## Security | ||
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction). | ||
|
||
See [SECURITY.md](./SECURITY.md). | ||
|
||
### Long-Term Support | ||
|
||
This project does not adopt any long term support policy. | ||
|
||
## Contributing | ||
|
||
External pull requests are not currently being accepted. Our internal contribution workflow is documented in [CONTIRBUTING.md](./CONTRIBUTING.md). | ||
|
||
## Developing | ||
|
||
Instructions for building and developing this appication is provided in [DEVELOPING.md](./DEVELOPING.md). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"expo": { | ||
"name": "mental-health-app", | ||
"slug": "mental-health-app", | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/images/icon.png", | ||
"scheme": "mental-health-app", | ||
"userInterfaceStyle": "automatic", | ||
"splash": { | ||
"image": "./assets/images/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/images/adaptive-icon.png", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"package": "com.safsbe.mentalhealthapp" | ||
}, | ||
"web": { | ||
"bundler": "metro", | ||
"output": "static", | ||
"favicon": "./assets/images/favicon.png" | ||
}, | ||
"plugins": [ | ||
"expo-router" | ||
], | ||
"experiments": { | ||
"typedRoutes": true | ||
}, | ||
"extra": { | ||
"eas": { | ||
"projectId": "81a6b904-d7b1-48a1-8e97-03ad1aaab1fa" | ||
} | ||
Comment on lines
+36
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto on not utilising EAS. |
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { Tabs } from "expo-router"; | ||
|
||
import { TabBarIcon } from "@/components/navigation/TabBarIcon"; | ||
import { Image } from "react-native"; | ||
import { Colors } from "@/constants/Colors"; | ||
import { useColorScheme } from "@/hooks/useColorScheme"; | ||
import MaterialIcons from "@expo/vector-icons/MaterialIcons"; | ||
import Octicons from "@expo/vector-icons/Octicons"; | ||
|
||
export default function TabLayout() { | ||
const colorScheme = useColorScheme(); | ||
|
||
return ( | ||
<Tabs | ||
screenOptions={{ | ||
tabBarActiveTintColor: Colors[colorScheme ?? "light"].tint, | ||
headerShown: false, | ||
}} | ||
> | ||
<Tabs.Screen | ||
name="index" | ||
options={{ | ||
title: "Home", | ||
tabBarIcon: ({ size, color, focused }) => ( | ||
<Image | ||
style={{ width: size, height: size }} | ||
source={require("../../assets/tab_icons/Home_Button.png")} | ||
/> | ||
), | ||
}} | ||
/> | ||
<Tabs.Screen | ||
name="sos" | ||
options={{ | ||
title: "SOS", | ||
tabBarIcon: ({ size, color, focused }) => ( | ||
<Image | ||
style={{ width: size, height: size }} | ||
source={require("../../assets/tab_icons/SOS_Button.png")} | ||
/> | ||
), | ||
}} | ||
/> | ||
<Tabs.Screen | ||
name="resources" | ||
options={{ | ||
title: "Resources", | ||
tabBarIcon: ({ size, color, focused }) => ( | ||
<Image | ||
style={{ width: size, height: size }} | ||
source={require("../../assets/tab_icons/Feedback_Button.png")} | ||
/> | ||
), | ||
}} | ||
/> | ||
</Tabs> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep these. This prevent pollution of working / swap files on certain editors we use.