Javascript bridge
Until now Terra
sdk is written in native android/iOS only, there are no support for web Javascript
yet.
However as a web
app runs inside a WebView, or a react-native
app inside a native host app, you can still leverage Terra
native API with just some extra setup.
#
Setup for native sideTo enable Javascript bridge
support for web
/react-native
side to use, please install the native bridge parts of Terra
's modules. You can choose to install web
bridge, react-native
bridge or both:
web
app#
Setup For Install bridge module:
Inside your web
app, import it in every files that use Terra
api:
react-native
app#
Setup for Install bridge module:
Inside your react-native
app, import it in every files that use Terra
api:
#
Javascript APIYou can find guideline for Javascript API in Javascript
tab of code sample, like this one
Please note that not every API is ready for Javascript
yet, we are still working on it!