I have a function where I pass the client as a parameter and delete the token from my app etc:
const logOut = async (client: ApolloClient<unknown>) => {...};
return (<ApolloConsumer> {(client: ApolloClient<unknown>) => (<SafeAreaView style={styles.safeAreaViewContainer}><View style={styles.buttonContainer}><Button onPress={() => logOut(client)} style={styles.button} /></View></SafeAreaView> )}</ApolloConsumer> );};
Right now I am using unknown
for the ApolloClient type and it works. But what should I actually be using here?