Skip to content

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