React Native to Go connection
- caller provides a callback
- check for availability of current Activity
- if available: call a static method on
StatusGovia an ExecutorService (or sometimes a Thread) and use its result as callback payload
- else: ivoke callback with false as payload
From RN perspective calls do not block, result is provided through callback execution.
StatusGo is a C library generated from go cade embeded in Status apps. On android it is packaged as a JNI
aar (generated using xgo).
StatusGo directly expose
status-go methods marked for exportation. Those methods are defined in cmd/statusd/library.go and marked as
go side calls are then dispatched to geth/api then geth/jail
Data is provided to the go layer as primitive types and retieved RN side as JSON.