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 Display JS exceptions and stacks in a red box. 2016-06-30 19:43:28 -07:00
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 Pull CADisplayLink into a separate file 2016-03-29 19:53:20 -07:00
RCTDisplayLink.m Remove last arg from RCTProfileEnd, make macro's function-like 2016-09-05 11:13:33 -07:00
RCTErrorCustomizer.h Add ability to customize error messages and stacks within the iOS redbox 2016-07-18 11:28:36 -07:00
RCTErrorInfo.h Add ability to customize error messages and stacks within the iOS redbox 2016-07-18 11:28:36 -07:00
RCTErrorInfo.m Add ability to customize error messages and stacks within the iOS redbox 2016-07-18 11:28:36 -07:00
RCTEventDispatcher.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTEventDispatcher.m Dispatch native handled events to JS 2016-11-23 05:43:35 -08:00
RCTFrameUpdate.h Pause JS DisplayLink if nothing to process. 2015-09-29 09:22:10 -07:00
RCTFrameUpdate.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTImageSource.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTImageSource.m Revert D5197885 to unbreak Internal App 2017-06-23 13:05:49 -07:00
RCTInvalidating.h Remove isValid from RCTInvalidating 2015-08-14 01:57:18 -08:00
RCTJSCErrorHandling.h Tease apart React and RCTBatchedBridge targets 2017-03-21 18:31:23 -07:00
RCTJSCErrorHandling.mm More verbose error messages for iOS 2017-04-18 14:19:13 -07:00
RCTJSEnvironment.h Make RCTSamplingProfilerPackagerMethod not depend on RCTBridge 2017-06-15 12:07:34 -07:00
RCTJSStackFrame.h Class for JS stack frames instead of dictionaries 2016-07-11 06:13:32 -07:00
RCTJSStackFrame.m Redo error handling on iOS 2017-10-05 13:31:55 -07:00
RCTJavaScriptExecutor.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
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 Add Shortcut "Double R" to Reload JS in iOS 2016-06-01 03:43:27 -07:00
RCTKeyCommands.m Fix format warnings for clang 5.0 2017-09-25 10:30:53 -07:00
RCTLog.h Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
RCTLog.mm Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
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 Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
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 Refactor measuring native requires 2016-09-09 15:28:44 -07:00
RCTPerformanceLogger.m Refactor measuring native requires 2016-09-09 15:28:44 -07:00
RCTPlatform.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
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 Immediately trigger renderApplication from RCTRootView init 2017-04-21 07:04:57 -07:00
RCTRootContentView.m Immediately trigger renderApplication from RCTRootView init 2017-04-21 07:04:57 -07:00
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 RCTRootView's `intrinsicSize` property was deprecated in favour of `intrinsicContentSize` 2017-02-27 14:04:58 -08:00
RCTRootViewInternal.h RCTRootView's `intrinsicSize` property was deprecated in favour of `intrinsicContentSize` 2017-02-27 14:04:58 -08:00
RCTTVRemoteHandler.h Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
RCTTVRemoteHandler.m Fix podspec test 2017-08-09 07:04:59 -07:00
RCTTouchEvent.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTTouchEvent.m New way to handle simultaneously active gesture recognizers in RCTTouchHandler 2017-01-12 12:13:28 -08:00
RCTTouchHandler.h Nobody outside RCTTouchHandler should treat it as UIGestureRecognizer subclass 2017-01-09 00:13:33 -08:00
RCTTouchHandler.m Do not warn if `touch.force` is NaN 2017-04-26 15:16:16 -07:00
RCTURLRequestDelegate.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTURLRequestHandler.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
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