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

Provide Example With Local .wasm File #4

Closed
skyworms opened this issue Apr 11, 2023 · 3 comments
Closed

Provide Example With Local .wasm File #4

skyworms opened this issue Apr 11, 2023 · 3 comments

Comments

@skyworms
Copy link

Would it be possible to provide an example using a local .wasm file instead of retrieving one with axios? I'm having trouble setting up a test project with a local .wasm file and was wondering if it's possible or if axios is actually necessary.

@cawfree
Copy link
Owner

cawfree commented Apr 11, 2023

This is a good idea, I'll add an example for this. 🙏

@cawfree
Copy link
Owner

cawfree commented Apr 12, 2023

Hey @skyworms!

I've released the ability to import local WebAssembly files as part of Release 0.2.5, so you'll need to update to the latest version of react-native-webassembly. The included example in the repository now shows how to configure a target project to enable local file resolution; check out this commit for a comprehensive example.

Apologies for the turnaround time, hope this didn't block you too badly.

Good luck! If you encounter any issues, please let me know!

@cawfree cawfree closed this as completed Apr 12, 2023
@skyworms
Copy link
Author

It works! Thank you so much!

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

No branches or pull requests

2 participants