Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
av1ctor authored Feb 2, 2023
1 parent bf12468 commit 96a13cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions react-native/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# React Native and Motoko integration
1. Run: npm install
2. Generate the APK for Android following this guide: https://reactnative.dev/docs/0.70/signed-apk-android
3. Run on the iOS Simulator: https://reactnative.dev/docs/0.70/running-on-simulator-ios (sorry, I don't have an iPhone to test)

## Notes
1. There's no support for Wasm on Android and iOS (the former uses a JavaScript engine that doesn't support WebAssembly and react-native-v8 fails when calling WASI.init(), and the latter only works on the iPhone Emulator and is disabled on the real hardware since iOS 15), we had to use wasm2js from https://github.com/WebAssembly/binaryen to be able to communicate with the Motoko lib
Expand Down

0 comments on commit 96a13cf

Please sign in to comment.