You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project is based on react native and utilises amazon-chime-sdk-js and @aws-sdk/client-chime-sdk-messaging for chat. While initializing default session on react native,amazon-chime-sdk-js throws error Cannot read property 'split' of null when it tried to find major version of browser.
Hi @harryy2510 , we are using detect() API of detect-browser library to retrieve the browser info in DefaultBrwoserBehavior.js. It seems for react native, the browser info from detect() does not contain a valid value for version, and in this cause your fix serves as a safe guard.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.The project is based on react native and utilises
amazon-chime-sdk-js
and@aws-sdk/client-chime-sdk-messaging
for chat. While initializing default session on react native,amazon-chime-sdk-js
throws errorCannot read property 'split' of null
when it tried to find major version of browser.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: