Skip to content
Closed
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
37 changes: 4 additions & 33 deletions mobile/.gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/
expo-env.d.ts

# Native
.kotlin/
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# MacOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo
14 changes: 0 additions & 14 deletions mobile/App.js

This file was deleted.

15 changes: 0 additions & 15 deletions mobile/api/auth.js

This file was deleted.

117 changes: 0 additions & 117 deletions mobile/api/client.js

This file was deleted.

47 changes: 0 additions & 47 deletions mobile/api/groups.js

This file was deleted.

44 changes: 27 additions & 17 deletions mobile/app.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,50 @@
{
"expo": {
"name": "frontend",
"slug": "frontend",
"platforms": ["ios", "android", "web"],
"name": "Splitwiser Mobile",
"slug": "splitwiser-mobile",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"newArchEnabled": true,
"splash": {
"image": "./assets/splash-icon.png",
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"infoPlist": {
"NSPhotoLibraryUsageDescription": "Allow Splitwiser to select a group icon from your photo library."
}
"bundleIdentifier": "com.splitwiser.mobile"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true,
"permissions": ["READ_MEDIA_IMAGES"]
"package": "com.splitwiser.mobile"
},
"web": {
"favicon": "./assets/favicon.png"
"favicon": "./assets/favicon.png",
"bundler": "metro"
},
"extra": {
"eas": {
"projectId": "afe97159-52c4-425a-9ce3-c56d4f2cb568"
}
},
"owner": "devasy23"
"plugins": [
"expo-router",
"expo-font",
[
"expo-build-properties",
{
"android": {
"newArchEnabled": true
},
"ios": {
"newArchEnabled": true
}
}
]
],
"scheme": "splitwiser",
"newArchEnabled": true
}
}
40 changes: 40 additions & 0 deletions mobile/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
import * as SplashScreen from 'expo-splash-screen';
import { useEffect } from 'react';
import { Inter_400Regular, Inter_700Bold } from '@expo-google-fonts/inter';
import { SpaceGrotesk_400Regular, SpaceGrotesk_700Bold } from '@expo-google-fonts/space-grotesk';
import "../global.css";
import { StatusBar } from 'expo-status-bar';

// Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync();

export default function RootLayout() {
const [loaded] = useFonts({
Inter_400Regular,
Inter_700Bold,
SpaceGrotesk_400Regular,
SpaceGrotesk_700Bold,
});

useEffect(() => {
if (loaded) {
SplashScreen.hideAsync();
}
}, [loaded]);

if (!loaded) {
return null;
}

return (
<ThemeProvider value={DefaultTheme}>
<Stack>
<Stack.Screen name="index" options={{ headerShown: false }} />
</Stack>
<StatusBar style="dark" />
</ThemeProvider>
);
}
Loading
Loading