Help: AsyncStorage.getItem()

Please provide the following:

  1. all Version:
  2. Platforms(Android):

Hi, Is there some replace solution of AsyncStorage.getItem(), this method is very slow in android platform, but we can not find any other way to workaround.

Hey @pulsegame,

The SecureStore module is an alternative to AsyncStorage that you could try. https://docs.expo.io/versions/v35.0.0/sdk/securestore/

Cheers,
Adam

Tengo una consulta , a que se debe la lentitud de async storage en android ?

Thank you Adamjnav

1 Like

Hi

I saw a post somewhere (maybe twitter?) recently about why this is. Apparently there’s a fixed sized threadpool for running AsyncStorage + certain other tasks and if too much is happening when you try to run your Async Storage query it has to wait for a thread to become available. (Or at least that’s what I remember.)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.