Skip to content

fix: Web compatibility #351

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

Merged
merged 6 commits into from
May 13, 2020
Merged

fix: Web compatibility #351

merged 6 commits into from
May 13, 2020

Conversation

krizzu
Copy link
Member

@krizzu krizzu commented May 11, 2020

Summary:

Since we target web, Async Storage needs to be available to use by CRA too.
What has been done:

  • moved source to src/
  • used bob to create commonjs/es modules compatible bundles
  • Changed mock to be commonjs module and type-less (removed Flow)

Test Plan:

Green CI.

Copy link

@satya164 satya164 left a comment

Choose a reason for hiding this comment

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

Since you're renaming files, I'd suggest to use *.native.js and *.js instead of *.js and *.web.js to have files for native and web. This is because metro supports *.native.js by default, but webpack doesn't support *.web.js by default (I think it used to but doesn't anymore). So this will be one less configuration to do.

@krizzu krizzu merged commit 85c5278 into master May 13, 2020
@krizzu krizzu deleted the small-cleanup branch June 18, 2020 18:50
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.

3 participants