Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/async library deprecation #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

grantbi
Copy link

@grantbi grantbi commented May 4, 2022

React-Native AsyncStorage has been deprecated. This is updating to the new library.

@resucutie
Copy link

If you want to apply this to your project: add this to your package.json

{
  ...
  "dependencies": {
    "asyncstorage-down": "github:tradle/asyncstorage-down#pull/14/head",
  }
  ...
}

If you came here because of react-native-level-fs (you can modify for other projects as well)

{
  ...
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.21.0",
    "asyncstorage-down": "github:tradle/asyncstorage-down#pull/14/head",
  }
  ...
    "overrides": {
    "react-native-level-fs": {
      "asyncstorage-down": {
        ".": "$asyncstorage-down",
        "@react-native-async-storage/async-storage": "$@react-native-async-storage/async-storage"
      }
    }
  },
  ...
}

@mvayngrib
Copy link
Member

thanks for the PR @grantbi but atm it's broken - tests don't pass 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants