Skip to content

polyfill react native demo app to work with AWS SDK v3#289

Merged
fuxinhui-amzn merged 1 commit intomasterfrom
fuxinhui/polyfill-react-native-for-aws-sdk-v3
Jun 23, 2025
Merged

polyfill react native demo app to work with AWS SDK v3#289
fuxinhui-amzn merged 1 commit intomasterfrom
fuxinhui/polyfill-react-native-for-aws-sdk-v3

Conversation

@fuxinhui-amzn
Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Reason of the change:
The React Native demo app's dependency - ChatJS, has been updated to use AWS-SDK-JS v3. This new version relies on certain Web APIs that are not natively available in the React Native environment. To ensure compatibility, we need to implement polyfills for the following:

  • Crypto.getRandomValues()
  • ReadableStream
  • TextEncoding
  • ArrayBuffer

Key updates :

  • Created a new src/polyfills.js file to patches missing supported web APIs.
  • Integrated polyfills into the main - App.js file
  • Updated amazon-connect-chatjs to the latest version (3.1.1)
  • Modified the README to include instructions for configuring polyfills

Recording of manual testing:

  • With the polyfill changes, the React Native demo app works well with amazon-connect-chatjs latest version (3.1.1)
  • Recording Link

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@fuxinhui-amzn fuxinhui-amzn requested a review from a team as a code owner June 23, 2025 21:07
@fuxinhui-amzn fuxinhui-amzn requested review from palna26, spenlep-amzn and xiajon and removed request for a team and palna26 June 23, 2025 21:07
@fuxinhui-amzn fuxinhui-amzn merged commit 061ad6c into master Jun 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants