Skip to content

Upgrade async storage to v2 #929

@kostyazgara

Description

@kostyazgara

Describe the bug
The SDK is using an outdated async storage lib that creates an ambiguous situation when need to use async storage lib in the project.

To reproduce
Install launchdarkly SDK version 10.10.5 and async storage 2.2.0

Expected behavior
LaunchDarkly SDK must use the latest version of async storage lib so that I can supress warnings from npx expo-doctor

Logs
Here is a result of running npx expo-doctor

Your project contains duplicate native module dependencies, which should be de-duplicated.
Native builds may only contain one version of any given native module, and having multiple versions of a single Native module installed may lead to unexpected build errors.
Found duplicates for @react-native-async-storage/async-storage:
  ├─ @react-native-async-storage/[email protected] (at: node_modules/@react-native-async-storage/async-storage)
  └─ @react-native-async-storage/[email protected] (at: node_modules/@launchdarkly/react-native-client-sdk/node_modules/@react-native-async-storage/async-storage)

SDK version
10.10.5

Language version, developer tools

OS/platform

  • MacOS 15
  • Node.JS 22
  • Expo 54
  • React Native 0.81

Additional context

Metadata

Metadata

Labels

bugSomething isn't workingpackage: sdk/react-nativeIssues that affect the react native SDK.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions