oasislabs / oasis.js

🕸A web client for the Oasis platform
Apache License 2.0
33 stars 11 forks source link

React Native Support #148

Open armaniferrante opened 5 years ago

armaniferrante commented 5 years ago

Bumping this to P1. It might be required for your app discussion @naheed.

armaniferrante commented 4 years ago

My interpretation of https://github.com/react-native-community/jsc-android-buildscripts/issues/113 is that WebAssembly is not supported in JavaScript Core on Android and iOS.

If this is true, we won't be able to support the convenience service apis like oasis.Service.at(address) or oasis.deploy({ bytecode }) in react-native.

Instead, the IDL will need to be provided to the client so that we don't try to instantiate WebAssembly modules. The above would turn into,

new oasis.Service(idl, address), and oasis.deploy({ bytecode, idl }).