Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda