From a3ddc2c924c87ea1376a42a92b5082667df8664a Mon Sep 17 00:00:00 2001 From: Michael Lustig Date: Wed, 29 Jan 2025 13:11:35 -0500 Subject: [PATCH] cool stuff; xmtp client auto created if exists; but still need to add auto create when wallet created if doesn't exist then im going to come up with some clever way for react-query to handle all of this logic and then restore xmtp clients by {address, inboxId?} where if inboxId is undefined we create and if it is defined we build and then also should have a check about the database existing in case something funky happened --- privy-demo-quickstart/LoginScreen.tsx | 48 +--------- privy-demo-quickstart/UserScreen.tsx | 125 +++++++++++++++++++++----- 2 files changed, 106 insertions(+), 67 deletions(-) diff --git a/privy-demo-quickstart/LoginScreen.tsx b/privy-demo-quickstart/LoginScreen.tsx index a18866664..9bdadc632 100644 --- a/privy-demo-quickstart/LoginScreen.tsx +++ b/privy-demo-quickstart/LoginScreen.tsx @@ -50,52 +50,6 @@ export function LoginScreen() { {Constants.expoConfig?.extra?.privyClientId} - - Navigate to your{" "} - - Linking.openURL( - `https://dashboard.privy.io/apps/${Constants.expoConfig?.extra?.privyAppId}/settings?setting=clients` - ) - } - > - dashboard - {" "} - and ensure the following Expo Application ID is listed as an `Allowed - app identifier`: - - {Application.applicationId} - - Navigate to your{" "} - - Linking.openURL( - `https://dashboard.privy.io/apps/${Constants.expoConfig?.extra?.privyAppId}/settings?setting=clients` - ) - } - > - dashboard - {" "} - and ensure the following value is listed as an `Allowed app URL scheme`: - - - {Application.applicationId === "host.exp.Exponent" - ? "exp" - : Constants.expoConfig?.scheme} - - - {/*