https://supabase.com/ logo
That component goes at the root of the app (e.g. p...
# ideas-and-suggestions
s
That component goes at the root of the app (e.g. put your navigation component inside it if you're using react-navigation), and then you can use the
use-supabase
library to access auth via a hook:
const { auth } = useSupabase();
app.tsx
might looks like this:
Copy code
ts
return (
  <SupabaseWrapper>
    <Navigator />
  </SupabaseWrapper>
)
You can have other wrappers above or inside the
SupabaseWrapper
, but anything which needs to interact with Supabase needs to be inside it