mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
Update ScanQRCode.js
This commit is contained in:
parent
89e7b23c05
commit
facd7b7783
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import { useFocusEffect, useIsFocused, useRoute } from '@react-navigation/native';
|
||||
import { useFocusEffect, useIsFocused, useNavigation, useRoute } from '@react-navigation/native';
|
||||
import * as bitcoin from 'bitcoinjs-lib';
|
||||
import createHash from 'create-hash';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
|
@ -16,7 +16,6 @@ import { useSettings } from '../../hooks/context/useSettings';
|
|||
import CameraScreen from '../../components/CameraScreen';
|
||||
import SafeArea from '../../components/SafeArea';
|
||||
import presentAlert from '../../components/Alert';
|
||||
import { useExtendedNavigation } from '../../hooks/useExtendedNavigation';
|
||||
|
||||
let decoder = false;
|
||||
|
||||
|
@ -54,7 +53,7 @@ const styles = StyleSheet.create({
|
|||
const ScanQRCode = () => {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const { setIsDrawerShouldHide } = useSettings();
|
||||
const navigation = useExtendedNavigation();
|
||||
const navigation = useNavigation();
|
||||
const route = useRoute();
|
||||
const navigationState = navigation.getState();
|
||||
const previousRoute = navigationState.routes[navigationState.routes.length - 2];
|
||||
|
|
Loading…
Add table
Reference in a new issue