ReferenceError: Can't find variable: localStorage

// Detailed description of issue.
whenever i am trying to connect with sendbird getting this error on android and iOS (react native)
ReferenceError: Can’t find variable: localStorage

// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
“sendbird”: “^3.1.31”,
“sendbird-desk”: “^1.0.22”,

[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
sendbird.connect('123456', (err, user) => {})

// How frequently is this issue occurring?
everytime when connecting

[Current impact]
// How is this currently impacting your implementation?
not able to run the app


Are you utilizing localCaching in your Sendbird configuration?
If so, you’ll need to install AsyncStroage

import AsyncStorage from '@react-native-async-storage/async-storage';


Looks like Engineering actually just released 3.1.32 that should address this issue. Looks like it fixes a bug that was introduced in 3.1.30.


Thanks @Tyler for the update.
Yes version 3.1.32 is working now.


its working after 3.1.32 version.
kudos to @Tyler