Skip to content

Fix/async library deprecation#14

Open
grantbi wants to merge 2 commits intotradle:masterfrom
grantbi:fix/asyncStorage
Open

Fix/async library deprecation#14
grantbi wants to merge 2 commits intotradle:masterfrom
grantbi:fix/asyncStorage

Conversation

@grantbi
Copy link
Copy Markdown

@grantbi grantbi commented May 4, 2022

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

@resucutie
Copy link
Copy Markdown

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
Copy Markdown
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