© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
9 replies
FireSerpent

Failing to fetch data from tables in expo

I am creating a react native app with expo. I am using supabase for the first time and I wanted to fetch data from one of my tables, this is the function I am using to try it out:

const getTestChat = async () => {
    const { data } = await supabase.from("test").select("*");

    console.log(data);
  };
const getTestChat = async () => {
    const { data } = await supabase.from("test").select("*");

    console.log(data);
  };


and then I called it with onPress in a TouchableOpacity and it returns this:

 LOG  []
 LOG  []


What am I doing wrong?

P.S. The table in the table editor is in the attached image.
supabase.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Webhook data from multiple tables
SupabaseSSupabase / help-and-questions
3y ago
How to fetch 2 tables in one query?
SupabaseSSupabase / help-and-questions
4y ago
how to flatten returned data from joined tables?
SupabaseSSupabase / help-and-questions
4y ago
How to fetch data from Supabase to Email template
SupabaseSSupabase / help-and-questions
4y ago