Skip to content

Commit

Permalink
[windows] Add ReactPropertyBag option for DB path initialization
Browse files Browse the repository at this point in the history
WinAppSDK apps do not support the current methods for setting / retrieving the DB path for the default storage in @react-native-async-storage/async-storage. Specifically, winrt::CoreApplication::Properties() causes a crashes on WinAppSDK.

To work around this, this change adds a specific namespaced key (ReactNativeAsyncStorage.Path) to the ReactPropertyBag for apps to register the overridden DB path for WinAppSDK apps (or apps that otherwise cannot use winrt::CoreApplication::Properties()).
  • Loading branch information
rozele committed Apr 23, 2024
1 parent 905182c commit 8a08a54
Show file tree
Hide file tree
Showing 3 changed files with 898 additions and 879 deletions.

0 comments on commit 8a08a54

Please sign in to comment.