Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix resolution of AsyncStorage (#435) #437

Merged
merged 2 commits into from
Nov 22, 2019
Merged

fix resolution of AsyncStorage (#435) #437

merged 2 commits into from
Nov 22, 2019

Conversation

marhaupe
Copy link
Contributor

the resolution now matches the resolution of the @react-native-community/async-storage package.

@jhen0409, this includes the fix I suggested in #435. But while it works, we simply replicate the logic of the async-storage-lib. Is there a way to e.g. do something like this:

const RNAsyncStorage = require('@react-native-community/async-storage') || require('react-native')

This obviously does not work, but illustrates my point. It would make maintaining this part of the debugger probably a bit easier.

Anyway, thanks for welcoming my pull request. I hope this helps.

the resolution now matches the resolution of the  @react-native-community/async-storage package.
NativeModules.AsyncLocalStorage);
(NativeModules.RNC_AsyncSQLiteDBStorage ||
NativeModules.RNCAsyncStorage ||
NativeModules.PlatformLocalStorage);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep using the native modules from react-native as fallback for who haven't yet to link @react-native-community/async-storage. Just make sure RNCAsyncStorage in front.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, just pushed the fix.

@jhen0409
Copy link
Owner

Thanks!

@jhen0409 jhen0409 merged commit 65a0859 into jhen0409:master Nov 22, 2019
cryptodev523 pushed a commit to cryptodev523/react-native-debugger that referenced this pull request Jan 27, 2022
* fix resolution of AsyncStorage (jhen0409#435)

the resolution now matches the resolution of the  @react-native-community/async-storage package.

* add fallback dependencies
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.

2 participants