Skip to content

chore: remove .expo extension in favor of generic fallback to legacy native module mechanism #544

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

Conversation

brentvatne
Copy link
Contributor

Summary

Expo is moving away from .expo.js files, so for async-storage to continue working I have moved the environment check to a shouldFallbackToLegacyNativeModule() function instead of RCTAsyncStorage.expo.js. This function is only invoked if the native modules that ship with this library are not defined.

Test Plan

  • yarn test
  • yarn start
  • yarn start:ios
  • Run example in Android Studio
  • I don't have a Windows machine so I could not try Windows, but it will work the same as iOS/Android for the code changed and I imagine CI will cover that.

@brentvatne brentvatne force-pushed the @brent/remove-expo-extension branch from deb88bf to 71b84a2 Compare February 19, 2021 22:14
Copy link
Member

@krizzu krizzu left a comment

Choose a reason for hiding this comment

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

This looks good, thanks 🙏

@krizzu krizzu merged commit aca9af9 into react-native-async-storage:master Feb 22, 2021
@krizzu
Copy link
Member

krizzu commented Feb 22, 2021

🎉 This PR is included in version 1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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