Skip to content

[Bug] App crashing when using useMMKVStorage hook #363

@CoryWritesCode

Description

@CoryWritesCode

Describe the bug
There seems to be an issue with initializing this hook.
This does not happen with 0.9.1 and it seems to be mostly an iOS issue. Hopefully that will help in narrowing it down.
I'm also not able to reproduce it on a debug build. Not sure why that is exactly.

For the time being I downgraded my MMVK package and it's working fine.
I have also noticed that it's crashing when we have users trying to "update" their app with the downgraded version.

edit
I found when clearing the library cache of the current user and then having them re-log in, all seems well. So it seems like there is something the old version of the lib is binding that the new version of the lib is not finding properly.

To Reproduce
Steps to reproduce the behavior:

  1. Use the useMMKVStorage() hook

Expected behavior
It returns false if the value is not there.

Screenshots
App crashes with Exception in HostFunction: <unknown>
image

How I'm initializing the storage
image

Platform Information:

  • OS: Seems to mostly be iOS related.
  • React Native Version 0.74.5
  • Library Version 0.10.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions