From fe69a544ce0ff0ec84d845b6ec8e2ce75bbba3b8 Mon Sep 17 00:00:00 2001 From: Pat Nakajima Date: Thu, 21 Sep 2023 13:31:45 -0400 Subject: [PATCH 1/8] wip --- example/src/LaunchScreen.tsx | 57 +++++++++++++++++++++++++++++------- src/lib/Conversations.ts | 14 +++++---- 2 files changed, 54 insertions(+), 17 deletions(-) diff --git a/example/src/LaunchScreen.tsx b/example/src/LaunchScreen.tsx index e5c6d8111..38eaf1b57 100644 --- a/example/src/LaunchScreen.tsx +++ b/example/src/LaunchScreen.tsx @@ -16,7 +16,7 @@ export default function LaunchScreen({ let savedKeys = useSavedKeys(); const configureWallet = ( label: string, - configuring: Promise, + configuring: Promise ) => { console.log("Connecting XMTP client", label); configuring @@ -73,8 +73,8 @@ export default function LaunchScreen({ color="green" onPress={() => { configureWallet( - 'dev', - XMTP.Client.createRandom({ env: 'dev', appVersion }), + "dev", + XMTP.Client.createRandom({ env: "dev", appVersion }) ); }} /> @@ -85,8 +85,8 @@ export default function LaunchScreen({ color="purple" onPress={() => { configureWallet( - 'local', - XMTP.Client.createRandom({ env: 'local', appVersion }), + "local", + XMTP.Client.createRandom({ env: "local", appVersion }) ); }} /> @@ -112,11 +112,11 @@ export default function LaunchScreen({ color="green" onPress={() => { configureWallet( - 'dev', + "dev", XMTP.Client.createFromKeyBundle(savedKeys.keyBundle!, { - env: 'dev', + env: "dev", appVersion, - }), + }) ); }} /> @@ -127,11 +127,11 @@ export default function LaunchScreen({ color="purple" onPress={() => { configureWallet( - 'local', + "local", XMTP.Client.createFromKeyBundle(savedKeys.keyBundle!, { - env: 'local', + env: "local", appVersion, - }), + }) ); }} /> @@ -145,6 +145,41 @@ export default function LaunchScreen({ )} + +