Skip to content

Commit

Permalink
chore: offline
Browse files Browse the repository at this point in the history
  • Loading branch information
janrtvld committed Dec 18, 2024
1 parent 014f2b5 commit 9310512
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions apps/easypid/src/features/wallet/FunkeOfflineQrScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,23 @@ export function FunkeOfflineQrScreen() {
})
)

// useEffect(() => {
// // Cleanup function that runs when component unmounts
// return () => {
// shutdownDataTransfer()
// }
// }, [])
useEffect(() => {
// Cleanup function that runs when component unmounts
return () => {
shutdownDataTransfer()
}
}, [])

const onCancel = () => {
back()
shutdownDataTransfer()
}

// if (Platform.OS === 'ios') {
// toast.show('This feature is not supported on your OS yet.', { customData: { preset: 'warning' } })
// return back()
// }
if (Platform.OS === 'ios') {
toast.show('This feature is not supported on your OS yet.', { customData: { preset: 'warning' } })
back()
return
}

return (
<Page bg="$black" ai="center">
Expand Down

0 comments on commit 9310512

Please sign in to comment.