Skip to content

Commit

Permalink
fix: attempt at using plain array for byte array
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Aug 28, 2024
1 parent 0e568db commit 7b742d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/storage/lib/web/RNFBStorageModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ export default {
break;
}

const byteArray = new Uint8Array(base64String ? base64String.length : 0);
const byteArray = [];

if (base64String) {
for (let i = 0; i < base64String.length; i++) {
byteArray[i] = base64String.charCodeAt(i);
for (var i = 0; i < base64String.length; ++i) {
byteArray.push(base64String.charCodeAt(i));
}
}

Expand Down

0 comments on commit 7b742d6

Please sign in to comment.