Flyken
07/26/2021, 4:49 PMquicksnap
07/26/2021, 5:57 PMfenix
07/26/2021, 6:30 PMquicksnap
07/26/2021, 6:31 PMtinjaw
07/26/2021, 6:31 PMquicksnap
07/26/2021, 6:31 PMtinjaw
07/26/2021, 6:31 PMquicksnap
07/26/2021, 6:31 PMtinjaw
07/26/2021, 6:31 PMtinjaw
07/26/2021, 6:32 PMtinjaw
07/26/2021, 6:32 PMScott P
07/26/2021, 6:32 PMtinjaw
07/26/2021, 6:32 PMnullexception
07/27/2021, 2:17 AMburggraf
07/27/2021, 2:19 AMnullexception
07/27/2021, 2:24 AMcopple
07/27/2021, 2:30 AMburggraf
07/27/2021, 2:30 AMburggraf
07/27/2021, 2:31 AMcarlomigueldy.eth
07/27/2021, 2:50 AMdeepu
07/27/2021, 2:56 AMcopple
07/27/2021, 3:22 AMMarky
07/27/2021, 3:40 AMmikeoflegend
07/27/2021, 6:06 AMcopple
07/27/2021, 6:27 AMYaminNather
07/27/2021, 7:12 AMflorian-lefebvre
07/27/2021, 11:07 AMmikeoflegend
07/27/2021, 11:17 AMmikeoflegend
07/27/2021, 11:19 AMScott P
07/27/2021, 11:20 AMts
import React, { FC } from "react";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { SupabaseContextProvider } from "use-supabase";
import { createClient } from "@supabase/supabase-js";
import Constants from "expo-constants";
export const supabaseClient = createClient(
Constants.manifest.extra.supabaseEndpoint,
Constants.manifest.extra.supabaseClientKey,
{
localStorage: AsyncStorage as any,
autoRefreshToken: true,
persistSession: true,
}
);
export const SupabaseWrapper: FC<{}> = ({ children }) => (
<SupabaseContextProvider client={supabaseClient}>
{children}
</SupabaseContextProvider>
);