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

Authentication #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = {
// stacksAPI: "http://localhost:8000",
stacksAPI: "https://stacks-api-aqbg2pw2fa-uc.a.run.app"
stacksAPI: "http://localhost:8000",
// stacksAPI: "https://stacks-api-aqbg2pw2fa-uc.a.run.app"
}

export default config;
7 changes: 7 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { getDefaultConfig } = require('@expo/metro-config');

const defaultConfig = getDefaultConfig(__dirname);
defaultConfig.resolver.assetExts.push('cjs');


module.exports = defaultConfig;
2 changes: 2 additions & 0 deletions navigation/RootNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Profile from '../screens/Profile';
import Followers from '../screens/Followers';
import Leaders from '../screens/Leaders';
import Goals from '../screens/Goals';
import FirebaseLogin from '../screens/FirebaseLogin';

const Stack = createNativeStackNavigator<RootStackParamList>();

Expand All @@ -22,6 +23,7 @@ const RootNavigator: React.FC<{ initialState?: any, onStateChange?: (state: any)
documentTitle={{formatter: () => "getstacks.io"}}
>
<Stack.Navigator screenOptions={{ headerShown: true }}>
<Stack.Screen name="FirebaseLogin" component={FirebaseLogin} options={{ headerShown: false }} />
<Stack.Screen name="Login" component={Login} options={{ headerShown: false }} />
<Stack.Screen name="InApp" component={InApp} options={{ headerShown: false }} />
<Stack.Screen name="CreateGoal" component={CreateGoal} options={{ headerShown: false }} />
Expand Down
3 changes: 3 additions & 0 deletions navigation/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
export type RootStackParamList = {
Login: undefined;
FirebaseLogin: undefined;
InApp: { userId: string };
CreateGoal: { userId: string };
CreateMilestone: { userId: string };
Comments: { announcementId: string };
Followers: undefined;
Leaders: undefined;
};
Loading