Skip to content

Commit

Permalink
eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jan 18, 2024
1 parent 4fbdb8e commit caec6ed
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
18 changes: 9 additions & 9 deletions example/src/LaunchScreen.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -21,7 +21,7 @@ const supportedCodecs = [
export default function LaunchScreen({
navigation,
}: NativeStackScreenProps<NavigationParamList, 'launch'>) {
const signer = useSigner();
const signer = useSigner()
const [signerAddressDisplay, setSignerAddressDisplay] = useState<string>()
const { setClient } = useXmtp()
const savedKeys = useSavedKeys()
Expand All @@ -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 (
<ScrollView>
<ConnectWallet theme='dark'/>
<ConnectWallet theme="dark" />
<Text
style={{
fontSize: 16,
Expand Down
14 changes: 7 additions & 7 deletions example/src/types/react-native-config.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
declare module 'react-native-config' {
export interface NativeConfig {
THIRD_WEB_CLIENT_ID?: string;
}
export const Config: NativeConfig
export default Config
}
export interface NativeConfig {
THIRD_WEB_CLIENT_ID?: string
}

export const Config: NativeConfig
export default Config
}

0 comments on commit caec6ed

Please sign in to comment.