Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS: introduce RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD() macro to provide…
… the return type of a sync method Summary: This provides a way to customize the return type of a sync exported method, instead of just using `id`. ``` RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSString *, sync1:(NSString *)x) { return @"hello"; } ``` The return type needs to be a sub type of `id` - so scalars like `double` won't work (the bridge will crash). Differential Revision: D6068884 fbshipit-source-id: 43a98141f1d0aef335aa0b33a24219f8e574e58b
- Loading branch information