Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
null is not an object (evaluating 'RCTAsyncStorage.multiMerge')

I recently upgraded to Expo SDK 43.

I am now getting this error:

The line of code throwing it is:

if (!RCTAsyncStorage.multiMerge) {

I am on the latest version of AsyncStorage.

This seems to be due to my usage of firebase-js-sdk.

Unfortunately as this is an iOS/Android/Web project, it's necessary.

When I mock my Firebase exports, everything works:

const auth = () => {};

const analytics = () => {};

export default { auth, analytics };

But when I use the firebase-js-sdk functions, I get the above message.

This code causes an error (whichever version of auth I use)

let auth = initializeAuth(config, {
  persistence: getReactNativePersistence(AsyncStorage),
});
//let auth = getAuth(config);
let analytics = getAnalytics(config);

export default { auth, analytics };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You could avoid that specific error by adding optional chaining (the question mark '?'):

if (!RCTAsyncStorage?.multiMerge) {

It will shortcircuit to undefined (thus making the if false) instead of throwing error from trying to check in the null object.

As to why RCTAsyncStorage would be null, you would have to check where you first get/declare it, and traceback to the point it didn't load, maybe you are using something conflicting from firebase-js-sdk.

Also multiMerge might not be supported always as mentioned in the docs:

multiMerge
[...] NOTE: This is not supported by all native implementations.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!