Skip to content

fix(react-native): polyfill Blob #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/react-native/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {serializeError} from 'serialize-error';
import {Colors} from 'react-native/Libraries/NewAppScreen';

// React Native polyfills required for AWS SDK for JavaScript.
import 'react-native-blob-util';
import 'react-native-get-random-values';
import 'react-native-url-polyfill/auto';
import 'web-streams-polyfill/dist/polyfill';
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@aws-sdk/test-utils": "workspace:*",
"react": "^18.3.1",
"react-native": "^0.74.3",
"react-native-blob-util": "^0.16.4",
"react-native-get-random-values": "^1.11.0",
"react-native-url-polyfill": "^2.0.0",
"serialize-error": "^11.0.3",
Expand Down
23 changes: 22 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ __metadata:
"@react-native/metro-config": "npm:^0.74.85"
react: "npm:^18.3.1"
react-native: "npm:^0.74.3"
react-native-blob-util: "npm:^0.16.4"
react-native-get-random-values: "npm:^1.11.0"
react-native-url-polyfill: "npm:^2.0.0"
serialize-error: "npm:^11.0.3"
Expand Down Expand Up @@ -3228,6 +3229,13 @@ __metadata:
languageName: node
linkType: hard

"base-64@npm:0.1.0":
version: 0.1.0
resolution: "base-64@npm:0.1.0"
checksum: 10c0/fe0dcf076e823f04db7ee9b02495be08a91c445fbc6db03cb9913be9680e2fcc0af8b74459041fe08ad16800b1f65a549501d8f08696a8a6d32880789b7de69d
languageName: node
linkType: hard

"base64-js@npm:^1.3.1, base64-js@npm:^1.5.1":
version: 1.5.1
resolution: "base64-js@npm:1.5.1"
Expand Down Expand Up @@ -4325,7 +4333,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^7.1.1, glob@npm:^7.1.3":
"glob@npm:^7.1.1, glob@npm:^7.1.3, glob@npm:^7.2.3":
version: 7.2.3
resolution: "glob@npm:7.2.3"
dependencies:
Expand Down Expand Up @@ -6313,6 +6321,19 @@ __metadata:
languageName: node
linkType: hard

"react-native-blob-util@npm:^0.16.4":
version: 0.16.4
resolution: "react-native-blob-util@npm:0.16.4"
dependencies:
base-64: "npm:0.1.0"
glob: "npm:^7.2.3"
peerDependencies:
react: "*"
react-native: "*"
checksum: 10c0/723d157ac7c301efe24ce852ca60f4cbccfa4602573587eb165d6a8e2f388b77cdb51ff0335deba698e57b7e1f9820176fe964cef71d9cb45fac5a6b52ce7efc
languageName: node
linkType: hard

"react-native-get-random-values@npm:^1.11.0":
version: 1.11.0
resolution: "react-native-get-random-values@npm:1.11.0"
Expand Down