Read values from asyncStorage in native module

You want to:

Read (and possibly write) data from asyncStorage in native module (java/swift)

Details:

Hi there 👋
Is there a way to read (and possibly write) saved data by js code from native module?
I found some workarounds for java on Stackoverflow but posts there are from more than 3 years ago.
If currently there is no public api for it could you please point me into right direction of implementing something which might be at least a bit future proof (considering ASv2 work)?

1 possible answer(s) on “Read values from asyncStorage in native module

  1. I’ll try to confirm that when I’m not on mobile 😅

    I’ve used

    AsyncLocalStorageUtil.getItemImpl(ReactDatabaseSupplier.getInstance(context).get(), "key"));
    

    and it seems to be working.

    Question is – is it safe? Is there a possibility of ie. memory leaks?