diff --git a/example/src/HomeScreen.tsx b/example/src/HomeScreen.tsx index 8d1c6e1c..d45c57ed 100644 --- a/example/src/HomeScreen.tsx +++ b/example/src/HomeScreen.tsx @@ -1,3 +1,4 @@ +import Clipboard from '@react-native-community/clipboard' import { NavigationContext } from '@react-navigation/native' import moment from 'moment' import React, { useContext, useEffect, useState } from 'react' @@ -10,7 +11,6 @@ import { View, TouchableOpacity, } from 'react-native' -import Clipboard from '@react-native-community/clipboard' import { Conversation, Client, @@ -93,9 +93,7 @@ function ConversationItem({ client: Client | null }) { const navigation = useContext(NavigationContext) - const [messages, setMessages] = useState< - DecodedMessage[] - >([]) + const [messages, setMessages] = useState([]) const lastMessage = messages?.[0] const [consentState, setConsentState] = useState() @@ -121,15 +119,13 @@ function ConversationItem({ return ( - { - console.log('conversation pressed') - console.log(conversation.topic) - navigation!.navigate('conversation', { - topic: conversation.topic, - }) - } - } + onPress={() => { + console.log('conversation pressed') + console.log(conversation.topic) + navigation!.navigate('conversation', { + topic: conversation.topic, + }) + }} > { const key = `xmtp-${network}` - + const result = await EncryptedStorage.getItem(key) if ((result && clear === true) || !result) { if (result) { diff --git a/example/src/tests/conversationTests.ts b/example/src/tests/conversationTests.ts index 3bba5c17..508e62ad 100644 --- a/example/src/tests/conversationTests.ts +++ b/example/src/tests/conversationTests.ts @@ -1,4 +1,6 @@ +import { Wallet } from 'ethers' import RNFS from 'react-native-fs' + import { Test, assert, createClients, delayToPropogate } from './test-utils' import { Client, @@ -7,7 +9,6 @@ import { ConversationId, ConversationVersion, } from '../../../src/index' -import { Wallet } from 'ethers' export const conversationTests: Test[] = [] let counter = 1