(fileCopyUri: string)
| 189 | }; |
| 190 | |
| 191 | const handleImageFile = async (fileCopyUri: string): Promise<{ data: string | false; uri: string | false }> => { |
| 192 | const base64 = await readFileAsBase64(fileCopyUri); |
| 193 | const result = await detectQRCodeInImage(base64); |
| 194 | if (result) { |
| 195 | return { data: result, uri: fileCopyUri }; |
| 196 | } |
| 197 | throw new Error(loc.send.qr_error_no_qrcode); |
| 198 | }; |
| 199 | |
| 200 | export const readFileOutsideSandbox = (filePath: string) => { |
| 201 | if (Platform.OS === 'ios') { |
no test coverage detected