asyncstorage-down icon indicating copy to clipboard operation
asyncstorage-down copied to clipboard

Fix/async library deprecation

Open grantbi opened this issue 2 years ago • 2 comments

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

grantbi avatar May 04 '22 19:05 grantbi

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"
      }
    }
  },
  ...
}

resucutie avatar Jan 30 '24 20:01 resucutie

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

mvayngrib avatar Jan 31 '24 11:01 mvayngrib