Skip to content

Commit 578e7d4

Browse files
authored
chore(react-native): add web-streams-polyfill (#197)
1 parent 51d3fb4 commit 578e7d4

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/react-native/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {Colors} from 'react-native/Libraries/NewAppScreen';
1414
// React Native polyfills required for AWS SDK for JavaScript.
1515
import 'react-native-get-random-values';
1616
import 'react-native-url-polyfill/auto';
17+
import 'web-streams-polyfill/dist/polyfill';
1718

1819
import {getV2BrowserResponse, getV3BrowserResponse} from '@aws-sdk/test-utils';
1920

packages/react-native/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"react": "^18.3.1",
1414
"react-native": "^0.74.3",
1515
"react-native-get-random-values": "^1.11.0",
16-
"react-native-url-polyfill": "^2.0.0"
16+
"react-native-url-polyfill": "^2.0.0",
17+
"web-streams-polyfill": "^4.0.0"
1718
},
1819
"devDependencies": {
1920
"@babel/core": "^7.12.9",

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ __metadata:
553553
react-native: ^0.74.3
554554
react-native-get-random-values: ^1.11.0
555555
react-native-url-polyfill: ^2.0.0
556+
web-streams-polyfill: ^4.0.0
556557
languageName: unknown
557558
linkType: soft
558559

@@ -8008,6 +8009,13 @@ __metadata:
80088009
languageName: node
80098010
linkType: hard
80108011

8012+
"web-streams-polyfill@npm:^4.0.0":
8013+
version: 4.0.0
8014+
resolution: "web-streams-polyfill@npm:4.0.0"
8015+
checksum: df1abcb0f811621fa3ed95491c3d281eb7c82aa898b9759e47c3c9dffe73eb65c0459433da60a76a1ea08e6158c8b33fdf3a2ea2a44b9c4c252965507d54edc4
8016+
languageName: node
8017+
linkType: hard
8018+
80118019
"webidl-conversions@npm:^3.0.0":
80128020
version: 3.0.1
80138021
resolution: "webidl-conversions@npm:3.0.1"

0 commit comments

Comments
 (0)