mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
FIX: Import QR Code from screenshot not working
This commit is contained in:
parent
76ed479846
commit
6d025bc9cb
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/* global alert */
|
||||
import React from 'react';
|
||||
import { Image, TouchableOpacity } from 'react-native';
|
||||
import { Image, TouchableOpacity, Platform } from 'react-native';
|
||||
import PropTypes from 'prop-types';
|
||||
import { RNCamera } from 'react-native-camera';
|
||||
import { SafeBlueArea } from '../../BlueComponents';
|
||||
|
@ -74,7 +74,7 @@ export default class ScanQRCode extends React.Component {
|
|||
},
|
||||
response => {
|
||||
if (response.uri) {
|
||||
const uri = response.uri.toString().replace('file://', '');
|
||||
const uri = Platform.OS === 'ios' ? response.uri.toString().replace('file://', '') : response.path.toString();
|
||||
LocalQRCode.decode(uri, (error, result) => {
|
||||
if (!error) {
|
||||
this.onBarCodeRead({ data: result });
|
||||
|
|
Loading…
Add table
Reference in a new issue