Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shenshin <[email protected]>
  • Loading branch information
AlexanderShenshin committed Jun 3, 2024
1 parent 85b860b commit fad6146
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class WalletModule(private val reactContext: ReactApplicationContext) :
catch (error: Throwable) {
promise.reject(
MODULE_NAME,
"Error on resolving document offer: ${error.message}",
"Error on resolving document offer with URI ${offerUri}: ${error.message}",
error
)
}
Expand Down
3 changes: 1 addition & 2 deletions example/src/components/views/QRCodeView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Buffer } from '@craftzdog/react-native-buffer'
import React, { useState } from 'react'
import { StyleSheet, View, Text, Platform, Image } from 'react-native'
import { StyleSheet, View, Text } from 'react-native'
import QRCode from 'react-native-qrcode-svg'

const styles = StyleSheet.create({
Expand Down
2 changes: 1 addition & 1 deletion example/src/navigation/MainTabStack.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import React from 'react'
import { Platform } from 'react-native'
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'

import { requestBlePermissions } from '../BleHelpers'
import { Home, ProximityPresentation, Scan } from '../screens'

import { DocumentsStack } from './DocumentsStack'
import { type MainTabStackParams, Screens, Stacks } from './types'
import { Platform } from 'react-native'

const TAB_ICON_SIZE = 32

Expand Down
1 change: 0 additions & 1 deletion example/src/navigation/RootStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const RootStack: React.FC = () => {
if (!isWalletInitialized) return

Linking.addEventListener('url', async ({ url }) => {
console.log('Got deeplink', url)
if (url.includes('authorize')) {
EudiWallet.resumeOpenId4VciWithAuthorization(url)
}
Expand Down
2 changes: 1 addition & 1 deletion src/EudiWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export abstract class EudiWallet {

public static resumeOpenId4VciWithAuthorization(uri: string) {
// No-op on iOS
if(Platform.OS === 'ios') return
if (Platform.OS === 'ios') return

EudiWalletModule.resumeOpenId4VciWithAuthorization(uri)
}
Expand Down

0 comments on commit fad6146

Please sign in to comment.