diff --git a/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm b/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm index 5ca05feb84c..152c9f7ae7d 100644 --- a/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +++ b/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm @@ -4,20 +4,18 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated by an internal genrule from Flow types. + * @generated by codegen project: GenerateModuleObjCpp * * We create an umbrella header (and corresponding implementation) here since * Cxx compilation in BUCK has a limitation: source-code producing genrule()s * must have a single output. More files => more genrule()s => slower builds. */ -#import "FBReactNativeSpec.h" -#import +#import "FBReactNativeSpec.h" namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isReduceMotionEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isReduceMotionEnabled", @selector(isReduceMotionEnabled:), args, count); @@ -35,7 +33,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibility", @selector(announceForAccessibility:), args, count); } - NativeAccessibilityInfoSpecJSI::NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -50,10 +47,7 @@ namespace facebook { methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_announceForAccessibility}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) @@ -64,7 +58,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentBoldTextState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentBoldTextState", @selector(getCurrentBoldTextState:onError:), args, count); @@ -102,7 +95,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibility", @selector(announceForAccessibility:), args, count); } - NativeAccessibilityManagerSpecJSI::NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -125,7 +117,6 @@ namespace facebook { methodMap_["setAccessibilityContentSizeMultipliers"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityContentSizeMultipliers}; - setMethodArgConversionSelector(@"setAccessibilityContentSizeMultipliers", 0, @"JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:"); methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityFocus}; @@ -133,10 +124,7 @@ namespace facebook { methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibility}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions) @@ -151,15 +139,8 @@ namespace facebook { return facebook::react::managedPointer(json); } @end -@implementation RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsFailureCallbackError) -+ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsFailureCallbackError:(id)json -{ - return facebook::react::managedPointer(json); -} -@end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showActionSheetWithOptions", @selector(showActionSheetWithOptions:callback:), args, count); @@ -169,21 +150,15 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showShareActionSheetWithOptions", @selector(showShareActionSheetWithOptions:failureCallback:successCallback:), args, count); } - NativeActionSheetManagerSpecJSI::NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["showActionSheetWithOptions"] = MethodMetadata {2, __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions}; - setMethodArgConversionSelector(@"showActionSheetWithOptions", 0, @"JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:"); methodMap_["showShareActionSheetWithOptions"] = MethodMetadata {3, __hostFunction_NativeActionSheetManagerSpecJSI_showShareActionSheetWithOptions}; - setMethodArgConversionSelector(@"showShareActionSheetWithOptions", 0, @"JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:"); - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeAlertManager_Args) @@ -194,31 +169,19 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "alertWithArgs", @selector(alertWithArgs:callback:), args, count); } - NativeAlertManagerSpecJSI::NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["alertWithArgs"] = MethodMetadata {2, __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs}; - setMethodArgConversionSelector(@"alertWithArgs", 0, @"JS_NativeAlertManager_Args:"); - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeAnimatedModule_EndResult) -+ (RCTManagedPointer *)JS_NativeAnimatedModule_EndResult:(id)json -{ - return facebook::react::managedPointer(json); -} -@end @implementation RCTCxxConvert (NativeAnimatedModule_EventMapping) + (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json { @@ -227,7 +190,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startOperationBatch", @selector(startOperationBatch), args, count); @@ -317,7 +279,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeAnimatedModuleSpecJSI::NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -376,7 +337,6 @@ namespace facebook { methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleSpecJSI_addAnimatedEventToView}; - setMethodArgConversionSelector(@"addAnimatedEventToView", 2, @"JS_NativeAnimatedModule_EventMapping:"); methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleSpecJSI_removeAnimatedEventFromView}; @@ -387,18 +347,9 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeAnimatedTurboModule_EndResult) -+ (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EndResult:(id)json -{ - return facebook::react::managedPointer(json); -} -@end @implementation RCTCxxConvert (NativeAnimatedTurboModule_EventMapping) + (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json { @@ -407,7 +358,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startOperationBatch", @selector(startOperationBatch), args, count); @@ -497,7 +447,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeAnimatedTurboModuleSpecJSI::NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -556,7 +505,6 @@ namespace facebook { methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleSpecJSI_addAnimatedEventToView}; - setMethodArgConversionSelector(@"addAnimatedEventToView", 2, @"JS_NativeAnimatedTurboModule_EventMapping:"); methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeAnimatedEventFromView}; @@ -567,15 +515,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAnimationsDebugModuleSpecJSI_startRecordingFps(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startRecordingFps", @selector(startRecordingFps), args, count); @@ -585,7 +530,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopRecordingFps", @selector(stopRecordingFps:), args, count); } - NativeAnimationsDebugModuleSpecJSI::NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -594,21 +538,12 @@ namespace facebook { methodMap_["stopRecordingFps"] = MethodMetadata {1, __hostFunction_NativeAnimationsDebugModuleSpecJSI_stopRecordingFps}; - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeAppState_SpecGetCurrentAppStateSuccessAppState) -+ (RCTManagedPointer *)JS_NativeAppState_SpecGetCurrentAppStateSuccessAppState:(id)json -{ - return facebook::react::managedPointer(json); -} -@end + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_getCurrentAppState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentAppState", @selector(getCurrentAppState:error:), args, count); @@ -626,7 +561,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeAppStateSpecJSI::NativeAppStateSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -641,15 +575,12 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppStateSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_getColorScheme(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, StringKind, "getColorScheme", @selector(getColorScheme), args, count); @@ -663,7 +594,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeAppearanceSpecJSI::NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -675,80 +605,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeAppearance_AppearancePreferences) -+ (RCTManagedPointer *)JS_NativeAppearance_AppearancePreferences:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -folly::Optional NSStringToNativeAppearanceColorSchemeName(NSString *value) { - static NSDictionary *dict = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - dict = @{ - @"light": @0, - @"dark": @1, - }; - }); - return value ? (NativeAppearanceColorSchemeName)[dict[value] integerValue] : folly::Optional{}; -} -NSString *NativeAppearanceColorSchemeNameToNSString(folly::Optional value) { - static NSDictionary *dict = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - dict = @{ - @0: @"light", - @1: @"dark", - }; - }); - return value.hasValue() ? dict[@(value.value())] : nil; -} -@implementation RCTCxxConvert (NativeAsyncStorage_SpecMultiGetCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiGetCallbackErrorsElement:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeAsyncStorage_SpecMultiSetCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiSetCallbackErrorsElement:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeAsyncStorage_SpecMultiMergeCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiMergeCallbackErrorsElement:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeAsyncStorage_SpecMultiRemoveCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiRemoveCallbackErrorsElement:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeAsyncStorage_SpecClearCallbackError) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecClearCallbackError:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeAsyncStorage_SpecGetAllKeysCallbackError) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecGetAllKeysCallbackError:(id)json -{ - return facebook::react::managedPointer(json); -} -@end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeAsyncStorageSpecJSI_multiGet(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "multiGet", @selector(multiGet:callback:), args, count); @@ -774,7 +636,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getAllKeys", @selector(getAllKeys:), args, count); } - NativeAsyncStorageSpecJSI::NativeAsyncStorageSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -795,15 +656,12 @@ namespace facebook { methodMap_["getAllKeys"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_getAllKeys}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_addNetworkingHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addNetworkingHandler", @selector(addNetworkingHandler), args, count); @@ -833,7 +691,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeBlobModuleSpecJSI::NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -857,15 +714,12 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeBlobModuleSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_startReportAProblemFlow(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startReportAProblemFlow", @selector(startReportAProblemFlow), args, count); @@ -879,7 +733,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setCategoryID", @selector(setCategoryID:), args, count); } - NativeBugReportingSpecJSI::NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -891,15 +744,12 @@ namespace facebook { methodMap_["setCategoryID"] = MethodMetadata {1, __hostFunction_NativeBugReportingSpecJSI_setCategoryID}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeClipboardSpecJSI_getString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getString", @selector(getString:reject:), args, count); @@ -909,7 +759,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setString", @selector(setString:), args, count); } - NativeClipboardSpecJSI::NativeClipboardSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -918,35 +767,28 @@ namespace facebook { methodMap_["setString"] = MethodMetadata {1, __hostFunction_NativeClipboardSpecJSI_setString}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDatePickerAndroidSpecJSI_open(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "open", @selector(open:resolve:reject:), args, count); } - NativeDatePickerAndroidSpecJSI::NativeDatePickerAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["open"] = MethodMetadata {1, __hostFunction_NativeDatePickerAndroidSpecJSI_open}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDevLoadingViewSpecJSI_showMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showMessage", @selector(showMessage:withColor:withBackgroundColor:), args, count); @@ -956,7 +798,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hide", @selector(hide), args, count); } - NativeDevLoadingViewSpecJSI::NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -965,15 +806,12 @@ namespace facebook { methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeDevLoadingViewSpecJSI_hide}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show), args, count); @@ -995,7 +833,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHotLoadingEnabled", @selector(setHotLoadingEnabled:), args, count); } - NativeDevMenuSpecJSI::NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1013,15 +850,12 @@ namespace facebook { methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_setHotLoadingEnabled}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_reload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reload", @selector(reload), args, count); @@ -1067,7 +901,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setIsShakeToShowDevMenuEnabled", @selector(setIsShakeToShowDevMenuEnabled:), args, count); } - NativeDevSettingsSpecJSI::NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1103,70 +936,55 @@ namespace facebook { methodMap_["setIsShakeToShowDevMenuEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setIsShakeToShowDevMenuEnabled}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDevSplitBundleLoaderSpecJSI_loadBundle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "loadBundle", @selector(loadBundle:resolve:reject:), args, count); } - NativeDevSplitBundleLoaderSpecJSI::NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["loadBundle"] = MethodMetadata {1, __hostFunction_NativeDevSplitBundleLoaderSpecJSI_loadBundle}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "invokeDefaultBackPressHandler", @selector(invokeDefaultBackPressHandler), args, count); } - NativeDeviceEventManagerSpecJSI::NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDeviceInfoSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeDeviceInfoSpecJSI::NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeDialogManagerAndroid_DialogOptions) @@ -1177,7 +995,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeDialogManagerAndroidSpecJSI_showAlert(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showAlert", @selector(showAlert:onError:onAction:), args, count); @@ -1187,20 +1004,15 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeDialogManagerAndroidSpecJSI::NativeDialogManagerAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["showAlert"] = MethodMetadata {3, __hostFunction_NativeDialogManagerAndroidSpecJSI_showAlert}; - setMethodArgConversionSelector(@"showAlert", 0, @"JS_NativeDialogManagerAndroid_DialogOptions:"); methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDialogManagerAndroidSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeExceptionsManager_StackFrame) @@ -1217,7 +1029,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportFatalException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportFatalException", @selector(reportFatalException:stack:exceptionId:), args, count); @@ -1239,7 +1050,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismissRedbox", @selector(dismissRedbox), args, count); } - NativeExceptionsManagerSpecJSI::NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1250,7 +1060,6 @@ namespace facebook { methodMap_["reportException"] = MethodMetadata {1, __hostFunction_NativeExceptionsManagerSpecJSI_reportException}; - setMethodArgConversionSelector(@"reportException", 0, @"JS_NativeExceptionsManager_ExceptionData:"); methodMap_["updateExceptionMessage"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_updateExceptionMessage}; @@ -1258,15 +1067,12 @@ namespace facebook { methodMap_["dismissRedbox"] = MethodMetadata {0, __hostFunction_NativeExceptionsManagerSpecJSI_dismissRedbox}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeFileReaderModuleSpecJSI_readAsDataURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "readAsDataURL", @selector(readAsDataURL:resolve:reject:), args, count); @@ -1276,7 +1082,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "readAsText", @selector(readAsText:encoding:resolve:reject:), args, count); } - NativeFileReaderModuleSpecJSI::NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1285,10 +1090,7 @@ namespace facebook { methodMap_["readAsText"] = MethodMetadata {2, __hostFunction_NativeFileReaderModuleSpecJSI_readAsText}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions) @@ -1299,7 +1101,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setGlobalOptions", @selector(setGlobalOptions:), args, count); @@ -1317,12 +1118,10 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "endScroll", @selector(endScroll), args, count); } - NativeFrameRateLoggerSpecJSI::NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["setGlobalOptions"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions}; - setMethodArgConversionSelector(@"setGlobalOptions", 0, @"JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:"); methodMap_["setContext"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setContext}; @@ -1333,15 +1132,12 @@ namespace facebook { methodMap_["endScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerSpecJSI_endScroll}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskFinished(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "notifyTaskFinished", @selector(notifyTaskFinished:), args, count); @@ -1351,7 +1147,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "notifyTaskRetry", @selector(notifyTaskRetry:resolve:reject:), args, count); } - NativeHeadlessJsTaskSupportSpecJSI::NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1360,15 +1155,12 @@ namespace facebook { methodMap_["notifyTaskRetry"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskRetry}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_allowRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "allowRTL", @selector(allowRTL:), args, count); @@ -1386,7 +1178,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeI18nManagerSpecJSI::NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1401,10 +1192,7 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeI18nManagerSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeImageEditor_OptionsOffset) @@ -1433,28 +1221,22 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeImageEditorSpecJSI_cropImage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cropImage", @selector(cropImage:cropData:successCallback:errorCallback:), args, count); } - NativeImageEditorSpecJSI::NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["cropImage"] = MethodMetadata {4, __hostFunction_NativeImageEditorSpecJSI_cropImage}; - setMethodArgConversionSelector(@"cropImage", 1, @"JS_NativeImageEditor_Options:"); - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeImageLoaderAndroidSpecJSI_abortRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "abortRequest", @selector(abortRequest:), args, count); @@ -1476,7 +1258,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "queryCache", @selector(queryCache:resolve:reject:), args, count); } - NativeImageLoaderAndroidSpecJSI::NativeImageLoaderAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1494,15 +1275,12 @@ namespace facebook { methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderAndroidSpecJSI_queryCache}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_getSize(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getSize", @selector(getSize:resolve:reject:), args, count); @@ -1520,7 +1298,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "queryCache", @selector(queryCache:resolve:reject:), args, count); } - NativeImageLoaderIOSSpecJSI::NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1535,10 +1312,7 @@ namespace facebook { methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_queryCache}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeImagePickerIOS_SpecOpenCameraDialogConfig) @@ -1555,7 +1329,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeImagePickerIOSSpecJSI_canRecordVideos(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "canRecordVideos", @selector(canRecordVideos:), args, count); @@ -1581,7 +1354,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removePendingVideo", @selector(removePendingVideo:), args, count); } - NativeImagePickerIOSSpecJSI::NativeImagePickerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1592,11 +1364,9 @@ namespace facebook { methodMap_["openCameraDialog"] = MethodMetadata {3, __hostFunction_NativeImagePickerIOSSpecJSI_openCameraDialog}; - setMethodArgConversionSelector(@"openCameraDialog", 0, @"JS_NativeImagePickerIOS_SpecOpenCameraDialogConfig:"); methodMap_["openSelectDialog"] = MethodMetadata {3, __hostFunction_NativeImagePickerIOSSpecJSI_openSelectDialog}; - setMethodArgConversionSelector(@"openSelectDialog", 0, @"JS_NativeImagePickerIOS_SpecOpenSelectDialogConfig:"); methodMap_["clearAllPendingVideos"] = MethodMetadata {0, __hostFunction_NativeImagePickerIOSSpecJSI_clearAllPendingVideos}; @@ -1604,47 +1374,28 @@ namespace facebook { methodMap_["removePendingVideo"] = MethodMetadata {1, __hostFunction_NativeImagePickerIOSSpecJSI_removePendingVideo}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeImageStoreAndroidSpecJSI_getBase64ForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getBase64ForTag", @selector(getBase64ForTag:successCallback:errorCallback:), args, count); } - NativeImageStoreAndroidSpecJSI::NativeImageStoreAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreAndroidSpecJSI_getBase64ForTag}; - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeImageStoreIOS_SpecGetBase64ForTagErrorCallbackError) -+ (RCTManagedPointer *)JS_NativeImageStoreIOS_SpecGetBase64ForTagErrorCallbackError:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeImageStoreIOS_SpecAddImageFromBase64ErrorCallbackError) -+ (RCTManagedPointer *)JS_NativeImageStoreIOS_SpecAddImageFromBase64ErrorCallbackError:(id)json -{ - return facebook::react::managedPointer(json); -} -@end + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_getBase64ForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getBase64ForTag", @selector(getBase64ForTag:successCallback:errorCallback:), args, count); @@ -1662,7 +1413,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addImageFromBase64", @selector(addImageFromBase64:successCallback:errorCallback:), args, count); } - NativeImageStoreIOSSpecJSI::NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1677,55 +1427,44 @@ namespace facebook { methodMap_["addImageFromBase64"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSSpecJSI_addImageFromBase64}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeJSCHeapCaptureSpecJSI_captureComplete(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "captureComplete", @selector(captureComplete:error:), args, count); } - NativeJSCHeapCaptureSpecJSI::NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["captureComplete"] = MethodMetadata {2, __hostFunction_NativeJSCHeapCaptureSpecJSI_captureComplete}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "operationComplete", @selector(operationComplete:result:error:), args, count); } - NativeJSCSamplingProfilerSpecJSI::NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["operationComplete"] = MethodMetadata {3, __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeJSDevSupportSpecJSI_onSuccess(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "onSuccess", @selector(onSuccess:), args, count); @@ -1739,7 +1478,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeJSDevSupportSpecJSI::NativeJSDevSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1751,15 +1489,12 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeJSDevSupportSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeKeyboardObserverSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); @@ -1769,7 +1504,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeKeyboardObserverSpecJSI::NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1778,21 +1512,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeLinking_SpecSendIntentExtrasElement) -+ (RCTManagedPointer *)JS_NativeLinking_SpecSendIntentExtrasElement:(id)json -{ - return facebook::react::managedPointer(json); -} -@end + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeLinkingSpecJSI_getInitialURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getInitialURL", @selector(getInitialURL:reject:), args, count); @@ -1822,7 +1547,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeLinkingSpecJSI::NativeLinkingSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1846,15 +1570,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeLinkingSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeLogBoxSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show), args, count); @@ -1864,7 +1585,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hide", @selector(hide), args, count); } - NativeLogBoxSpecJSI::NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1873,15 +1593,12 @@ namespace facebook { methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeLogBoxSpecJSI_hide}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeModalManagerSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); @@ -1891,7 +1608,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeModalManagerSpecJSI::NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1900,15 +1616,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeModalManagerSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeNetworkingAndroidSpecJSI_sendRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendRequest", @selector(sendRequest:url:requestId:headers:data:responseType:useIncrementalUpdates:timeout:withCredentials:), args, count); @@ -1930,7 +1643,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeNetworkingAndroidSpecJSI::NativeNetworkingAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -1948,10 +1660,7 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingAndroidSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery) @@ -1962,7 +1671,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendRequest", @selector(sendRequest:callback:), args, count); @@ -1984,12 +1692,10 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeNetworkingIOSSpecJSI::NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["sendRequest"] = MethodMetadata {2, __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest}; - setMethodArgConversionSelector(@"sendRequest", 0, @"JS_NativeNetworkingIOS_SpecSendRequestQuery:"); methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_abortRequest}; @@ -2003,15 +1709,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativePermissionsAndroidSpecJSI_checkPermission(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "checkPermission", @selector(checkPermission:resolve:reject:), args, count); @@ -2029,7 +1732,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "requestMultiplePermissions", @selector(requestMultiplePermissions:resolve:reject:), args, count); } - NativePermissionsAndroidSpecJSI::NativePermissionsAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2044,15 +1746,12 @@ namespace facebook { methodMap_["requestMultiplePermissions"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidSpecJSI_requestMultiplePermissions}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativePlatformConstantsAndroidSpecJSI_getAndroidID(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, StringKind, "getAndroidID", @selector(getAndroidID), args, count); @@ -2062,7 +1761,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativePlatformConstantsAndroidSpecJSI::NativePlatformConstantsAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2071,30 +1769,23 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsAndroidSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativePlatformConstantsIOSSpecJSI::NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission) @@ -2103,12 +1794,6 @@ namespace facebook { return facebook::react::managedPointer(json); } @end -@implementation RCTCxxConvert (NativePushNotificationManagerIOS_Permissions) -+ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Permissions:(id)json -{ - return facebook::react::managedPointer(json); -} -@end @implementation RCTCxxConvert (NativePushNotificationManagerIOS_Notification) + (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json { @@ -2117,7 +1802,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_onFinishRemoteNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "onFinishRemoteNotification", @selector(onFinishRemoteNotification:fetchResult:), args, count); @@ -2187,7 +1871,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativePushNotificationManagerIOSSpecJSI::NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2201,7 +1884,6 @@ namespace facebook { methodMap_["requestPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_requestPermissions}; - setMethodArgConversionSelector(@"requestPermissions", 0, @"JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:"); methodMap_["abandonPermissions"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_abandonPermissions}; @@ -2211,11 +1893,9 @@ namespace facebook { methodMap_["presentLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_presentLocalNotification}; - setMethodArgConversionSelector(@"presentLocalNotification", 0, @"JS_NativePushNotificationManagerIOS_Notification:"); methodMap_["scheduleLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_scheduleLocalNotification}; - setMethodArgConversionSelector(@"scheduleLocalNotification", 0, @"JS_NativePushNotificationManagerIOS_Notification:"); methodMap_["cancelAllLocalNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelAllLocalNotifications}; @@ -2244,15 +1924,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeRedBoxSpecJSI_setExtraData(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setExtraData", @selector(setExtraData:forIdentifier:), args, count); @@ -2262,7 +1939,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismiss", @selector(dismiss), args, count); } - NativeRedBoxSpecJSI::NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2271,15 +1947,12 @@ namespace facebook { methodMap_["dismiss"] = MethodMetadata {0, __hostFunction_NativeRedBoxSpecJSI_dismiss}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeSegmentFetcherSpecJSI_fetchSegment(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "fetchSegment", @selector(fetchSegment:options:callback:), args, count); @@ -2289,7 +1962,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getSegment", @selector(getSegment:options:callback:), args, count); } - NativeSegmentFetcherSpecJSI::NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2298,15 +1970,12 @@ namespace facebook { methodMap_["getSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherSpecJSI_getSegment}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_setValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setValues", @selector(setValues:), args, count); @@ -2320,7 +1989,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeSettingsManagerSpecJSI::NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2332,10 +2000,7 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSettingsManagerSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeShareModule_SpecShareContent) @@ -2346,68 +2011,54 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeShareModuleSpecJSI_share(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "share", @selector(share:dialogTitle:resolve:reject:), args, count); } - NativeShareModuleSpecJSI::NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["share"] = MethodMetadata {2, __hostFunction_NativeShareModuleSpecJSI_share}; - setMethodArgConversionSelector(@"share", 0, @"JS_NativeShareModule_SpecShareContent:"); - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeSoundManagerSpecJSI_playTouchSound(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "playTouchSound", @selector(playTouchSound), args, count); } - NativeSoundManagerSpecJSI::NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["playTouchSound"] = MethodMetadata {0, __hostFunction_NativeSoundManagerSpecJSI_playTouchSound}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeSourceCodeSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeSourceCodeSpecJSI::NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSourceCodeSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerAndroidSpecJSI_setColor(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setColor", @selector(setColor:animated:), args, count); @@ -2429,7 +2080,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeStatusBarManagerAndroidSpecJSI::NativeStatusBarManagerAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2447,21 +2097,12 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerAndroidSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook -@implementation RCTCxxConvert (NativeStatusBarManagerIOS_SpecGetHeightCallbackResult) -+ (RCTManagedPointer *)JS_NativeStatusBarManagerIOS_SpecGetHeightCallbackResult:(id)json -{ - return facebook::react::managedPointer(json); -} -@end + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_getHeight(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getHeight", @selector(getHeight:), args, count); @@ -2491,7 +2132,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeStatusBarManagerIOSSpecJSI::NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2515,15 +2155,12 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerIOSSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeTVNavigationEventEmitterSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); @@ -2533,7 +2170,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeTVNavigationEventEmitterSpecJSI::NativeTVNavigationEventEmitterSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2542,15 +2178,12 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeTVNavigationEventEmitterSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_createTimer(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createTimer", @selector(createTimer:duration:jsSchedulingTime:repeats:), args, count); @@ -2564,7 +2197,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setSendIdleEvents", @selector(setSendIdleEvents:), args, count); } - NativeTimingSpecJSI::NativeTimingSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2576,15 +2208,12 @@ namespace facebook { methodMap_["setSendIdleEvents"] = MethodMetadata {1, __hostFunction_NativeTimingSpecJSI_setSendIdleEvents}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeToastAndroidSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show:duration:), args, count); @@ -2602,7 +2231,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); } - NativeToastAndroidSpecJSI::NativeToastAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2617,210 +2245,12 @@ namespace facebook { methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeToastAndroidSpecJSI_getConstants}; - - } - } // namespace react } // namespace facebook + namespace facebook { namespace react { - - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_getConstantsForViewManager(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstantsForViewManager", @selector(getConstantsForViewManager:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_getDefaultEventTypes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ArrayKind, "getDefaultEventTypes", @selector(getDefaultEventTypes), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_lazilyLoadView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "lazilyLoadView", @selector(lazilyLoadView:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_createView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createView", @selector(createView:viewName:rootTag:props:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_updateView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateView", @selector(updateView:viewName:props:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_focus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "focus", @selector(focus:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_blur(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "blur", @selector(blur:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_findSubviewIn(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "findSubviewIn", @selector(findSubviewIn:point:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_dispatchViewManagerCommand(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dispatchViewManagerCommand", @selector(dispatchViewManagerCommand:commandID:commandArgs:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_measure(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "measure", @selector(measure:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_measureInWindow(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "measureInWindow", @selector(measureInWindow:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_viewIsDescendantOf(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "viewIsDescendantOf", @selector(viewIsDescendantOf:ancestorReactTag:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_measureLayout(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "measureLayout", @selector(measureLayout:ancestorReactTag:errorCallback:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_measureLayoutRelativeToParent(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "measureLayoutRelativeToParent", @selector(measureLayoutRelativeToParent:errorCallback:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_setJSResponder(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setJSResponder", @selector(setJSResponder:blockNativeResponder:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_clearJSResponder(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "clearJSResponder", @selector(clearJSResponder), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_configureNextLayoutAnimation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "configureNextLayoutAnimation", @selector(configureNextLayoutAnimation:callback:errorCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_removeSubviewsFromContainerWithID(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeSubviewsFromContainerWithID", @selector(removeSubviewsFromContainerWithID:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_replaceExistingNonRootView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "replaceExistingNonRootView", @selector(replaceExistingNonRootView:newReactTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_setChildren(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setChildren", @selector(setChildren:reactTags:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_manageChildren(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "manageChildren", @selector(manageChildren:moveFromIndices:moveToIndices:addChildReactTags:addAtIndices:removeAtIndices:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_setLayoutAnimationEnabledExperimental(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setLayoutAnimationEnabledExperimental", @selector(setLayoutAnimationEnabledExperimental:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_sendAccessibilityEvent(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendAccessibilityEvent", @selector(sendAccessibilityEvent:eventType:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_showPopupMenu(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showPopupMenu", @selector(showPopupMenu:items:error:success:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_dismissPopupMenu(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismissPopupMenu", @selector(dismissPopupMenu), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeUIManagerSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - - NativeUIManagerSpecJSI::NativeUIManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getConstantsForViewManager"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_getConstantsForViewManager}; - - - methodMap_["getDefaultEventTypes"] = MethodMetadata {0, __hostFunction_NativeUIManagerSpecJSI_getDefaultEventTypes}; - - - methodMap_["lazilyLoadView"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_lazilyLoadView}; - - - methodMap_["createView"] = MethodMetadata {4, __hostFunction_NativeUIManagerSpecJSI_createView}; - - - methodMap_["updateView"] = MethodMetadata {3, __hostFunction_NativeUIManagerSpecJSI_updateView}; - - - methodMap_["focus"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_focus}; - - - methodMap_["blur"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_blur}; - - - methodMap_["findSubviewIn"] = MethodMetadata {3, __hostFunction_NativeUIManagerSpecJSI_findSubviewIn}; - - - methodMap_["dispatchViewManagerCommand"] = MethodMetadata {3, __hostFunction_NativeUIManagerSpecJSI_dispatchViewManagerCommand}; - - - methodMap_["measure"] = MethodMetadata {2, __hostFunction_NativeUIManagerSpecJSI_measure}; - - - methodMap_["measureInWindow"] = MethodMetadata {2, __hostFunction_NativeUIManagerSpecJSI_measureInWindow}; - - - methodMap_["viewIsDescendantOf"] = MethodMetadata {3, __hostFunction_NativeUIManagerSpecJSI_viewIsDescendantOf}; - - - methodMap_["measureLayout"] = MethodMetadata {4, __hostFunction_NativeUIManagerSpecJSI_measureLayout}; - - - methodMap_["measureLayoutRelativeToParent"] = MethodMetadata {3, __hostFunction_NativeUIManagerSpecJSI_measureLayoutRelativeToParent}; - - - methodMap_["setJSResponder"] = MethodMetadata {2, __hostFunction_NativeUIManagerSpecJSI_setJSResponder}; - - - methodMap_["clearJSResponder"] = MethodMetadata {0, __hostFunction_NativeUIManagerSpecJSI_clearJSResponder}; - - - methodMap_["configureNextLayoutAnimation"] = MethodMetadata {3, __hostFunction_NativeUIManagerSpecJSI_configureNextLayoutAnimation}; - - - methodMap_["removeSubviewsFromContainerWithID"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_removeSubviewsFromContainerWithID}; - - - methodMap_["replaceExistingNonRootView"] = MethodMetadata {2, __hostFunction_NativeUIManagerSpecJSI_replaceExistingNonRootView}; - - - methodMap_["setChildren"] = MethodMetadata {2, __hostFunction_NativeUIManagerSpecJSI_setChildren}; - - - methodMap_["manageChildren"] = MethodMetadata {6, __hostFunction_NativeUIManagerSpecJSI_manageChildren}; - - - methodMap_["setLayoutAnimationEnabledExperimental"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_setLayoutAnimationEnabledExperimental}; - - - methodMap_["sendAccessibilityEvent"] = MethodMetadata {2, __hostFunction_NativeUIManagerSpecJSI_sendAccessibilityEvent}; - - - methodMap_["showPopupMenu"] = MethodMetadata {4, __hostFunction_NativeUIManagerSpecJSI_showPopupMenu}; - - - methodMap_["dismissPopupMenu"] = MethodMetadata {0, __hostFunction_NativeUIManagerSpecJSI_dismissPopupMenu}; - - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeUIManagerSpecJSI_getConstants}; - - - - } - - } // namespace react -} // namespace facebook -namespace facebook { - namespace react { - static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_vibrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "vibrate", @selector(vibrate:), args, count); @@ -2834,7 +2264,6 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancel", @selector(cancel), args, count); } - NativeVibrationSpecJSI::NativeVibrationSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { @@ -2846,10 +2275,7 @@ namespace facebook { methodMap_["cancel"] = MethodMetadata {0, __hostFunction_NativeVibrationSpecJSI_cancel}; - - } - } // namespace react } // namespace facebook @implementation RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions) @@ -2860,7 +2286,6 @@ namespace facebook { @end namespace facebook { namespace react { - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_connect(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connect", @selector(connect:protocols:options:socketID:), args, count); @@ -2890,12 +2315,10 @@ namespace facebook { return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); } - NativeWebSocketModuleSpecJSI::NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) : ObjCTurboModule(params) { methodMap_["connect"] = MethodMetadata {4, __hostFunction_NativeWebSocketModuleSpecJSI_connect}; - setMethodArgConversionSelector(@"connect", 2, @"JS_NativeWebSocketModule_SpecConnectOptions:"); methodMap_["send"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleSpecJSI_send}; @@ -2915,9 +2338,6 @@ namespace facebook { methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_removeListeners}; - - } - } // namespace react } // namespace facebook diff --git a/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h b/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h index 78011e9ea4d..faed1c71208 100644 --- a/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +++ b/Libraries/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated by an internal genrule from Flow types. + * @generated by codegen project: GenerateModuleObjCpp * * We create an umbrella header (and corresponding implementation) here since * Cxx compilation in BUCK has a limitation: source-code producing genrule()s @@ -39,15 +39,12 @@ namespace facebook { /** * ObjC++ class for module 'AccessibilityInfo' */ - class JSI_EXPORT NativeAccessibilityInfoSpecJSI : public ObjCTurboModule { public: NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeAccessibilityManager { struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { @@ -98,15 +95,12 @@ namespace facebook { /** * ObjC++ class for module 'AccessibilityManager' */ - class JSI_EXPORT NativeAccessibilityManagerSpecJSI : public ObjCTurboModule { public: NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeActionSheetManager { struct SpecShowActionSheetWithOptionsOptions { @@ -129,7 +123,6 @@ namespace JS { @interface RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions) + (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json; @end - namespace JS { namespace NativeActionSheetManager { struct SpecShowShareActionSheetWithOptionsOptions { @@ -151,25 +144,6 @@ namespace JS { @interface RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions) + (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json; @end - -namespace JS { - namespace NativeActionSheetManager { - struct SpecShowShareActionSheetWithOptionsFailureCallbackError { - NSString *domain() const; - NSString *code() const; - id _Nullable userInfo() const; - NSString *message() const; - - SpecShowShareActionSheetWithOptionsFailureCallbackError(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsFailureCallbackError) -+ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsFailureCallbackError:(id)json; -@end @protocol NativeActionSheetManagerSpec - (void)showActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions &)options @@ -184,21 +158,18 @@ namespace facebook { /** * ObjC++ class for module 'ActionSheetManager' */ - class JSI_EXPORT NativeActionSheetManagerSpecJSI : public ObjCTurboModule { public: NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeAlertManager { struct Args { NSString *title() const; NSString *message() const; - folly::Optional>> buttons() const; + folly::Optional >> buttons() const; NSString *type() const; NSString *defaultValue() const; NSString *cancelButtonKey() const; @@ -226,31 +197,12 @@ namespace facebook { /** * ObjC++ class for module 'AlertManager' */ - class JSI_EXPORT NativeAlertManagerSpecJSI : public ObjCTurboModule { public: NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - -namespace JS { - namespace NativeAnimatedModule { - struct EndResult { - bool finished() const; - - EndResult(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAnimatedModule_EndResult) -+ (RCTManagedPointer *)JS_NativeAnimatedModule_EndResult:(id)json; -@end - namespace JS { namespace NativeAnimatedModule { struct EventMapping { @@ -313,31 +265,12 @@ namespace facebook { /** * ObjC++ class for module 'AnimatedModule' */ - class JSI_EXPORT NativeAnimatedModuleSpecJSI : public ObjCTurboModule { public: NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - -namespace JS { - namespace NativeAnimatedTurboModule { - struct EndResult { - bool finished() const; - - EndResult(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAnimatedTurboModule_EndResult) -+ (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EndResult:(id)json; -@end - namespace JS { namespace NativeAnimatedTurboModule { struct EventMapping { @@ -400,14 +333,13 @@ namespace facebook { /** * ObjC++ class for module 'AnimatedTurboModule' */ - class JSI_EXPORT NativeAnimatedTurboModuleSpecJSI : public ObjCTurboModule { public: NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeAnimationsDebugModuleSpec - (void)startRecordingFps; @@ -419,31 +351,12 @@ namespace facebook { /** * ObjC++ class for module 'AnimationsDebugModule' */ - class JSI_EXPORT NativeAnimationsDebugModuleSpecJSI : public ObjCTurboModule { public: NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - -namespace JS { - namespace NativeAppState { - struct SpecGetCurrentAppStateSuccessAppState { - NSString *app_state() const; - - SpecGetCurrentAppStateSuccessAppState(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAppState_SpecGetCurrentAppStateSuccessAppState) -+ (RCTManagedPointer *)JS_NativeAppState_SpecGetCurrentAppStateSuccessAppState:(id)json; -@end - namespace JS { namespace NativeAppState { struct Constants { @@ -486,17 +399,16 @@ namespace facebook { /** * ObjC++ class for module 'AppState' */ - class JSI_EXPORT NativeAppStateSpecJSI : public ObjCTurboModule { public: NativeAppStateSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeAppearanceSpec -- (NSString *)getColorScheme; +- (NSString * _Nullable)getColorScheme; - (void)addListener:(NSString *)eventName; - (void)removeListeners:(double)count; @@ -506,133 +418,13 @@ namespace facebook { /** * ObjC++ class for module 'Appearance' */ - class JSI_EXPORT NativeAppearanceSpecJSI : public ObjCTurboModule { public: NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook -namespace JS { - namespace NativeAppearance { - struct AppearancePreferences { - NSString *colorScheme() const; - - AppearancePreferences(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAppearance_AppearancePreferences) -+ (RCTManagedPointer *)JS_NativeAppearance_AppearancePreferences:(id)json; -@end -typedef NS_ENUM(NSInteger, NativeAppearanceColorSchemeName) { - NativeAppearanceColorSchemeNameLight = 0, - NativeAppearanceColorSchemeNameDark, -}; - -folly::Optional NSStringToNativeAppearanceColorSchemeName(NSString *value); -NSString *NativeAppearanceColorSchemeNameToNSString(folly::Optional value); - -namespace JS { - namespace NativeAsyncStorage { - struct SpecMultiGetCallbackErrorsElement { - NSString *message() const; - - SpecMultiGetCallbackErrorsElement(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAsyncStorage_SpecMultiGetCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiGetCallbackErrorsElement:(id)json; -@end - -namespace JS { - namespace NativeAsyncStorage { - struct SpecMultiSetCallbackErrorsElement { - NSString *message() const; - - SpecMultiSetCallbackErrorsElement(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAsyncStorage_SpecMultiSetCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiSetCallbackErrorsElement:(id)json; -@end - -namespace JS { - namespace NativeAsyncStorage { - struct SpecMultiMergeCallbackErrorsElement { - NSString *message() const; - - SpecMultiMergeCallbackErrorsElement(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAsyncStorage_SpecMultiMergeCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiMergeCallbackErrorsElement:(id)json; -@end - -namespace JS { - namespace NativeAsyncStorage { - struct SpecMultiRemoveCallbackErrorsElement { - NSString *message() const; - - SpecMultiRemoveCallbackErrorsElement(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAsyncStorage_SpecMultiRemoveCallbackErrorsElement) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecMultiRemoveCallbackErrorsElement:(id)json; -@end - -namespace JS { - namespace NativeAsyncStorage { - struct SpecClearCallbackError { - NSString *message() const; - - SpecClearCallbackError(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAsyncStorage_SpecClearCallbackError) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecClearCallbackError:(id)json; -@end - -namespace JS { - namespace NativeAsyncStorage { - struct SpecGetAllKeysCallbackError { - NSString *message() const; - - SpecGetAllKeysCallbackError(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAsyncStorage_SpecGetAllKeysCallbackError) -+ (RCTManagedPointer *)JS_NativeAsyncStorage_SpecGetAllKeysCallbackError:(id)json; -@end @protocol NativeAsyncStorageSpec - (void)multiGet:(NSArray *)keys @@ -652,15 +444,12 @@ namespace facebook { /** * ObjC++ class for module 'AsyncStorage' */ - class JSI_EXPORT NativeAsyncStorageSpecJSI : public ObjCTurboModule { public: NativeAsyncStorageSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeBlobModule { struct Constants { @@ -708,14 +497,13 @@ namespace facebook { /** * ObjC++ class for module 'BlobModule' */ - class JSI_EXPORT NativeBlobModuleSpecJSI : public ObjCTurboModule { public: NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeBugReportingSpec - (void)startReportAProblemFlow; @@ -729,14 +517,13 @@ namespace facebook { /** * ObjC++ class for module 'BugReporting' */ - class JSI_EXPORT NativeBugReportingSpecJSI : public ObjCTurboModule { public: NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeClipboardSpec - (void)getString:(RCTPromiseResolveBlock)resolve @@ -749,14 +536,13 @@ namespace facebook { /** * ObjC++ class for module 'Clipboard' */ - class JSI_EXPORT NativeClipboardSpecJSI : public ObjCTurboModule { public: NativeClipboardSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeDatePickerAndroidSpec - (void)open:(NSDictionary *)options @@ -769,14 +555,13 @@ namespace facebook { /** * ObjC++ class for module 'DatePickerAndroid' */ - class JSI_EXPORT NativeDatePickerAndroidSpecJSI : public ObjCTurboModule { public: NativeDatePickerAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeDevLoadingViewSpec - (void)showMessage:(NSString *)message @@ -790,14 +575,13 @@ namespace facebook { /** * ObjC++ class for module 'DevLoadingView' */ - class JSI_EXPORT NativeDevLoadingViewSpecJSI : public ObjCTurboModule { public: NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeDevMenuSpec - (void)show; @@ -812,14 +596,13 @@ namespace facebook { /** * ObjC++ class for module 'DevMenu' */ - class JSI_EXPORT NativeDevMenuSpecJSI : public ObjCTurboModule { public: NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeDevSettingsSpec - (void)reload; @@ -840,14 +623,13 @@ namespace facebook { /** * ObjC++ class for module 'DevSettings' */ - class JSI_EXPORT NativeDevSettingsSpecJSI : public ObjCTurboModule { public: NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeDevSplitBundleLoaderSpec - (void)loadBundle:(NSString *)bundlePath @@ -860,14 +642,13 @@ namespace facebook { /** * ObjC++ class for module 'DevSplitBundleLoader' */ - class JSI_EXPORT NativeDevSplitBundleLoaderSpecJSI : public ObjCTurboModule { public: NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeDeviceEventManagerSpec - (void)invokeDefaultBackPressHandler; @@ -878,15 +659,12 @@ namespace facebook { /** * ObjC++ class for module 'DeviceEventManager' */ - class JSI_EXPORT NativeDeviceEventManagerSpecJSI : public ObjCTurboModule { public: NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeDeviceInfo { struct DisplayMetrics { @@ -917,7 +695,6 @@ namespace JS { }; } } - namespace JS { namespace NativeDeviceInfo { struct DisplayMetricsAndroid { @@ -949,7 +726,6 @@ namespace JS { }; } } - namespace JS { namespace NativeDeviceInfo { struct DimensionsPayload { @@ -980,7 +756,6 @@ namespace JS { }; } } - namespace JS { namespace NativeDeviceInfo { struct Constants { @@ -1020,15 +795,12 @@ namespace facebook { /** * ObjC++ class for module 'DeviceInfo' */ - class JSI_EXPORT NativeDeviceInfoSpecJSI : public ObjCTurboModule { public: NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeDialogManagerAndroid { struct DialogOptions { @@ -1050,7 +822,6 @@ namespace JS { @interface RCTCxxConvert (NativeDialogManagerAndroid_DialogOptions) + (RCTManagedPointer *)JS_NativeDialogManagerAndroid_DialogOptions:(id)json; @end - namespace JS { namespace NativeDialogManagerAndroid { struct Constants { @@ -1096,15 +867,12 @@ namespace facebook { /** * ObjC++ class for module 'DialogManagerAndroid' */ - class JSI_EXPORT NativeDialogManagerAndroidSpecJSI : public ObjCTurboModule { public: NativeDialogManagerAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeExceptionsManager { struct StackFrame { @@ -1124,7 +892,6 @@ namespace JS { @interface RCTCxxConvert (NativeExceptionsManager_StackFrame) + (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json; @end - namespace JS { namespace NativeExceptionsManager { struct ExceptionData { @@ -1167,14 +934,13 @@ namespace facebook { /** * ObjC++ class for module 'ExceptionsManager' */ - class JSI_EXPORT NativeExceptionsManagerSpecJSI : public ObjCTurboModule { public: NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeFileReaderModuleSpec - (void)readAsDataURL:(NSDictionary *)data @@ -1191,15 +957,12 @@ namespace facebook { /** * ObjC++ class for module 'FileReaderModule' */ - class JSI_EXPORT NativeFileReaderModuleSpecJSI : public ObjCTurboModule { public: NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeFrameRateLogger { struct SpecSetGlobalOptionsOptions { @@ -1229,14 +992,13 @@ namespace facebook { /** * ObjC++ class for module 'FrameRateLogger' */ - class JSI_EXPORT NativeFrameRateLoggerSpecJSI : public ObjCTurboModule { public: NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeHeadlessJsTaskSupportSpec - (void)notifyTaskFinished:(double)taskId; @@ -1250,15 +1012,12 @@ namespace facebook { /** * ObjC++ class for module 'HeadlessJsTaskSupport' */ - class JSI_EXPORT NativeHeadlessJsTaskSupportSpecJSI : public ObjCTurboModule { public: NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeI18nManager { struct Constants { @@ -1301,15 +1060,12 @@ namespace facebook { /** * ObjC++ class for module 'I18nManager' */ - class JSI_EXPORT NativeI18nManagerSpecJSI : public ObjCTurboModule { public: NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeImageEditor { struct OptionsOffset { @@ -1326,7 +1082,6 @@ namespace JS { @interface RCTCxxConvert (NativeImageEditor_OptionsOffset) + (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json; @end - namespace JS { namespace NativeImageEditor { struct OptionsSize { @@ -1343,7 +1098,6 @@ namespace JS { @interface RCTCxxConvert (NativeImageEditor_OptionsSize) + (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json; @end - namespace JS { namespace NativeImageEditor { struct OptionsDisplaySize { @@ -1360,7 +1114,6 @@ namespace JS { @interface RCTCxxConvert (NativeImageEditor_OptionsDisplaySize) + (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json; @end - namespace JS { namespace NativeImageEditor { struct Options { @@ -1393,14 +1146,13 @@ namespace facebook { /** * ObjC++ class for module 'ImageEditor' */ - class JSI_EXPORT NativeImageEditorSpecJSI : public ObjCTurboModule { public: NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeImageLoaderAndroidSpec - (void)abortRequest:(double)requestId; @@ -1425,14 +1177,13 @@ namespace facebook { /** * ObjC++ class for module 'ImageLoaderAndroid' */ - class JSI_EXPORT NativeImageLoaderAndroidSpecJSI : public ObjCTurboModule { public: NativeImageLoaderAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeImageLoaderIOSSpec - (void)getSize:(NSString *)uri @@ -1455,15 +1206,12 @@ namespace facebook { /** * ObjC++ class for module 'ImageLoaderIOS' */ - class JSI_EXPORT NativeImageLoaderIOSSpecJSI : public ObjCTurboModule { public: NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeImagePickerIOS { struct SpecOpenCameraDialogConfig { @@ -1480,7 +1228,6 @@ namespace JS { @interface RCTCxxConvert (NativeImagePickerIOS_SpecOpenCameraDialogConfig) + (RCTManagedPointer *)JS_NativeImagePickerIOS_SpecOpenCameraDialogConfig:(id)json; @end - namespace JS { namespace NativeImagePickerIOS { struct SpecOpenSelectDialogConfig { @@ -1516,14 +1263,13 @@ namespace facebook { /** * ObjC++ class for module 'ImagePickerIOS' */ - class JSI_EXPORT NativeImagePickerIOSSpecJSI : public ObjCTurboModule { public: NativeImagePickerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeImageStoreAndroidSpec - (void)getBase64ForTag:(NSString *)uri @@ -1536,46 +1282,13 @@ namespace facebook { /** * ObjC++ class for module 'ImageStoreAndroid' */ - class JSI_EXPORT NativeImageStoreAndroidSpecJSI : public ObjCTurboModule { public: NativeImageStoreAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook -namespace JS { - namespace NativeImageStoreIOS { - struct SpecGetBase64ForTagErrorCallbackError { - NSString *message() const; - - SpecGetBase64ForTagErrorCallbackError(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeImageStoreIOS_SpecGetBase64ForTagErrorCallbackError) -+ (RCTManagedPointer *)JS_NativeImageStoreIOS_SpecGetBase64ForTagErrorCallbackError:(id)json; -@end - -namespace JS { - namespace NativeImageStoreIOS { - struct SpecAddImageFromBase64ErrorCallbackError { - NSString *message() const; - - SpecAddImageFromBase64ErrorCallbackError(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeImageStoreIOS_SpecAddImageFromBase64ErrorCallbackError) -+ (RCTManagedPointer *)JS_NativeImageStoreIOS_SpecAddImageFromBase64ErrorCallbackError:(id)json; -@end @protocol NativeImageStoreIOSSpec - (void)getBase64ForTag:(NSString *)uri @@ -1594,14 +1307,13 @@ namespace facebook { /** * ObjC++ class for module 'ImageStoreIOS' */ - class JSI_EXPORT NativeImageStoreIOSSpecJSI : public ObjCTurboModule { public: NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeJSCHeapCaptureSpec - (void)captureComplete:(NSString *)path @@ -1613,14 +1325,13 @@ namespace facebook { /** * ObjC++ class for module 'JSCHeapCapture' */ - class JSI_EXPORT NativeJSCHeapCaptureSpecJSI : public ObjCTurboModule { public: NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeJSCSamplingProfilerSpec - (void)operationComplete:(double)token @@ -1633,15 +1344,12 @@ namespace facebook { /** * ObjC++ class for module 'JSCSamplingProfiler' */ - class JSI_EXPORT NativeJSCSamplingProfilerSpecJSI : public ObjCTurboModule { public: NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeJSDevSupport { struct Constants { @@ -1684,14 +1392,13 @@ namespace facebook { /** * ObjC++ class for module 'JSDevSupport' */ - class JSI_EXPORT NativeJSDevSupportSpecJSI : public ObjCTurboModule { public: NativeJSDevSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeKeyboardObserverSpec - (void)addListener:(NSString *)eventName; @@ -1703,31 +1410,13 @@ namespace facebook { /** * ObjC++ class for module 'KeyboardObserver' */ - class JSI_EXPORT NativeKeyboardObserverSpecJSI : public ObjCTurboModule { public: NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook -namespace JS { - namespace NativeLinking { - struct SpecSendIntentExtrasElement { - NSString *key() const; - id value() const; - - SpecSendIntentExtrasElement(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeLinking_SpecSendIntentExtrasElement) -+ (RCTManagedPointer *)JS_NativeLinking_SpecSendIntentExtrasElement:(id)json; -@end @protocol NativeLinkingSpec - (void)getInitialURL:(RCTPromiseResolveBlock)resolve @@ -1741,7 +1430,7 @@ namespace JS { - (void)openSettings:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject; - (void)sendIntent:(NSString *)action - extras:(NSArray *_Nullable)extras + extras:(NSArray * _Nullable)extras resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject; - (void)addListener:(NSString *)eventName; @@ -1753,14 +1442,13 @@ namespace facebook { /** * ObjC++ class for module 'Linking' */ - class JSI_EXPORT NativeLinkingSpecJSI : public ObjCTurboModule { public: NativeLinkingSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeLogBoxSpec - (void)show; @@ -1772,14 +1460,13 @@ namespace facebook { /** * ObjC++ class for module 'LogBox' */ - class JSI_EXPORT NativeLogBoxSpecJSI : public ObjCTurboModule { public: NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeModalManagerSpec - (void)addListener:(NSString *)eventName; @@ -1791,14 +1478,13 @@ namespace facebook { /** * ObjC++ class for module 'ModalManager' */ - class JSI_EXPORT NativeModalManagerSpecJSI : public ObjCTurboModule { public: NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeNetworkingAndroidSpec - (void)sendRequest:(NSString *)method @@ -1821,22 +1507,19 @@ namespace facebook { /** * ObjC++ class for module 'NetworkingAndroid' */ - class JSI_EXPORT NativeNetworkingAndroidSpecJSI : public ObjCTurboModule { public: NativeNetworkingAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeNetworkingIOS { struct SpecSendRequestQuery { NSString *method() const; NSString *url() const; - id data() const; - id headers() const; + id data() const; + id headers() const; NSString *responseType() const; bool incrementalUpdates() const; double timeout() const; @@ -1867,14 +1550,13 @@ namespace facebook { /** * ObjC++ class for module 'NetworkingIOS' */ - class JSI_EXPORT NativeNetworkingIOSSpecJSI : public ObjCTurboModule { public: NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativePermissionsAndroidSpec - (void)checkPermission:(NSString *)permission @@ -1896,15 +1578,12 @@ namespace facebook { /** * ObjC++ class for module 'PermissionsAndroid' */ - class JSI_EXPORT NativePermissionsAndroidSpecJSI : public ObjCTurboModule { public: NativePermissionsAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativePlatformConstantsAndroid { struct ConstantsReactNativeVersion { @@ -1935,7 +1614,6 @@ namespace JS { }; } } - namespace JS { namespace NativePlatformConstantsAndroid { struct Constants { @@ -1985,15 +1663,12 @@ namespace facebook { /** * ObjC++ class for module 'PlatformConstantsAndroid' */ - class JSI_EXPORT NativePlatformConstantsAndroidSpecJSI : public ObjCTurboModule { public: NativePlatformConstantsAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativePlatformConstantsIOS { struct ConstantsReactNativeVersion { @@ -2024,7 +1699,6 @@ namespace JS { }; } } - namespace JS { namespace NativePlatformConstantsIOS { struct Constants { @@ -2068,15 +1742,12 @@ namespace facebook { /** * ObjC++ class for module 'PlatformConstantsIOS' */ - class JSI_EXPORT NativePlatformConstantsIOSSpecJSI : public ObjCTurboModule { public: NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativePushNotificationManagerIOS { struct SpecRequestPermissionsPermission { @@ -2094,25 +1765,6 @@ namespace JS { @interface RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission) + (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json; @end - -namespace JS { - namespace NativePushNotificationManagerIOS { - struct Permissions { - bool alert() const; - bool badge() const; - bool sound() const; - - Permissions(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativePushNotificationManagerIOS_Permissions) -+ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Permissions:(id)json; -@end - namespace JS { namespace NativePushNotificationManagerIOS { struct Notification { @@ -2166,14 +1818,13 @@ namespace facebook { /** * ObjC++ class for module 'PushNotificationManagerIOS' */ - class JSI_EXPORT NativePushNotificationManagerIOSSpecJSI : public ObjCTurboModule { public: NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeRedBoxSpec - (void)setExtraData:(NSDictionary *)extraData @@ -2186,14 +1837,13 @@ namespace facebook { /** * ObjC++ class for module 'RedBox' */ - class JSI_EXPORT NativeRedBoxSpecJSI : public ObjCTurboModule { public: NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeSegmentFetcherSpec - (void)fetchSegment:(double)segmentId @@ -2209,22 +1859,19 @@ namespace facebook { /** * ObjC++ class for module 'SegmentFetcher' */ - class JSI_EXPORT NativeSegmentFetcherSpecJSI : public ObjCTurboModule { public: NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeSettingsManager { struct Constants { struct Builder { struct Input { - RCTRequired> settings; + RCTRequired > settings; }; /** Initialize with a set of values */ @@ -2258,15 +1905,12 @@ namespace facebook { /** * ObjC++ class for module 'SettingsManager' */ - class JSI_EXPORT NativeSettingsManagerSpecJSI : public ObjCTurboModule { public: NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeShareModule { struct SpecShareContent { @@ -2296,14 +1940,13 @@ namespace facebook { /** * ObjC++ class for module 'ShareModule' */ - class JSI_EXPORT NativeShareModuleSpecJSI : public ObjCTurboModule { public: NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeSoundManagerSpec - (void)playTouchSound; @@ -2314,15 +1957,12 @@ namespace facebook { /** * ObjC++ class for module 'SoundManager' */ - class JSI_EXPORT NativeSoundManagerSpecJSI : public ObjCTurboModule { public: NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeSourceCode { struct Constants { @@ -2361,15 +2001,12 @@ namespace facebook { /** * ObjC++ class for module 'SourceCode' */ - class JSI_EXPORT NativeSourceCodeSpecJSI : public ObjCTurboModule { public: NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeStatusBarManagerAndroid { struct Constants { @@ -2414,31 +2051,12 @@ namespace facebook { /** * ObjC++ class for module 'StatusBarManagerAndroid' */ - class JSI_EXPORT NativeStatusBarManagerAndroidSpecJSI : public ObjCTurboModule { public: NativeStatusBarManagerAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - -namespace JS { - namespace NativeStatusBarManagerIOS { - struct SpecGetHeightCallbackResult { - double height() const; - - SpecGetHeightCallbackResult(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeStatusBarManagerIOS_SpecGetHeightCallbackResult) -+ (RCTManagedPointer *)JS_NativeStatusBarManagerIOS_SpecGetHeightCallbackResult:(id)json; -@end - namespace JS { namespace NativeStatusBarManagerIOS { struct Constants { @@ -2486,14 +2104,13 @@ namespace facebook { /** * ObjC++ class for module 'StatusBarManagerIOS' */ - class JSI_EXPORT NativeStatusBarManagerIOSSpecJSI : public ObjCTurboModule { public: NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeTVNavigationEventEmitterSpec - (void)addListener:(NSString *)eventName; @@ -2505,14 +2122,13 @@ namespace facebook { /** * ObjC++ class for module 'TVNavigationEventEmitter' */ - class JSI_EXPORT NativeTVNavigationEventEmitterSpecJSI : public ObjCTurboModule { public: NativeTVNavigationEventEmitterSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook + @protocol NativeTimingSpec - (void)createTimer:(double)callbackID @@ -2528,15 +2144,12 @@ namespace facebook { /** * ObjC++ class for module 'Timing' */ - class JSI_EXPORT NativeTimingSpecJSI : public ObjCTurboModule { public: NativeTimingSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeToastAndroid { struct Constants { @@ -2589,117 +2202,13 @@ namespace facebook { /** * ObjC++ class for module 'ToastAndroid' */ - class JSI_EXPORT NativeToastAndroidSpecJSI : public ObjCTurboModule { public: NativeToastAndroidSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook -namespace JS { - namespace NativeUIManager { - struct Constants { - - struct Builder { - struct Input { - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeUIManagerSpec - -- (NSDictionary *)getConstantsForViewManager:(NSString *)viewManagerName; -- (NSArray *)getDefaultEventTypes; -- (NSDictionary *)lazilyLoadView:(NSString *)name; -- (void)createView:(NSNumber *)reactTag - viewName:(NSString *)viewName - rootTag:(double)rootTag - props:(NSDictionary *)props; -- (void)updateView:(double)reactTag - viewName:(NSString *)viewName - props:(NSDictionary *)props; -- (void)focus:(NSNumber *)reactTag; -- (void)blur:(NSNumber *)reactTag; -- (void)findSubviewIn:(NSNumber *)reactTag - point:(NSArray *)point - callback:(RCTResponseSenderBlock)callback; -- (void)dispatchViewManagerCommand:(NSNumber *)reactTag - commandID:(double)commandID - commandArgs:(NSArray *_Nullable)commandArgs; -- (void)measure:(NSNumber *)reactTag - callback:(RCTResponseSenderBlock)callback; -- (void)measureInWindow:(NSNumber *)reactTag - callback:(RCTResponseSenderBlock)callback; -- (void)viewIsDescendantOf:(NSNumber *)reactTag - ancestorReactTag:(NSNumber *)ancestorReactTag - callback:(RCTResponseSenderBlock)callback; -- (void)measureLayout:(NSNumber *)reactTag - ancestorReactTag:(NSNumber *)ancestorReactTag - errorCallback:(RCTResponseSenderBlock)errorCallback - callback:(RCTResponseSenderBlock)callback; -- (void)measureLayoutRelativeToParent:(NSNumber *)reactTag - errorCallback:(RCTResponseSenderBlock)errorCallback - callback:(RCTResponseSenderBlock)callback; -- (void)setJSResponder:(NSNumber *)reactTag - blockNativeResponder:(BOOL)blockNativeResponder; -- (void)clearJSResponder; -- (void)configureNextLayoutAnimation:(NSDictionary *)config - callback:(RCTResponseSenderBlock)callback - errorCallback:(RCTResponseSenderBlock)errorCallback; -- (void)removeSubviewsFromContainerWithID:(double)containerID; -- (void)replaceExistingNonRootView:(NSNumber *)reactTag - newReactTag:(NSNumber *)newReactTag; -- (void)setChildren:(NSNumber *)containerTag - reactTags:(NSArray *)reactTags; -- (void)manageChildren:(NSNumber *)containerTag - moveFromIndices:(NSArray *)moveFromIndices - moveToIndices:(NSArray *)moveToIndices - addChildReactTags:(NSArray *)addChildReactTags - addAtIndices:(NSArray *)addAtIndices - removeAtIndices:(NSArray *)removeAtIndices; -- (void)setLayoutAnimationEnabledExperimental:(BOOL)enabled; -- (void)sendAccessibilityEvent:(NSNumber *)reactTag - eventType:(double)eventType; -- (void)showPopupMenu:(NSNumber *)reactTag - items:(NSArray *)items - error:(RCTResponseSenderBlock)error - success:(RCTResponseSenderBlock)success; -- (void)dismissPopupMenu; -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'UIManager' - */ - - class JSI_EXPORT NativeUIManagerSpecJSI : public ObjCTurboModule { - public: - NativeUIManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - - }; - } // namespace react -} // namespace facebook @protocol NativeVibrationSpec - (void)vibrate:(double)pattern; @@ -2713,15 +2222,12 @@ namespace facebook { /** * ObjC++ class for module 'Vibration' */ - class JSI_EXPORT NativeVibrationSpecJSI : public ObjCTurboModule { public: NativeVibrationSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook - namespace JS { namespace NativeWebSocketModule { struct SpecConnectOptions { @@ -2740,7 +2246,7 @@ namespace JS { @protocol NativeWebSocketModuleSpec - (void)connect:(NSString *)url - protocols:(NSArray *_Nullable)protocols + protocols:(NSArray * _Nullable)protocols options:(JS::NativeWebSocketModule::SpecConnectOptions &)options socketID:(double)socketID; - (void)send:(NSString *)message @@ -2760,18 +2266,13 @@ namespace facebook { /** * ObjC++ class for module 'WebSocketModule' */ - class JSI_EXPORT NativeWebSocketModuleSpecJSI : public ObjCTurboModule { public: NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; } // namespace react } // namespace facebook -#import - - inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const { id const p = _v[@"extraSmall"]; @@ -2835,12 +2336,12 @@ inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibil inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const { id const p = _v[@"title"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::message() const { id const p = _v[@"message"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const { @@ -2870,22 +2371,22 @@ inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheet inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::userInterfaceStyle() const { id const p = _v[@"userInterfaceStyle"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::message() const { id const p = _v[@"message"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::url() const { id const p = _v[@"url"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::subject() const { id const p = _v[@"subject"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const { @@ -2905,72 +2406,47 @@ inline folly::Optional> JS::NativeAction inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::userInterfaceStyle() const { id const p = _v[@"userInterfaceStyle"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsFailureCallbackError::domain() const -{ - id const p = _v[@"domain"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsFailureCallbackError::code() const -{ - id const p = _v[@"code"]; - return RCTBridgingToString(p); -} -inline id _Nullable JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsFailureCallbackError::userInfo() const -{ - id const p = _v[@"userInfo"]; - return p; -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsFailureCallbackError::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeAlertManager::Args::title() const { id const p = _v[@"title"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeAlertManager::Args::message() const { id const p = _v[@"message"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } -inline folly::Optional>> JS::NativeAlertManager::Args::buttons() const +inline folly::Optional >> JS::NativeAlertManager::Args::buttons() const { id const p = _v[@"buttons"]; - return RCTBridgingToOptionalVec(p, ^id(id itemValue_0) { return itemValue_0; }); + return RCTBridgingToOptionalVec(p, ^id (id itemValue_0) { return itemValue_0; }); } inline NSString *JS::NativeAlertManager::Args::type() const { id const p = _v[@"type"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeAlertManager::Args::defaultValue() const { id const p = _v[@"defaultValue"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeAlertManager::Args::cancelButtonKey() const { id const p = _v[@"cancelButtonKey"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeAlertManager::Args::destructiveButtonKey() const { id const p = _v[@"destructiveButtonKey"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeAlertManager::Args::keyboardType() const { id const p = _v[@"keyboardType"]; - return RCTBridgingToString(p); -} -inline bool JS::NativeAnimatedModule::EndResult::finished() const -{ - id const p = _v[@"finished"]; - return RCTBridgingToBool(p); + return RCTBridgingToOptionalString(p); } inline facebook::react::LazyVector JS::NativeAnimatedModule::EventMapping::nativeEventPath() const { @@ -2982,11 +2458,6 @@ inline folly::Optional JS::NativeAnimatedModule::EventMapping::animatedV id const p = _v[@"animatedValueTag"]; return RCTBridgingToOptionalDouble(p); } -inline bool JS::NativeAnimatedTurboModule::EndResult::finished() const -{ - id const p = _v[@"finished"]; - return RCTBridgingToBool(p); -} inline facebook::react::LazyVector JS::NativeAnimatedTurboModule::EventMapping::nativeEventPath() const { id const p = _v[@"nativeEventPath"]; @@ -2997,11 +2468,7 @@ inline folly::Optional JS::NativeAnimatedTurboModule::EventMapping::anim id const p = _v[@"animatedValueTag"]; return RCTBridgingToOptionalDouble(p); } -inline NSString *JS::NativeAppState::SpecGetCurrentAppStateSuccessAppState::app_state() const -{ - id const p = _v[@"app_state"]; - return RCTBridgingToString(p); -} + inline JS::NativeAppState::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto initialAppState = i.initialAppState.get(); @@ -3011,41 +2478,8 @@ inline JS::NativeAppState::Constants::Builder::Builder(const Input i) : _factory inline JS::NativeAppState::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} -inline NSString *JS::NativeAppearance::AppearancePreferences::colorScheme() const -{ - id const p = _v[@"colorScheme"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeAsyncStorage::SpecMultiGetCallbackErrorsElement::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeAsyncStorage::SpecMultiSetCallbackErrorsElement::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeAsyncStorage::SpecMultiMergeCallbackErrorsElement::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeAsyncStorage::SpecMultiRemoveCallbackErrorsElement::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeAsyncStorage::SpecClearCallbackError::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeAsyncStorage::SpecGetAllKeysCallbackError::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} + + inline JS::NativeBlobModule::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto BLOB_URI_SCHEME = i.BLOB_URI_SCHEME.get(); @@ -3057,6 +2491,14 @@ inline JS::NativeBlobModule::Constants::Builder::Builder(const Input i) : _facto inline JS::NativeBlobModule::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} + + + + + + + + inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto width = i.width.get(); @@ -3118,27 +2560,27 @@ inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory inline NSString *JS::NativeDialogManagerAndroid::DialogOptions::title() const { id const p = _v[@"title"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeDialogManagerAndroid::DialogOptions::message() const { id const p = _v[@"message"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeDialogManagerAndroid::DialogOptions::buttonPositive() const { id const p = _v[@"buttonPositive"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeDialogManagerAndroid::DialogOptions::buttonNegative() const { id const p = _v[@"buttonNegative"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeDialogManagerAndroid::DialogOptions::buttonNeutral() const { id const p = _v[@"buttonNeutral"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional> JS::NativeDialogManagerAndroid::DialogOptions::items() const { @@ -3175,7 +2617,7 @@ inline folly::Optional JS::NativeExceptionsManager::StackFrame::column() inline NSString *JS::NativeExceptionsManager::StackFrame::file() const { id const p = _v[@"file"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional JS::NativeExceptionsManager::StackFrame::lineNumber() const { @@ -3200,17 +2642,17 @@ inline NSString *JS::NativeExceptionsManager::ExceptionData::message() const inline NSString *JS::NativeExceptionsManager::ExceptionData::originalMessage() const { id const p = _v[@"originalMessage"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeExceptionsManager::ExceptionData::name() const { id const p = _v[@"name"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeExceptionsManager::ExceptionData::componentStack() const { id const p = _v[@"componentStack"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline facebook::react::LazyVector JS::NativeExceptionsManager::ExceptionData::stack() const { @@ -3219,7 +2661,7 @@ inline facebook::react::LazyVector JS:: } inline double JS::NativeExceptionsManager::ExceptionData::id_() const { - id const p = _v[@"id"]; + id const p = _v[@"id_"]; return RCTBridgingToDouble(p); } inline bool JS::NativeExceptionsManager::ExceptionData::isFatal() const @@ -3232,6 +2674,7 @@ inline id _Nullable JS::NativeExceptionsManager::ExceptionData::extraD id const p = _v[@"extraData"]; return p; } + inline folly::Optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const { id const p = _v[@"debug"]; @@ -3242,6 +2685,7 @@ inline folly::Optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOpti id const p = _v[@"reportStackTraces"]; return RCTBridgingToOptionalBool(p); } + inline JS::NativeI18nManager::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto isRTL = i.isRTL.get(); @@ -3301,13 +2745,15 @@ inline folly::Optional JS::NativeImag inline NSString *JS::NativeImageEditor::Options::resizeMode() const { id const p = _v[@"resizeMode"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional JS::NativeImageEditor::Options::allowExternalStorage() const { id const p = _v[@"allowExternalStorage"]; return RCTBridgingToOptionalBool(p); } + + inline bool JS::NativeImagePickerIOS::SpecOpenCameraDialogConfig::unmirrorFrontFacingCamera() const { id const p = _v[@"unmirrorFrontFacingCamera"]; @@ -3328,16 +2774,10 @@ inline bool JS::NativeImagePickerIOS::SpecOpenSelectDialogConfig::showVideos() c id const p = _v[@"showVideos"]; return RCTBridgingToBool(p); } -inline NSString *JS::NativeImageStoreIOS::SpecGetBase64ForTagErrorCallbackError::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeImageStoreIOS::SpecAddImageFromBase64ErrorCallbackError::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} + + + + inline JS::NativeJSDevSupport::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto ERROR_CODE_EXCEPTION = i.ERROR_CODE_EXCEPTION.get(); @@ -3349,16 +2789,11 @@ inline JS::NativeJSDevSupport::Constants::Builder::Builder(const Input i) : _fac inline JS::NativeJSDevSupport::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} -inline NSString *JS::NativeLinking::SpecSendIntentExtrasElement::key() const -{ - id const p = _v[@"key"]; - return RCTBridgingToString(p); -} -inline id JS::NativeLinking::SpecSendIntentExtrasElement::value() const -{ - id const p = _v[@"value"]; - return p; -} + + + + + inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::method() const { id const p = _v[@"method"]; @@ -3369,12 +2804,12 @@ inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::url() const id const p = _v[@"url"]; return RCTBridgingToString(p); } -inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::data() const +inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::data() const { id const p = _v[@"data"]; return p; } -inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::headers() const +inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::headers() const { id const p = _v[@"headers"]; return p; @@ -3399,6 +2834,7 @@ inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::withCredentials() con id const p = _v[@"withCredentials"]; return RCTBridgingToBool(p); } + inline JS::NativePlatformConstantsAndroid::ConstantsReactNativeVersion::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto major = i.major.get(); @@ -3492,25 +2928,10 @@ inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermissi id const p = _v[@"sound"]; return RCTBridgingToBool(p); } -inline bool JS::NativePushNotificationManagerIOS::Permissions::alert() const -{ - id const p = _v[@"alert"]; - return RCTBridgingToBool(p); -} -inline bool JS::NativePushNotificationManagerIOS::Permissions::badge() const -{ - id const p = _v[@"badge"]; - return RCTBridgingToBool(p); -} -inline bool JS::NativePushNotificationManagerIOS::Permissions::sound() const -{ - id const p = _v[@"sound"]; - return RCTBridgingToBool(p); -} inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle() const { id const p = _v[@"alertTitle"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const { @@ -3520,12 +2941,12 @@ inline folly::Optional JS::NativePushNotificationManagerIOS::Notificatio inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertBody() const { id const p = _v[@"alertBody"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertAction() const { id const p = _v[@"alertAction"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline id _Nullable JS::NativePushNotificationManagerIOS::Notification::userInfo() const { @@ -3535,12 +2956,12 @@ inline id _Nullable JS::NativePushNotificationManagerIOS::Notification inline NSString *JS::NativePushNotificationManagerIOS::Notification::category() const { id const p = _v[@"category"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInterval() const { id const p = _v[@"repeatInterval"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const { @@ -3552,6 +2973,8 @@ inline folly::Optional JS::NativePushNotificationManagerIOS::Notification: id const p = _v[@"isSilent"]; return RCTBridgingToOptionalBool(p); } + + inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto settings = i.settings.get(); @@ -3564,13 +2987,14 @@ inline JS::NativeSettingsManager::Constants::Builder::Builder(Constants i) : _fa inline NSString *JS::NativeShareModule::SpecShareContent::title() const { id const p = _v[@"title"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } inline NSString *JS::NativeShareModule::SpecShareContent::message() const { id const p = _v[@"message"]; - return RCTBridgingToString(p); + return RCTBridgingToOptionalString(p); } + inline JS::NativeSourceCode::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto scriptURL = i.scriptURL.get(); @@ -3591,11 +3015,6 @@ inline JS::NativeStatusBarManagerAndroid::Constants::Builder::Builder(const Inpu inline JS::NativeStatusBarManagerAndroid::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} -inline double JS::NativeStatusBarManagerIOS::SpecGetHeightCallbackResult::height() const -{ - id const p = _v[@"height"]; - return RCTBridgingToDouble(p); -} inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto HEIGHT = i.HEIGHT.get(); @@ -3607,6 +3026,8 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} + + inline JS::NativeToastAndroid::Constants::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto SHORT = i.SHORT.get(); @@ -3624,13 +3045,7 @@ inline JS::NativeToastAndroid::Constants::Builder::Builder(const Input i) : _fac inline JS::NativeToastAndroid::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} -inline JS::NativeUIManager::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - return d; -}) {} -inline JS::NativeUIManager::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} + inline id _Nullable JS::NativeWebSocketModule::SpecConnectOptions::headers() const { id const p = _v[@"headers"];