Skip to content
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

Closed
wants to merge 1 commit into from
Closed

committed #36

wants to merge 1 commit into from

Conversation

SrivathsanRam
Copy link
Contributor

Changed from Clojurescript to Typescript

Copy link
Contributor

@achrinza achrinza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial review from gleaning the changes.

Have not tested deployment to a device yet.

@@ -0,0 +1,18 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't use EAS build system as it can't support no-account offline builds.

Based on the package.json, this port also doesn't use EAS.

Hence are we able to drop it?

@@ -1,27 +1,53 @@
{
"name": "@safsbe/mental-health-app-monorepo",
"name": "mental-health-app",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "mental-health-app",
"name": "@safsbe/mental-health-app",

"expo-constants": "~16.0.2",
"expo-font": "~12.0.9",
"expo-linking": "~6.3.1",
"expo-router": "~3.5.23",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to be locked into expo-router and file-based routing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since expo-router uses react-navigation, we are able to mix-and-match as needed. So it should have minimal lock-in.

Nit: expo-router does not like files .# prefix, which are lockfiles produced by certain editors:

Error: ENOENT: no such file or directory, stat '[...]/app/(tabs)/.#sos.tsx'
    at Object.statSync (node:fs:1665:25)                                                                                                                                                      
    at [...]/node_modules/expo-router/src/testing-library/require-context-ponyfill.ts:24:14                                                 
    at Array.forEach (<anonymous>)                                                                                                                                                            
    at readDirectory ([...]/node_modules/expo-router/src/testing-library/require-context-ponyfill.ts:20:31)                                 
    at [...]/node_modules/expo-router/src/testing-library/require-context-ponyfill.ts:25:33                                                 
    at Array.forEach (<anonymous>)                                                                                                                                                            
    at readDirectory ([...]/node_modules/expo-router/src/testing-library/require-context-ponyfill.ts:20:31)                                 
    at requireContext ([...]/node_modules/expo-router/src/testing-library/require-context-ponyfill.ts:37:5)                                 
    at Object.<anonymous> ([...]/node_modules/expo-router/src/typed-routes/index.ts:11:34)                                                  
    at Module._compile (node:internal/modules/cjs/loader:1469:14)

@@ -1,28 +0,0 @@
# Contributing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this file.

@@ -1 +0,0 @@
* text=auto eol=lf
Copy link
Contributor

@achrinza achrinza Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this file. Forces CRLF->LF conversion, which prevents inconsistent newline sequences introduced on Windows environments.

@@ -1,40 +1,25 @@
# SBE Mental Health App
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the original README structure?

props: { light?: string; dark?: string },
colorName: keyof typeof Colors.light & keyof typeof Colors.dark
) {
const theme = useColorScheme() ?? 'light';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep it to light mode.

Dark mode has not been drafted or discussed with UI/UX team.

@@ -1,4 +0,0 @@
# Developing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retain this file.

On the #TODO to fill it with actual details.

"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll",
"lint": "expo lint"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retain Android App Bundle (AAB) build command.

Suggested change
"lint": "expo lint"
"lint": "expo lint",
"dev-test-android-build": "react-native bundle --dev false --platform android --entry-file app/index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res/"

const colorScheme = useColorScheme();
const [isReady, setIsReady] = useState(false);
const [loaded] = useFonts({
SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Mulish font as dictated by UI Team.

@achrinza
Copy link
Contributor

Superseded by: #37

@achrinza achrinza closed this Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants