ReactMethod

annotation class ReactMethod(val isBlockingSynchronousMethod: Boolean = false)

Annotation which is used to mark methods that are exposed to React Native.

This applies to derived classes of BaseJavaModule, which will generate a list of exported methods by searching for those which are annotated with this annotation and adding a JS callback for each.

Properties

Link copied to clipboard

Whether the method can be called from JS synchronously on the JS thread, possibly returning a result.