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
As react native does not have window.localstorage, implementing the same with
AsyncStorage from '@react-native-async-storage/async-storage'; would be more sense.
i was checking the docs of supabase. This is how they did it
rohankm
changed the title
馃悰 Bug Report: localsorage to Async Storage when using React Native
馃悰 Bug Report: localstorage to Async Storage when using React Native
Jul 8, 2022
@stnguyen90 SDK throws the exception below, when trying to subscribe. This is due to that it uses localStorage which is not available in React Native.
TypeError: Cannot read properties of undefined (reading 'getItem')
at WebSocket.onMessage (/xxx/node_modules/appwrite/dist/cjs/sdk.js:181:81)
stnguyen90
changed the title
馃悰 Bug Report: localstorage to Async Storage when using React Native
馃悰 Bug Report: Realtime doesn't work on React Native
Nov 10, 2022
馃憻 Reproduction steps
馃憤 Expected behavior
As react native does not have window.localstorage, implementing the same with
AsyncStorage from '@react-native-async-storage/async-storage'; would be more sense.
i was checking the docs of supabase. This is how they did it
implementing something like this would be helpful
馃憥 Actual Behavior
馃幉 Appwrite version
Version 0.10.x
馃捇 Operating system
MacOS
馃П Your Environment
No response
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: