What is the best way to export a method with a return value in React Native?
I know there is RCT_EXPORT_METHOD, but that only works for methods that are
RCT_EXPORT_METHOD
Try return values with Callbacks
RCT_EXPORT_METHOD(findEvents:(RCTResponseSenderBlock)callback) { NSArray *events = ... callback(@[[NSNull null], events]); }