react-native/React/Base
Kevin Gozali 47bfbbb1d3 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
2017-10-17 06:15:13 -07:00
..
RCTAssert.h Remove deprecated RCTAssert aliases 2017-07-07 12:21:59 -07:00
RCTAssert.m
RCTBatchedBridge.mm Removing fallback source URL from JS bridge 2017-09-12 15:54:59 -07:00
RCTBridge+Private.h Thread the JSI runtime descriptor up into the RCTDevMenu title 2017-09-05 15:02:19 -07:00
RCTBridge.h add files changed count to reload metrics 2017-08-31 05:34:48 -07:00
RCTBridge.m add files changed count to reload metrics 2017-08-31 05:34:48 -07:00
RCTBridgeDelegate.h add "jsBundlesDirectory" method to RCTBridgeDelegate 2017-10-12 12:33:21 -07:00
RCTBridgeMethod.h Replace exported method registration with statically allocated struct 2017-07-24 07:01:53 -07:00
RCTBridgeModule.h iOS: introduce RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD() macro to provide the return type of a sync method 2017-10-17 06:15:13 -07:00
RCTBundleURLProvider.h Add support for FBReactModule (Wilde) to use jsi/hermes with a bcbundle 2017-10-16 17:07:48 -07:00
RCTBundleURLProvider.m Add support for FBReactModule (Wilde) to use jsi/hermes with a bcbundle 2017-10-16 17:07:48 -07:00
RCTConvert.h Add a type cast to RCT_ENUM_CONVERTER for C++ compatibility 2017-06-15 19:07:21 -07:00
RCTConvert.m Fix format warnings for clang 5.0 2017-09-25 10:30:53 -07:00
RCTCxxConvert.h Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
RCTCxxConvert.m Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
RCTDefines.h Unify sampling profiler and reload logic by leveraging RCTPackagerConnection 2017-10-04 19:17:06 -07:00
RCTDisplayLink.h
RCTDisplayLink.m
RCTErrorCustomizer.h
RCTErrorInfo.h
RCTErrorInfo.m
RCTEventDispatcher.h
RCTEventDispatcher.m
RCTFrameUpdate.h
RCTFrameUpdate.m
RCTImageSource.h
RCTImageSource.m Revert D5197885 to unbreak Internal App 2017-06-23 13:05:49 -07:00
RCTInvalidating.h
RCTJSCErrorHandling.h
RCTJSCErrorHandling.mm
RCTJSEnvironment.h Make RCTSamplingProfilerPackagerMethod not depend on RCTBridge 2017-06-15 12:07:34 -07:00
RCTJSStackFrame.h
RCTJSStackFrame.m Redo error handling on iOS 2017-10-05 13:31:55 -07:00
RCTJavaScriptExecutor.h
RCTJavaScriptLoader.h add files changed count to reload metrics 2017-08-31 05:34:48 -07:00
RCTJavaScriptLoader.mm Fix Content-Type header checking of React/RCTJavascriptLoader.mm #15791 2017-09-19 19:50:07 -07:00
RCTKeyCommands.h
RCTKeyCommands.m Fix format warnings for clang 5.0 2017-09-25 10:30:53 -07:00
RCTLog.h
RCTLog.mm
RCTManagedPointer.h RCTManagedPointer fix ups 2017-09-01 08:08:06 -07:00
RCTManagedPointer.mm Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
RCTModuleData.h Merge allowOffMainQueueRegistration and requiresMainQueueSetup 2017-07-17 03:45:30 -07:00
RCTModuleData.mm Improve RCTCxxBridge invalidation 2017-09-11 04:30:31 -07:00
RCTModuleMethod.h Replace exported method registration with statically allocated struct 2017-07-24 07:01:53 -07:00
RCTModuleMethod.mm Fix format warnings for clang 5.0 2017-09-25 10:30:53 -07:00
RCTMultipartDataTask.h Show bundle download progress on iOS 2017-08-14 11:05:35 -07:00
RCTMultipartDataTask.m Show bundle download progress on iOS 2017-08-14 11:05:35 -07:00
RCTMultipartStreamReader.h Show bundle download progress on iOS 2017-08-14 11:05:35 -07:00
RCTMultipartStreamReader.m Change intValue -> integerValue in RCTMultipartStreamReader 2017-09-05 10:02:44 -07:00
RCTNullability.h
RCTParserUtils.h Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
RCTParserUtils.m Allow Cxx references to be used in native module's method signature 2017-09-07 09:17:04 -07:00
RCTPerformanceLogger.h
RCTPerformanceLogger.m
RCTPlatform.h
RCTPlatform.m Move JS-native version check to its own module + unit tests + prefix Obj-C macro w/RCT 2017-10-16 14:30:34 -07:00
RCTReloadCommand.h Redo error handling on iOS 2017-10-05 13:31:55 -07:00
RCTReloadCommand.m Redo error handling on iOS 2017-10-05 13:31:55 -07:00
RCTRootContentView.h
RCTRootContentView.m
RCTRootView.h Clean up -[RCTRootView cancelTouches] header docs 2017-07-11 11:06:21 -07:00
RCTRootView.m Removed unused ivar (`_launchOptions`) from `RCTRootView` 2017-07-24 09:42:06 -07:00
RCTRootViewDelegate.h
RCTRootViewInternal.h
RCTTVRemoteHandler.h
RCTTVRemoteHandler.m Fix podspec test 2017-08-09 07:04:59 -07:00
RCTTouchEvent.h
RCTTouchEvent.m
RCTTouchHandler.h
RCTTouchHandler.m
RCTURLRequestDelegate.h
RCTURLRequestHandler.h
RCTUtils.h Improve definition of RCTNilIfNull 2017-08-09 03:35:16 -07:00
RCTUtils.m Fix build errors exposed by building against clang 5.0 2017-09-14 00:35:02 -07:00
RCTVersion.h Move JS-native version check to its own module + unit tests + prefix Obj-C macro w/RCT 2017-10-16 14:30:34 -07:00