Added apollo client and basic provider setup.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user