diff --git a/example/src/components/views/QRCodeView.tsx b/example/src/components/views/QRCodeView.tsx index 08ed454..de6dd3e 100644 --- a/example/src/components/views/QRCodeView.tsx +++ b/example/src/components/views/QRCodeView.tsx @@ -1,6 +1,6 @@ +import { Buffer } from '@craftzdog/react-native-buffer' import React, { useState } from 'react' import { StyleSheet, View, Text, Platform, Image } from 'react-native' -import { Buffer } from "@craftzdog/react-native-buffer" import QRCode from 'react-native-qrcode-svg' const styles = StyleSheet.create({ @@ -33,16 +33,18 @@ export const QRCodeView: React.FC = ({ value, size }) => { const onQRGenerationError = () => { setIsInvalidQR(true) } - + return ( - { + { // TODO: Remove this after Android/iOS QR content inconsistency fixed - Platform.OS === 'ios' - ? - : - } - { isInvalidQR && {'QR generation error'} } + Platform.OS === 'ios' ? ( + + ) : ( + + ) + } + {isInvalidQR && {'QR generation error'}} ) } diff --git a/example/src/screens/ProximityPresentation.tsx b/example/src/screens/ProximityPresentation.tsx index 2a0d6a2..f5f3938 100644 --- a/example/src/screens/ProximityPresentation.tsx +++ b/example/src/screens/ProximityPresentation.tsx @@ -86,10 +86,10 @@ export const ProximityPresentation: React.FC = () => { - { qrCodeContent && } + {qrCodeContent && } - { isAndroid && Or use the NFC } + {isAndroid && Or use the NFC} diff --git a/src/EudiWallet.ts b/src/EudiWallet.ts index 229fe5d..5846b12 100644 --- a/src/EudiWallet.ts +++ b/src/EudiWallet.ts @@ -49,10 +49,9 @@ export abstract class EudiWallet { sendSessionTerminationMessage: boolean = true, useTransportSpecificSessionTermination: boolean = false, ): void { - if(Platform.OS === 'android') { + if (Platform.OS === 'android') { EudiWalletModule.stopPresentation(sendSessionTerminationMessage, useTransportSpecificSessionTermination) - } - else { + } else { EudiWalletModule.stopPresentation() } }