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
I am currently integrating the SDK in a React Native app written mainly with TypeScript.
So far Swell JS SDK works well, there are only two blocking issues:
Buffer has to be set as a global variable to that SDK works correctly
Session management relies exclusively on browser cookies. Maybe there is an abstraction layer to add for supporting both web and React Native?
For the moment, I have created a quick and dirty workaround to emulate document object (cookies are saved separately using AsyncStorage).
@codingstyle glad you brought this up and we definitely want to support React Native. I suppose we could test whether global.document exists and if not use a mock like your example.
I am currently integrating the SDK in a React Native app written mainly with TypeScript.
So far Swell JS SDK works well, there are only two blocking issues:
For the moment, I have created a quick and dirty workaround to emulate document object (cookies are saved separately using
AsyncStorage
).This is main
index.js
:And this is
SwellUtils.ts
file for the cookie workaround:The text was updated successfully, but these errors were encountered: