Added apollo client and basic provider setup.

This commit is contained in:
Patrick Fic
2020-08-11 21:42:21 -07:00
parent 11d92e9aea
commit 1f8d16370a
12 changed files with 1606 additions and 22 deletions

View File

@@ -1,8 +1,14 @@
import React from "react";
import { View, Text } from "react-native";
import { View, Text, Button } from "react-native";
import { useTranslation } from "react-i18next";
import { useQuery, useLazyQuery, useSubscription } from "@apollo/client";
import { QUERY_BODYSHOP } from "../../graphql/bodyshop.queries.js";
export default function ScreenJobList({ navigation }) {
const { t } = useTranslation();
const { loading, error, data } = useSubscription(QUERY_BODYSHOP);
console.log("ScreenJobList -> error", error);
console.log("ScreenJobList -> loading", loading);
console.log("BodyshopData", data);
return (
<View>
<Text>This is the Job List.</Text>