diff --git a/example/App.tsx b/example/App.tsx index 51f2641b9..6bdcf25bf 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -9,8 +9,8 @@ import HomeScreen from './src/HomeScreen' import LaunchScreen from './src/LaunchScreen' import { Navigator } from './src/Navigation' import TestScreen from './src/TestScreen' -import { ThirdwebProvider, metamaskWallet, rainbowWallet } from "@thirdweb-dev/react-native" -import { Ethereum } from "@thirdweb-dev/chains" +import { ThirdwebProvider, metamaskWallet, rainbowWallet } from '@thirdweb-dev/react-native' +import { Ethereum } from '@thirdweb-dev/chains' import Config from 'react-native-config' const queryClient = new QueryClient() @@ -24,10 +24,10 @@ export default function App() { supportedChains={ [ Ethereum ] } clientId={ Config.THIRD_WEB_CLIENT_ID } dAppMeta={{ - name: "XMTP Example", - description: "Example app from xmtp-react-native repo", - logoUrl: "https://pbs.twimg.com/profile_images/1668323456935510016/2c_Ue8dF_400x400.jpg", - url: "https://xmtp.org", + name: 'XMTP Example', + description: 'Example app from xmtp-react-native repo', + logoUrl: 'https://pbs.twimg.com/profile_images/1668323456935510016/2c_Ue8dF_400x400.jpg', + url: 'https://xmtp.org', }} supportedWallets={[ metamaskWallet(), rainbowWallet() diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 930fe6675..4fc734075 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -4,7 +4,6 @@ apply plugin: 'kotlin-android' apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" - import com.android.build.OutputFile def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath() diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 71f9b34f1..15531ec0d 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -10,4 +10,4 @@ include ':app' includeBuild(new File(["node", "--print", "require.resolve('react-native-gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile()) include ':react-native-config' -project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') \ No newline at end of file +project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') diff --git a/example/src/LaunchScreen.tsx b/example/src/LaunchScreen.tsx index eaacffa19..3bf8f37bb 100644 --- a/example/src/LaunchScreen.tsx +++ b/example/src/LaunchScreen.tsx @@ -1,8 +1,8 @@ import { NativeStackScreenProps } from '@react-navigation/native-stack' -import { ConnectWallet, useSigner } from "@thirdweb-dev/react-native" +import { ConnectWallet, useSigner } from '@thirdweb-dev/react-native' import React, { useCallback, useEffect, useState } from 'react' -import * as XMTP from 'xmtp-react-native-sdk' import { Button, ScrollView, StyleSheet, Text, View } from 'react-native' +import * as XMTP from 'xmtp-react-native-sdk' import { useXmtp } from 'xmtp-react-native-sdk' import { NavigationParamList } from './Navigation' @@ -21,7 +21,7 @@ const supportedCodecs = [ export default function LaunchScreen({ navigation, }: NativeStackScreenProps) { - const signer = useSigner(); + const signer = useSigner() const [signerAddressDisplay, setSignerAddressDisplay] = useState() const { setClient } = useXmtp() const savedKeys = useSavedKeys() @@ -47,28 +47,28 @@ export default function LaunchScreen({ ) const preCreateIdentityCallback = () => { - console.log("Pre Create Identity Callback") + console.log('Pre Create Identity Callback') } const preEnableIdentityCallback = () => { - console.log("Pre Enable Identity Callback") + console.log('Pre Enable Identity Callback') } useEffect(() => { - (async () => { + ;(async () => { if (signer) { const address = await signer.getAddress() - const addressDisplay = address.slice(0,6) + '...' + address.slice(-4) + const addressDisplay = address.slice(0, 6) + '...' + address.slice(-4) setSignerAddressDisplay(addressDisplay) } else { setSignerAddressDisplay('loading...') } })() - }, [signer]); + }, [signer]) return ( - +