Polished up some UI and added dark/light mode

This commit is contained in:
Christopher Sanden
2026-03-06 17:20:41 +01:00
parent 45ab15ff40
commit 3e81e46b1a
25 changed files with 472 additions and 309 deletions

View File

@@ -1,12 +1,11 @@
import { createClient } from '@supabase/supabase-js';
import { deleteItemAsync, getItemAsync, setItemAsync } from 'expo-secure-store';
import 'react-native-url-polyfill/auto';
import { createClient } from '@supabase/supabase-js'
import { deleteItemAsync, getItemAsync, setItemAsync } from 'expo-secure-store'
import 'react-native-url-polyfill/auto'
import Constants from "expo-constants"
import { Platform } from 'react-native';
import { Platform } from 'react-native'
const ExpoSecureStoreAdapter = {
getItem: (key: string) => {
console.debug("getItem", { key, getItemAsync })
return getItemAsync(key)
},
setItem: (key: string, value: string) => {
@@ -18,12 +17,12 @@ const ExpoSecureStoreAdapter = {
removeItem: (key: string) => {
return deleteItemAsync(key)
},
};
}
const extra = (Constants.expoConfig?.extra ?? Constants.manifest?.extra) as {
supabaseUrl?: string;
supabaseKey?: string;
};
supabaseUrl?: string
supabaseKey?: string
}
const supabaseUrl = extra?.supabaseUrl
const supabaseAnonKey = extra?.supabaseKey
@@ -46,4 +45,4 @@ export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
detectSessionInUrl: false,
},
}
)
)