react-native-macos 0.0.0-c2e966d13 → 0.0.0-c647671b0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/Libraries/Animated/nodes/AnimatedValue.js +0 -1
  2. package/Libraries/Components/Button.js +1 -1
  3. package/Libraries/Components/CheckBox/CheckBox.macos.js +8 -4
  4. package/Libraries/Components/Keyboard/Keyboard.js +2 -2
  5. package/Libraries/Components/Touchable/TouchableBounce.js +11 -22
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +19 -30
  7. package/Libraries/Components/Touchable/TouchableOpacity.js +14 -29
  8. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +8 -18
  9. package/Libraries/Components/View/ReactNativeViewAttributes.js +8 -7
  10. package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
  11. package/Libraries/Components/View/View.js +8 -10
  12. package/Libraries/Components/View/ViewAccessibility.js +0 -1
  13. package/Libraries/Components/View/ViewPropTypes.js +1 -7
  14. package/Libraries/Core/ReactNativeVersion.js +5 -1
  15. package/Libraries/LogBox/Data/LogBoxData.js +18 -18
  16. package/Libraries/Text/Text/RCTTextView.m +7 -1
  17. package/Libraries/Types/RootTagTypes.js~merged +23 -0
  18. package/React/Base/RCTVersion.m +5 -1
  19. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +1 -1
  20. package/React/CoreModules/RCTAlertController.m +8 -4
  21. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2126 -0
  22. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2682 -0
  23. package/React/Modules/RCTEventEmitter.h +2 -2
  24. package/React/Views/RCTViewManager.m +0 -7
  25. package/React-Core.podspec +0 -11
  26. package/ReactAndroid/gradle.properties +1 -1
  27. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
  28. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
  29. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +3 -1
  30. package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
  31. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +5 -1
  32. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +0 -8
  33. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
  34. package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +339 -339
  35. package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -1
  36. package/jest/preprocessor.js +7 -75
  37. package/local-cli/cli.js +0 -0
  38. package/local-cli/generator-macos/templates/macos/Podfile +2 -7
  39. package/package.json +8 -13
  40. package/scripts/react-native-xcode.sh +1 -1
  41. package/scripts/react_native_pods.rb +1 -1
  42. package/template/package.json +3 -1
  43. package/third-party-podspecs/RCT-Folly.podspec +1 -1
  44. package/CHANGELOG.json +0 -500
  45. package/CHANGELOG.md +0 -240
  46. package/Libraries/.npmignore +0 -1
  47. package/ReactAndroid/.npmignore +0 -5
  48. package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
  49. package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
  50. package/scripts/fixmacscripts.sh +0 -9
  51. package/scripts/postInstall.js +0 -6
@@ -0,0 +1,2682 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+ #import <Foundation/Foundation.h>
18
+ #import <RCTRequired/RCTRequired.h>
19
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
20
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
21
+ #import <React/RCTBridgeModule.h>
22
+ #import <React/RCTCxxConvert.h>
23
+ #import <React/RCTManagedPointer.h>
24
+ #import <ReactCommon/RCTTurboModule.h>
25
+ #import <folly/Optional.h>
26
+ #import <vector>
27
+
28
+
29
+ @protocol NativeAccessibilityInfoSpec <RCTBridgeModule, RCTTurboModule>
30
+
31
+ - (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess;
32
+ - (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess;
33
+ - (void)setAccessibilityFocus:(double)reactTag;
34
+ - (void)announceForAccessibility:(NSString *)announcement;
35
+ - (void)getRecommendedTimeoutMillis:(double)mSec
36
+ onSuccess:(RCTResponseSenderBlock)onSuccess;
37
+
38
+ @end
39
+ namespace facebook {
40
+ namespace react {
41
+ /**
42
+ * ObjC++ class for module 'NativeAccessibilityInfo'
43
+ */
44
+ class JSI_EXPORT NativeAccessibilityInfoSpecJSI : public ObjCTurboModule {
45
+ public:
46
+ NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams &params);
47
+ };
48
+ } // namespace react
49
+ } // namespace facebook
50
+ namespace JS {
51
+ namespace NativeAccessibilityManager {
52
+ struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers {
53
+ folly::Optional<double> extraSmall() const;
54
+ folly::Optional<double> small() const;
55
+ folly::Optional<double> medium() const;
56
+ folly::Optional<double> large() const;
57
+ folly::Optional<double> extraLarge() const;
58
+ folly::Optional<double> extraExtraLarge() const;
59
+ folly::Optional<double> extraExtraExtraLarge() const;
60
+ folly::Optional<double> accessibilityMedium() const;
61
+ folly::Optional<double> accessibilityLarge() const;
62
+ folly::Optional<double> accessibilityExtraLarge() const;
63
+ folly::Optional<double> accessibilityExtraExtraLarge() const;
64
+ folly::Optional<double> accessibilityExtraExtraExtraLarge() const;
65
+
66
+ SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {}
67
+ private:
68
+ NSDictionary *_v;
69
+ };
70
+ }
71
+ }
72
+
73
+ @interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers)
74
+ + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json;
75
+ @end
76
+ @protocol NativeAccessibilityManagerSpec <RCTBridgeModule, RCTTurboModule>
77
+
78
+ - (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess
79
+ onError:(RCTResponseSenderBlock)onError;
80
+ - (void)getCurrentGrayscaleState:(RCTResponseSenderBlock)onSuccess
81
+ onError:(RCTResponseSenderBlock)onError;
82
+ - (void)getCurrentHighContrastState:(RCTResponseSenderBlock)onSuccess
83
+ onError:(RCTResponseSenderBlock)onError;
84
+ - (void)getCurrentInvertColorsState:(RCTResponseSenderBlock)onSuccess
85
+ onError:(RCTResponseSenderBlock)onError;
86
+ - (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess
87
+ onError:(RCTResponseSenderBlock)onError;
88
+ - (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess
89
+ onError:(RCTResponseSenderBlock)onError;
90
+ - (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
91
+ onError:(RCTResponseSenderBlock)onError;
92
+ - (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers;
93
+ - (void)setAccessibilityFocus:(double)reactTag;
94
+ - (void)announceForAccessibility:(NSString *)announcement;
95
+
96
+ @end
97
+ namespace facebook {
98
+ namespace react {
99
+ /**
100
+ * ObjC++ class for module 'NativeAccessibilityManager'
101
+ */
102
+ class JSI_EXPORT NativeAccessibilityManagerSpecJSI : public ObjCTurboModule {
103
+ public:
104
+ NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams &params);
105
+ };
106
+ } // namespace react
107
+ } // namespace facebook
108
+ namespace JS {
109
+ namespace NativeActionSheetManager {
110
+ struct SpecShowActionSheetWithOptionsOptions {
111
+ NSString *title() const;
112
+ NSString *message() const;
113
+ folly::Optional<facebook::react::LazyVector<NSString *>> options() const;
114
+ folly::Optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
115
+ folly::Optional<double> cancelButtonIndex() const;
116
+ folly::Optional<double> anchor() const;
117
+ folly::Optional<double> tintColor() const;
118
+ NSString *userInterfaceStyle() const;
119
+ folly::Optional<facebook::react::LazyVector<double>> disabledButtonIndices() const;
120
+
121
+ SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
122
+ private:
123
+ NSDictionary *_v;
124
+ };
125
+ }
126
+ }
127
+
128
+ @interface RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions)
129
+ + (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json;
130
+ @end
131
+ namespace JS {
132
+ namespace NativeActionSheetManager {
133
+ struct SpecShowShareActionSheetWithOptionsOptions {
134
+ NSString *message() const;
135
+ NSString *url() const;
136
+ NSString *subject() const;
137
+ folly::Optional<double> anchor() const;
138
+ folly::Optional<double> tintColor() const;
139
+ folly::Optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
140
+ NSString *userInterfaceStyle() const;
141
+
142
+ SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
143
+ private:
144
+ NSDictionary *_v;
145
+ };
146
+ }
147
+ }
148
+
149
+ @interface RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions)
150
+ + (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json;
151
+ @end
152
+ @protocol NativeActionSheetManagerSpec <RCTBridgeModule, RCTTurboModule>
153
+
154
+ - (void)showActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions &)options
155
+ callback:(RCTResponseSenderBlock)callback;
156
+ - (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options
157
+ failureCallback:(RCTResponseSenderBlock)failureCallback
158
+ successCallback:(RCTResponseSenderBlock)successCallback;
159
+
160
+ @end
161
+ namespace facebook {
162
+ namespace react {
163
+ /**
164
+ * ObjC++ class for module 'NativeActionSheetManager'
165
+ */
166
+ class JSI_EXPORT NativeActionSheetManagerSpecJSI : public ObjCTurboModule {
167
+ public:
168
+ NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams &params);
169
+ };
170
+ } // namespace react
171
+ } // namespace facebook
172
+ namespace JS {
173
+ namespace NativeAlertManager {
174
+ struct NativeArgs {
175
+ NSString *title() const;
176
+ NSString *message() const;
177
+ folly::Optional<facebook::react::LazyVector<id<NSObject> >> buttons() const;
178
+ NSString *type() const;
179
+ NSString *defaultValue() const;
180
+ NSString *cancelButtonKey() const;
181
+ NSString *destructiveButtonKey() const;
182
+ NSString *keyboardType() const;
183
+ folly::Optional<facebook::react::LazyVector<id<NSObject> >> defaultInputs() const;
184
+ folly::Optional<bool> modal() const;
185
+ folly::Optional<bool> critical() const;
186
+
187
+ NativeArgs(NSDictionary *const v) : _v(v) {}
188
+ private:
189
+ NSDictionary *_v;
190
+ };
191
+ }
192
+ }
193
+
194
+ @interface RCTCxxConvert (NativeAlertManager_NativeArgs)
195
+ + (RCTManagedPointer *)JS_NativeAlertManager_NativeArgs:(id)json;
196
+ @end
197
+ @protocol NativeAlertManagerSpec <RCTBridgeModule, RCTTurboModule>
198
+
199
+ - (void)alertWithArgs:(JS::NativeAlertManager::NativeArgs &)args
200
+ callback:(RCTResponseSenderBlock)callback;
201
+
202
+ @end
203
+ namespace facebook {
204
+ namespace react {
205
+ /**
206
+ * ObjC++ class for module 'NativeAlertManager'
207
+ */
208
+ class JSI_EXPORT NativeAlertManagerSpecJSI : public ObjCTurboModule {
209
+ public:
210
+ NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams &params);
211
+ };
212
+ } // namespace react
213
+ } // namespace facebook
214
+ namespace JS {
215
+ namespace NativeAnimatedModule {
216
+ struct EventMapping {
217
+ facebook::react::LazyVector<NSString *> nativeEventPath() const;
218
+ folly::Optional<double> animatedValueTag() const;
219
+
220
+ EventMapping(NSDictionary *const v) : _v(v) {}
221
+ private:
222
+ NSDictionary *_v;
223
+ };
224
+ }
225
+ }
226
+
227
+ @interface RCTCxxConvert (NativeAnimatedModule_EventMapping)
228
+ + (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json;
229
+ @end
230
+ @protocol NativeAnimatedModuleSpec <RCTBridgeModule, RCTTurboModule>
231
+
232
+ - (void)startOperationBatch;
233
+ - (void)finishOperationBatch;
234
+ - (void)createAnimatedNode:(double)tag
235
+ config:(NSDictionary *)config;
236
+ - (void)getValue:(double)tag
237
+ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
238
+ - (void)startListeningToAnimatedNodeValue:(double)tag;
239
+ - (void)stopListeningToAnimatedNodeValue:(double)tag;
240
+ - (void)connectAnimatedNodes:(double)parentTag
241
+ childTag:(double)childTag;
242
+ - (void)disconnectAnimatedNodes:(double)parentTag
243
+ childTag:(double)childTag;
244
+ - (void)startAnimatingNode:(double)animationId
245
+ nodeTag:(double)nodeTag
246
+ config:(NSDictionary *)config
247
+ endCallback:(RCTResponseSenderBlock)endCallback;
248
+ - (void)stopAnimation:(double)animationId;
249
+ - (void)setAnimatedNodeValue:(double)nodeTag
250
+ value:(double)value;
251
+ - (void)setAnimatedNodeOffset:(double)nodeTag
252
+ offset:(double)offset;
253
+ - (void)flattenAnimatedNodeOffset:(double)nodeTag;
254
+ - (void)extractAnimatedNodeOffset:(double)nodeTag;
255
+ - (void)connectAnimatedNodeToView:(double)nodeTag
256
+ viewTag:(double)viewTag;
257
+ - (void)disconnectAnimatedNodeFromView:(double)nodeTag
258
+ viewTag:(double)viewTag;
259
+ - (void)restoreDefaultValues:(double)nodeTag;
260
+ - (void)dropAnimatedNode:(double)tag;
261
+ - (void)addAnimatedEventToView:(double)viewTag
262
+ eventName:(NSString *)eventName
263
+ eventMapping:(JS::NativeAnimatedModule::EventMapping &)eventMapping;
264
+ - (void)removeAnimatedEventFromView:(double)viewTag
265
+ eventName:(NSString *)eventName
266
+ animatedNodeTag:(double)animatedNodeTag;
267
+ - (void)addListener:(NSString *)eventName;
268
+ - (void)removeListeners:(double)count;
269
+
270
+ @end
271
+ namespace facebook {
272
+ namespace react {
273
+ /**
274
+ * ObjC++ class for module 'NativeAnimatedModule'
275
+ */
276
+ class JSI_EXPORT NativeAnimatedModuleSpecJSI : public ObjCTurboModule {
277
+ public:
278
+ NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams &params);
279
+ };
280
+ } // namespace react
281
+ } // namespace facebook
282
+ namespace JS {
283
+ namespace NativeAnimatedTurboModule {
284
+ struct EventMapping {
285
+ facebook::react::LazyVector<NSString *> nativeEventPath() const;
286
+ folly::Optional<double> animatedValueTag() const;
287
+
288
+ EventMapping(NSDictionary *const v) : _v(v) {}
289
+ private:
290
+ NSDictionary *_v;
291
+ };
292
+ }
293
+ }
294
+
295
+ @interface RCTCxxConvert (NativeAnimatedTurboModule_EventMapping)
296
+ + (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json;
297
+ @end
298
+ @protocol NativeAnimatedTurboModuleSpec <RCTBridgeModule, RCTTurboModule>
299
+
300
+ - (void)startOperationBatch;
301
+ - (void)finishOperationBatch;
302
+ - (void)createAnimatedNode:(double)tag
303
+ config:(NSDictionary *)config;
304
+ - (void)getValue:(double)tag
305
+ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
306
+ - (void)startListeningToAnimatedNodeValue:(double)tag;
307
+ - (void)stopListeningToAnimatedNodeValue:(double)tag;
308
+ - (void)connectAnimatedNodes:(double)parentTag
309
+ childTag:(double)childTag;
310
+ - (void)disconnectAnimatedNodes:(double)parentTag
311
+ childTag:(double)childTag;
312
+ - (void)startAnimatingNode:(double)animationId
313
+ nodeTag:(double)nodeTag
314
+ config:(NSDictionary *)config
315
+ endCallback:(RCTResponseSenderBlock)endCallback;
316
+ - (void)stopAnimation:(double)animationId;
317
+ - (void)setAnimatedNodeValue:(double)nodeTag
318
+ value:(double)value;
319
+ - (void)setAnimatedNodeOffset:(double)nodeTag
320
+ offset:(double)offset;
321
+ - (void)flattenAnimatedNodeOffset:(double)nodeTag;
322
+ - (void)extractAnimatedNodeOffset:(double)nodeTag;
323
+ - (void)connectAnimatedNodeToView:(double)nodeTag
324
+ viewTag:(double)viewTag;
325
+ - (void)disconnectAnimatedNodeFromView:(double)nodeTag
326
+ viewTag:(double)viewTag;
327
+ - (void)restoreDefaultValues:(double)nodeTag;
328
+ - (void)dropAnimatedNode:(double)tag;
329
+ - (void)addAnimatedEventToView:(double)viewTag
330
+ eventName:(NSString *)eventName
331
+ eventMapping:(JS::NativeAnimatedTurboModule::EventMapping &)eventMapping;
332
+ - (void)removeAnimatedEventFromView:(double)viewTag
333
+ eventName:(NSString *)eventName
334
+ animatedNodeTag:(double)animatedNodeTag;
335
+ - (void)addListener:(NSString *)eventName;
336
+ - (void)removeListeners:(double)count;
337
+
338
+ @end
339
+ namespace facebook {
340
+ namespace react {
341
+ /**
342
+ * ObjC++ class for module 'NativeAnimatedTurboModule'
343
+ */
344
+ class JSI_EXPORT NativeAnimatedTurboModuleSpecJSI : public ObjCTurboModule {
345
+ public:
346
+ NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams &params);
347
+ };
348
+ } // namespace react
349
+ } // namespace facebook
350
+
351
+ @protocol NativeAnimationsDebugModuleSpec <RCTBridgeModule, RCTTurboModule>
352
+
353
+ - (void)startRecordingFps;
354
+ - (void)stopRecordingFps:(double)animationStopTimeMs;
355
+
356
+ @end
357
+ namespace facebook {
358
+ namespace react {
359
+ /**
360
+ * ObjC++ class for module 'NativeAnimationsDebugModule'
361
+ */
362
+ class JSI_EXPORT NativeAnimationsDebugModuleSpecJSI : public ObjCTurboModule {
363
+ public:
364
+ NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams &params);
365
+ };
366
+ } // namespace react
367
+ } // namespace facebook
368
+ namespace JS {
369
+ namespace NativeAppState {
370
+ struct Constants {
371
+
372
+ struct Builder {
373
+ struct Input {
374
+ RCTRequired<NSString *> initialAppState;
375
+ };
376
+
377
+ /** Initialize with a set of values */
378
+ Builder(const Input i);
379
+ /** Initialize with an existing Constants */
380
+ Builder(Constants i);
381
+ /** Builds the object. Generally used only by the infrastructure. */
382
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
383
+ private:
384
+ NSDictionary *(^_factory)(void);
385
+ };
386
+
387
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
388
+ NSDictionary *unsafeRawValue() const { return _v; }
389
+ private:
390
+ Constants(NSDictionary *const v) : _v(v) {}
391
+ NSDictionary *_v;
392
+ };
393
+ }
394
+ }
395
+ @protocol NativeAppStateSpec <RCTBridgeModule, RCTTurboModule>
396
+
397
+ - (void)getCurrentAppState:(RCTResponseSenderBlock)success
398
+ error:(RCTResponseSenderBlock)error;
399
+ - (void)addListener:(NSString *)eventName;
400
+ - (void)removeListeners:(double)count;
401
+ - (facebook::react::ModuleConstants<JS::NativeAppState::Constants::Builder>)constantsToExport;
402
+ - (facebook::react::ModuleConstants<JS::NativeAppState::Constants::Builder>)getConstants;
403
+
404
+ @end
405
+ namespace facebook {
406
+ namespace react {
407
+ /**
408
+ * ObjC++ class for module 'NativeAppState'
409
+ */
410
+ class JSI_EXPORT NativeAppStateSpecJSI : public ObjCTurboModule {
411
+ public:
412
+ NativeAppStateSpecJSI(const ObjCTurboModule::InitParams &params);
413
+ };
414
+ } // namespace react
415
+ } // namespace facebook
416
+
417
+ @protocol NativeAppearanceSpec <RCTBridgeModule, RCTTurboModule>
418
+
419
+ - (NSString * _Nullable)getColorScheme;
420
+ - (void)addListener:(NSString *)eventName;
421
+ - (void)removeListeners:(double)count;
422
+
423
+ @end
424
+ namespace facebook {
425
+ namespace react {
426
+ /**
427
+ * ObjC++ class for module 'NativeAppearance'
428
+ */
429
+ class JSI_EXPORT NativeAppearanceSpecJSI : public ObjCTurboModule {
430
+ public:
431
+ NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams &params);
432
+ };
433
+ } // namespace react
434
+ } // namespace facebook
435
+
436
+ @protocol NativeAsyncLocalStorageSpec <RCTBridgeModule, RCTTurboModule>
437
+
438
+ - (void)multiGet:(NSArray *)keys
439
+ callback:(RCTResponseSenderBlock)callback;
440
+ - (void)multiSet:(NSArray *)kvPairs
441
+ callback:(RCTResponseSenderBlock)callback;
442
+ - (void)multiMerge:(NSArray *)kvPairs
443
+ callback:(RCTResponseSenderBlock)callback;
444
+ - (void)multiRemove:(NSArray *)keys
445
+ callback:(RCTResponseSenderBlock)callback;
446
+ - (void)clear:(RCTResponseSenderBlock)callback;
447
+ - (void)getAllKeys:(RCTResponseSenderBlock)callback;
448
+
449
+ @end
450
+ namespace facebook {
451
+ namespace react {
452
+ /**
453
+ * ObjC++ class for module 'NativeAsyncLocalStorage'
454
+ */
455
+ class JSI_EXPORT NativeAsyncLocalStorageSpecJSI : public ObjCTurboModule {
456
+ public:
457
+ NativeAsyncLocalStorageSpecJSI(const ObjCTurboModule::InitParams &params);
458
+ };
459
+ } // namespace react
460
+ } // namespace facebook
461
+
462
+ @protocol NativeAsyncSQLiteDBStorageSpec <RCTBridgeModule, RCTTurboModule>
463
+
464
+ - (void)multiGet:(NSArray *)keys
465
+ callback:(RCTResponseSenderBlock)callback;
466
+ - (void)multiSet:(NSArray *)kvPairs
467
+ callback:(RCTResponseSenderBlock)callback;
468
+ - (void)multiMerge:(NSArray *)kvPairs
469
+ callback:(RCTResponseSenderBlock)callback;
470
+ - (void)multiRemove:(NSArray *)keys
471
+ callback:(RCTResponseSenderBlock)callback;
472
+ - (void)clear:(RCTResponseSenderBlock)callback;
473
+ - (void)getAllKeys:(RCTResponseSenderBlock)callback;
474
+
475
+ @end
476
+ namespace facebook {
477
+ namespace react {
478
+ /**
479
+ * ObjC++ class for module 'NativeAsyncSQLiteDBStorage'
480
+ */
481
+ class JSI_EXPORT NativeAsyncSQLiteDBStorageSpecJSI : public ObjCTurboModule {
482
+ public:
483
+ NativeAsyncSQLiteDBStorageSpecJSI(const ObjCTurboModule::InitParams &params);
484
+ };
485
+ } // namespace react
486
+ } // namespace facebook
487
+ namespace JS {
488
+ namespace NativeBlobModule {
489
+ struct Constants {
490
+
491
+ struct Builder {
492
+ struct Input {
493
+ RCTRequired<NSString *> BLOB_URI_SCHEME;
494
+ RCTRequired<NSString *> BLOB_URI_HOST;
495
+ };
496
+
497
+ /** Initialize with a set of values */
498
+ Builder(const Input i);
499
+ /** Initialize with an existing Constants */
500
+ Builder(Constants i);
501
+ /** Builds the object. Generally used only by the infrastructure. */
502
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
503
+ private:
504
+ NSDictionary *(^_factory)(void);
505
+ };
506
+
507
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
508
+ NSDictionary *unsafeRawValue() const { return _v; }
509
+ private:
510
+ Constants(NSDictionary *const v) : _v(v) {}
511
+ NSDictionary *_v;
512
+ };
513
+ }
514
+ }
515
+ @protocol NativeBlobModuleSpec <RCTBridgeModule, RCTTurboModule>
516
+
517
+ - (void)addNetworkingHandler;
518
+ - (void)addWebSocketHandler:(double)id;
519
+ - (void)removeWebSocketHandler:(double)id;
520
+ - (void)sendOverSocket:(NSDictionary *)blob
521
+ socketID:(double)socketID;
522
+ - (void)createFromParts:(NSArray *)parts
523
+ withId:(NSString *)withId;
524
+ - (void)release:(NSString *)blobId;
525
+ - (facebook::react::ModuleConstants<JS::NativeBlobModule::Constants::Builder>)constantsToExport;
526
+ - (facebook::react::ModuleConstants<JS::NativeBlobModule::Constants::Builder>)getConstants;
527
+
528
+ @end
529
+ namespace facebook {
530
+ namespace react {
531
+ /**
532
+ * ObjC++ class for module 'NativeBlobModule'
533
+ */
534
+ class JSI_EXPORT NativeBlobModuleSpecJSI : public ObjCTurboModule {
535
+ public:
536
+ NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams &params);
537
+ };
538
+ } // namespace react
539
+ } // namespace facebook
540
+
541
+ @protocol NativeBugReportingSpec <RCTBridgeModule, RCTTurboModule>
542
+
543
+ - (void)startReportAProblemFlow;
544
+ - (void)setExtraData:(NSDictionary *)extraData
545
+ extraFiles:(NSDictionary *)extraFiles;
546
+ - (void)setCategoryID:(NSString *)categoryID;
547
+
548
+ @end
549
+ namespace facebook {
550
+ namespace react {
551
+ /**
552
+ * ObjC++ class for module 'NativeBugReporting'
553
+ */
554
+ class JSI_EXPORT NativeBugReportingSpecJSI : public ObjCTurboModule {
555
+ public:
556
+ NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams &params);
557
+ };
558
+ } // namespace react
559
+ } // namespace facebook
560
+
561
+ @protocol NativeClipboardSpec <RCTBridgeModule, RCTTurboModule>
562
+
563
+ - (void)getString:(RCTPromiseResolveBlock)resolve
564
+ reject:(RCTPromiseRejectBlock)reject;
565
+ - (void)setString:(NSString *)content;
566
+
567
+ @end
568
+ namespace facebook {
569
+ namespace react {
570
+ /**
571
+ * ObjC++ class for module 'NativeClipboard'
572
+ */
573
+ class JSI_EXPORT NativeClipboardSpecJSI : public ObjCTurboModule {
574
+ public:
575
+ NativeClipboardSpecJSI(const ObjCTurboModule::InitParams &params);
576
+ };
577
+ } // namespace react
578
+ } // namespace facebook
579
+
580
+ @protocol NativeDevLoadingViewSpec <RCTBridgeModule, RCTTurboModule>
581
+
582
+ - (void)showMessage:(NSString *)message
583
+ withColor:(NSNumber *)withColor
584
+ withBackgroundColor:(NSNumber *)withBackgroundColor;
585
+ - (void)hide;
586
+
587
+ @end
588
+ namespace facebook {
589
+ namespace react {
590
+ /**
591
+ * ObjC++ class for module 'NativeDevLoadingView'
592
+ */
593
+ class JSI_EXPORT NativeDevLoadingViewSpecJSI : public ObjCTurboModule {
594
+ public:
595
+ NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams &params);
596
+ };
597
+ } // namespace react
598
+ } // namespace facebook
599
+
600
+ @protocol NativeDevMenuSpec <RCTBridgeModule, RCTTurboModule>
601
+
602
+ - (void)show;
603
+ - (void)reload;
604
+ - (void)debugRemotely:(BOOL)enableDebug;
605
+ - (void)setProfilingEnabled:(BOOL)enabled;
606
+ - (void)setHotLoadingEnabled:(BOOL)enabled;
607
+
608
+ @end
609
+ namespace facebook {
610
+ namespace react {
611
+ /**
612
+ * ObjC++ class for module 'NativeDevMenu'
613
+ */
614
+ class JSI_EXPORT NativeDevMenuSpecJSI : public ObjCTurboModule {
615
+ public:
616
+ NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams &params);
617
+ };
618
+ } // namespace react
619
+ } // namespace facebook
620
+
621
+ @protocol NativeDevSettingsSpec <RCTBridgeModule, RCTTurboModule>
622
+
623
+ - (void)reload;
624
+ - (void)reloadWithReason:(NSString *)reason;
625
+ - (void)onFastRefresh;
626
+ - (void)setHotLoadingEnabled:(BOOL)isHotLoadingEnabled;
627
+ - (void)setIsDebuggingRemotely:(BOOL)isDebuggingRemotelyEnabled;
628
+ - (void)setProfilingEnabled:(BOOL)isProfilingEnabled;
629
+ - (void)toggleElementInspector;
630
+ - (void)addMenuItem:(NSString *)title;
631
+ - (void)addListener:(NSString *)eventName;
632
+ - (void)removeListeners:(double)count;
633
+ - (void)setIsShakeToShowDevMenuEnabled:(BOOL)enabled;
634
+ - (void)setIsSecondaryClickToShowDevMenuEnabled:(BOOL)enabled;
635
+
636
+ @end
637
+ namespace facebook {
638
+ namespace react {
639
+ /**
640
+ * ObjC++ class for module 'NativeDevSettings'
641
+ */
642
+ class JSI_EXPORT NativeDevSettingsSpecJSI : public ObjCTurboModule {
643
+ public:
644
+ NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams &params);
645
+ };
646
+ } // namespace react
647
+ } // namespace facebook
648
+
649
+ @protocol NativeDevSplitBundleLoaderSpec <RCTBridgeModule, RCTTurboModule>
650
+
651
+ - (void)loadBundle:(NSString *)bundlePath
652
+ resolve:(RCTPromiseResolveBlock)resolve
653
+ reject:(RCTPromiseRejectBlock)reject;
654
+
655
+ @end
656
+ namespace facebook {
657
+ namespace react {
658
+ /**
659
+ * ObjC++ class for module 'NativeDevSplitBundleLoader'
660
+ */
661
+ class JSI_EXPORT NativeDevSplitBundleLoaderSpecJSI : public ObjCTurboModule {
662
+ public:
663
+ NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams &params);
664
+ };
665
+ } // namespace react
666
+ } // namespace facebook
667
+
668
+ @protocol NativeDeviceEventManagerSpec <RCTBridgeModule, RCTTurboModule>
669
+
670
+ - (void)invokeDefaultBackPressHandler;
671
+
672
+ @end
673
+ namespace facebook {
674
+ namespace react {
675
+ /**
676
+ * ObjC++ class for module 'NativeDeviceEventManager'
677
+ */
678
+ class JSI_EXPORT NativeDeviceEventManagerSpecJSI : public ObjCTurboModule {
679
+ public:
680
+ NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams &params);
681
+ };
682
+ } // namespace react
683
+ } // namespace facebook
684
+ namespace JS {
685
+ namespace NativeDeviceInfo {
686
+ struct DisplayMetrics {
687
+
688
+ struct Builder {
689
+ struct Input {
690
+ RCTRequired<double> width;
691
+ RCTRequired<double> height;
692
+ RCTRequired<double> scale;
693
+ RCTRequired<double> fontScale;
694
+ };
695
+
696
+ /** Initialize with a set of values */
697
+ Builder(const Input i);
698
+ /** Initialize with an existing DisplayMetrics */
699
+ Builder(DisplayMetrics i);
700
+ /** Builds the object. Generally used only by the infrastructure. */
701
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
702
+ private:
703
+ NSDictionary *(^_factory)(void);
704
+ };
705
+
706
+ static DisplayMetrics fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
707
+ NSDictionary *unsafeRawValue() const { return _v; }
708
+ private:
709
+ DisplayMetrics(NSDictionary *const v) : _v(v) {}
710
+ NSDictionary *_v;
711
+ };
712
+ }
713
+ }
714
+ namespace JS {
715
+ namespace NativeDeviceInfo {
716
+ struct DisplayMetricsAndroid {
717
+
718
+ struct Builder {
719
+ struct Input {
720
+ RCTRequired<double> width;
721
+ RCTRequired<double> height;
722
+ RCTRequired<double> scale;
723
+ RCTRequired<double> fontScale;
724
+ RCTRequired<double> densityDpi;
725
+ };
726
+
727
+ /** Initialize with a set of values */
728
+ Builder(const Input i);
729
+ /** Initialize with an existing DisplayMetricsAndroid */
730
+ Builder(DisplayMetricsAndroid i);
731
+ /** Builds the object. Generally used only by the infrastructure. */
732
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
733
+ private:
734
+ NSDictionary *(^_factory)(void);
735
+ };
736
+
737
+ static DisplayMetricsAndroid fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
738
+ NSDictionary *unsafeRawValue() const { return _v; }
739
+ private:
740
+ DisplayMetricsAndroid(NSDictionary *const v) : _v(v) {}
741
+ NSDictionary *_v;
742
+ };
743
+ }
744
+ }
745
+ namespace JS {
746
+ namespace NativeDeviceInfo {
747
+ struct DimensionsPayload {
748
+
749
+ struct Builder {
750
+ struct Input {
751
+ folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
752
+ folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
753
+ folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
754
+ folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
755
+ };
756
+
757
+ /** Initialize with a set of values */
758
+ Builder(const Input i);
759
+ /** Initialize with an existing DimensionsPayload */
760
+ Builder(DimensionsPayload i);
761
+ /** Builds the object. Generally used only by the infrastructure. */
762
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
763
+ private:
764
+ NSDictionary *(^_factory)(void);
765
+ };
766
+
767
+ static DimensionsPayload fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
768
+ NSDictionary *unsafeRawValue() const { return _v; }
769
+ private:
770
+ DimensionsPayload(NSDictionary *const v) : _v(v) {}
771
+ NSDictionary *_v;
772
+ };
773
+ }
774
+ }
775
+ namespace JS {
776
+ namespace NativeDeviceInfo {
777
+ struct Constants {
778
+
779
+ struct Builder {
780
+ struct Input {
781
+ RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions;
782
+ folly::Optional<bool> isIPhoneX_deprecated;
783
+ };
784
+
785
+ /** Initialize with a set of values */
786
+ Builder(const Input i);
787
+ /** Initialize with an existing Constants */
788
+ Builder(Constants i);
789
+ /** Builds the object. Generally used only by the infrastructure. */
790
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
791
+ private:
792
+ NSDictionary *(^_factory)(void);
793
+ };
794
+
795
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
796
+ NSDictionary *unsafeRawValue() const { return _v; }
797
+ private:
798
+ Constants(NSDictionary *const v) : _v(v) {}
799
+ NSDictionary *_v;
800
+ };
801
+ }
802
+ }
803
+ @protocol NativeDeviceInfoSpec <RCTBridgeModule, RCTTurboModule>
804
+
805
+ - (facebook::react::ModuleConstants<JS::NativeDeviceInfo::Constants::Builder>)constantsToExport;
806
+ - (facebook::react::ModuleConstants<JS::NativeDeviceInfo::Constants::Builder>)getConstants;
807
+
808
+ @end
809
+ namespace facebook {
810
+ namespace react {
811
+ /**
812
+ * ObjC++ class for module 'NativeDeviceInfo'
813
+ */
814
+ class JSI_EXPORT NativeDeviceInfoSpecJSI : public ObjCTurboModule {
815
+ public:
816
+ NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams &params);
817
+ };
818
+ } // namespace react
819
+ } // namespace facebook
820
+ namespace JS {
821
+ namespace NativeExceptionsManager {
822
+ struct StackFrame {
823
+ folly::Optional<double> column() const;
824
+ NSString *file() const;
825
+ folly::Optional<double> lineNumber() const;
826
+ NSString *methodName() const;
827
+ folly::Optional<bool> collapse() const;
828
+
829
+ StackFrame(NSDictionary *const v) : _v(v) {}
830
+ private:
831
+ NSDictionary *_v;
832
+ };
833
+ }
834
+ }
835
+
836
+ @interface RCTCxxConvert (NativeExceptionsManager_StackFrame)
837
+ + (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json;
838
+ @end
839
+ namespace JS {
840
+ namespace NativeExceptionsManager {
841
+ struct ExceptionData {
842
+ NSString *message() const;
843
+ NSString *originalMessage() const;
844
+ NSString *name() const;
845
+ NSString *componentStack() const;
846
+ facebook::react::LazyVector<JS::NativeExceptionsManager::StackFrame> stack() const;
847
+ double id_() const;
848
+ bool isFatal() const;
849
+ id<NSObject> _Nullable extraData() const;
850
+
851
+ ExceptionData(NSDictionary *const v) : _v(v) {}
852
+ private:
853
+ NSDictionary *_v;
854
+ };
855
+ }
856
+ }
857
+
858
+ @interface RCTCxxConvert (NativeExceptionsManager_ExceptionData)
859
+ + (RCTManagedPointer *)JS_NativeExceptionsManager_ExceptionData:(id)json;
860
+ @end
861
+ @protocol NativeExceptionsManagerSpec <RCTBridgeModule, RCTTurboModule>
862
+
863
+ - (void)reportFatalException:(NSString *)message
864
+ stack:(NSArray *)stack
865
+ exceptionId:(double)exceptionId;
866
+ - (void)reportSoftException:(NSString *)message
867
+ stack:(NSArray *)stack
868
+ exceptionId:(double)exceptionId;
869
+ - (void)reportException:(JS::NativeExceptionsManager::ExceptionData &)data;
870
+ - (void)updateExceptionMessage:(NSString *)message
871
+ stack:(NSArray *)stack
872
+ exceptionId:(double)exceptionId;
873
+ - (void)dismissRedbox;
874
+
875
+ @end
876
+ namespace facebook {
877
+ namespace react {
878
+ /**
879
+ * ObjC++ class for module 'NativeExceptionsManager'
880
+ */
881
+ class JSI_EXPORT NativeExceptionsManagerSpecJSI : public ObjCTurboModule {
882
+ public:
883
+ NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams &params);
884
+ };
885
+ } // namespace react
886
+ } // namespace facebook
887
+
888
+ @protocol NativeFileReaderModuleSpec <RCTBridgeModule, RCTTurboModule>
889
+
890
+ - (void)readAsDataURL:(NSDictionary *)data
891
+ resolve:(RCTPromiseResolveBlock)resolve
892
+ reject:(RCTPromiseRejectBlock)reject;
893
+ - (void)readAsText:(NSDictionary *)data
894
+ encoding:(NSString *)encoding
895
+ resolve:(RCTPromiseResolveBlock)resolve
896
+ reject:(RCTPromiseRejectBlock)reject;
897
+
898
+ @end
899
+ namespace facebook {
900
+ namespace react {
901
+ /**
902
+ * ObjC++ class for module 'NativeFileReaderModule'
903
+ */
904
+ class JSI_EXPORT NativeFileReaderModuleSpecJSI : public ObjCTurboModule {
905
+ public:
906
+ NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams &params);
907
+ };
908
+ } // namespace react
909
+ } // namespace facebook
910
+ namespace JS {
911
+ namespace NativeFrameRateLogger {
912
+ struct SpecSetGlobalOptionsOptions {
913
+ folly::Optional<bool> debug() const;
914
+ folly::Optional<bool> reportStackTraces() const;
915
+
916
+ SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {}
917
+ private:
918
+ NSDictionary *_v;
919
+ };
920
+ }
921
+ }
922
+
923
+ @interface RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions)
924
+ + (RCTManagedPointer *)JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:(id)json;
925
+ @end
926
+ @protocol NativeFrameRateLoggerSpec <RCTBridgeModule, RCTTurboModule>
927
+
928
+ - (void)setGlobalOptions:(JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions &)options;
929
+ - (void)setContext:(NSString *)context;
930
+ - (void)beginScroll;
931
+ - (void)endScroll;
932
+
933
+ @end
934
+ namespace facebook {
935
+ namespace react {
936
+ /**
937
+ * ObjC++ class for module 'NativeFrameRateLogger'
938
+ */
939
+ class JSI_EXPORT NativeFrameRateLoggerSpecJSI : public ObjCTurboModule {
940
+ public:
941
+ NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams &params);
942
+ };
943
+ } // namespace react
944
+ } // namespace facebook
945
+
946
+ @protocol NativeHeadlessJsTaskSupportSpec <RCTBridgeModule, RCTTurboModule>
947
+
948
+ - (void)notifyTaskFinished:(double)taskId;
949
+ - (void)notifyTaskRetry:(double)taskId
950
+ resolve:(RCTPromiseResolveBlock)resolve
951
+ reject:(RCTPromiseRejectBlock)reject;
952
+
953
+ @end
954
+ namespace facebook {
955
+ namespace react {
956
+ /**
957
+ * ObjC++ class for module 'NativeHeadlessJsTaskSupport'
958
+ */
959
+ class JSI_EXPORT NativeHeadlessJsTaskSupportSpecJSI : public ObjCTurboModule {
960
+ public:
961
+ NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams &params);
962
+ };
963
+ } // namespace react
964
+ } // namespace facebook
965
+ namespace JS {
966
+ namespace NativeI18nManager {
967
+ struct Constants {
968
+
969
+ struct Builder {
970
+ struct Input {
971
+ RCTRequired<bool> isRTL;
972
+ RCTRequired<bool> doLeftAndRightSwapInRTL;
973
+ RCTRequired<NSString *> localeIdentifier;
974
+ };
975
+
976
+ /** Initialize with a set of values */
977
+ Builder(const Input i);
978
+ /** Initialize with an existing Constants */
979
+ Builder(Constants i);
980
+ /** Builds the object. Generally used only by the infrastructure. */
981
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
982
+ private:
983
+ NSDictionary *(^_factory)(void);
984
+ };
985
+
986
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
987
+ NSDictionary *unsafeRawValue() const { return _v; }
988
+ private:
989
+ Constants(NSDictionary *const v) : _v(v) {}
990
+ NSDictionary *_v;
991
+ };
992
+ }
993
+ }
994
+ @protocol NativeI18nManagerSpec <RCTBridgeModule, RCTTurboModule>
995
+
996
+ - (void)allowRTL:(BOOL)allowRTL;
997
+ - (void)forceRTL:(BOOL)forceRTL;
998
+ - (void)swapLeftAndRightInRTL:(BOOL)flipStyles;
999
+ - (facebook::react::ModuleConstants<JS::NativeI18nManager::Constants::Builder>)constantsToExport;
1000
+ - (facebook::react::ModuleConstants<JS::NativeI18nManager::Constants::Builder>)getConstants;
1001
+
1002
+ @end
1003
+ namespace facebook {
1004
+ namespace react {
1005
+ /**
1006
+ * ObjC++ class for module 'NativeI18nManager'
1007
+ */
1008
+ class JSI_EXPORT NativeI18nManagerSpecJSI : public ObjCTurboModule {
1009
+ public:
1010
+ NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1011
+ };
1012
+ } // namespace react
1013
+ } // namespace facebook
1014
+ namespace JS {
1015
+ namespace NativeImageEditor {
1016
+ struct OptionsOffset {
1017
+ double x() const;
1018
+ double y() const;
1019
+
1020
+ OptionsOffset(NSDictionary *const v) : _v(v) {}
1021
+ private:
1022
+ NSDictionary *_v;
1023
+ };
1024
+ }
1025
+ }
1026
+
1027
+ @interface RCTCxxConvert (NativeImageEditor_OptionsOffset)
1028
+ + (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json;
1029
+ @end
1030
+ namespace JS {
1031
+ namespace NativeImageEditor {
1032
+ struct OptionsSize {
1033
+ double width() const;
1034
+ double height() const;
1035
+
1036
+ OptionsSize(NSDictionary *const v) : _v(v) {}
1037
+ private:
1038
+ NSDictionary *_v;
1039
+ };
1040
+ }
1041
+ }
1042
+
1043
+ @interface RCTCxxConvert (NativeImageEditor_OptionsSize)
1044
+ + (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json;
1045
+ @end
1046
+ namespace JS {
1047
+ namespace NativeImageEditor {
1048
+ struct OptionsDisplaySize {
1049
+ double width() const;
1050
+ double height() const;
1051
+
1052
+ OptionsDisplaySize(NSDictionary *const v) : _v(v) {}
1053
+ private:
1054
+ NSDictionary *_v;
1055
+ };
1056
+ }
1057
+ }
1058
+
1059
+ @interface RCTCxxConvert (NativeImageEditor_OptionsDisplaySize)
1060
+ + (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json;
1061
+ @end
1062
+ namespace JS {
1063
+ namespace NativeImageEditor {
1064
+ struct Options {
1065
+ JS::NativeImageEditor::OptionsOffset offset() const;
1066
+ JS::NativeImageEditor::OptionsSize size() const;
1067
+ folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
1068
+ NSString *resizeMode() const;
1069
+ folly::Optional<bool> allowExternalStorage() const;
1070
+
1071
+ Options(NSDictionary *const v) : _v(v) {}
1072
+ private:
1073
+ NSDictionary *_v;
1074
+ };
1075
+ }
1076
+ }
1077
+
1078
+ @interface RCTCxxConvert (NativeImageEditor_Options)
1079
+ + (RCTManagedPointer *)JS_NativeImageEditor_Options:(id)json;
1080
+ @end
1081
+ @protocol NativeImageEditorSpec <RCTBridgeModule, RCTTurboModule>
1082
+
1083
+ - (void)cropImage:(NSString *)uri
1084
+ cropData:(JS::NativeImageEditor::Options &)cropData
1085
+ successCallback:(RCTResponseSenderBlock)successCallback
1086
+ errorCallback:(RCTResponseSenderBlock)errorCallback;
1087
+
1088
+ @end
1089
+ namespace facebook {
1090
+ namespace react {
1091
+ /**
1092
+ * ObjC++ class for module 'NativeImageEditor'
1093
+ */
1094
+ class JSI_EXPORT NativeImageEditorSpecJSI : public ObjCTurboModule {
1095
+ public:
1096
+ NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams &params);
1097
+ };
1098
+ } // namespace react
1099
+ } // namespace facebook
1100
+
1101
+ @protocol NativeImageLoaderIOSSpec <RCTBridgeModule, RCTTurboModule>
1102
+
1103
+ - (void)getSize:(NSString *)uri
1104
+ resolve:(RCTPromiseResolveBlock)resolve
1105
+ reject:(RCTPromiseRejectBlock)reject;
1106
+ - (void)getSizeWithHeaders:(NSString *)uri
1107
+ headers:(NSDictionary *)headers
1108
+ resolve:(RCTPromiseResolveBlock)resolve
1109
+ reject:(RCTPromiseRejectBlock)reject;
1110
+ - (void)prefetchImage:(NSString *)uri
1111
+ resolve:(RCTPromiseResolveBlock)resolve
1112
+ reject:(RCTPromiseRejectBlock)reject;
1113
+ - (void)prefetchImageWithMetadata:(NSString *)uri
1114
+ queryRootName:(NSString *)queryRootName
1115
+ rootTag:(double)rootTag
1116
+ resolve:(RCTPromiseResolveBlock)resolve
1117
+ reject:(RCTPromiseRejectBlock)reject;
1118
+ - (void)queryCache:(NSArray *)uris
1119
+ resolve:(RCTPromiseResolveBlock)resolve
1120
+ reject:(RCTPromiseRejectBlock)reject;
1121
+
1122
+ @end
1123
+ namespace facebook {
1124
+ namespace react {
1125
+ /**
1126
+ * ObjC++ class for module 'NativeImageLoaderIOS'
1127
+ */
1128
+ class JSI_EXPORT NativeImageLoaderIOSSpecJSI : public ObjCTurboModule {
1129
+ public:
1130
+ NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1131
+ };
1132
+ } // namespace react
1133
+ } // namespace facebook
1134
+ namespace JS {
1135
+ namespace NativeImagePickerIOS {
1136
+ struct SpecOpenCameraDialogConfig {
1137
+ bool unmirrorFrontFacingCamera() const;
1138
+ bool videoMode() const;
1139
+
1140
+ SpecOpenCameraDialogConfig(NSDictionary *const v) : _v(v) {}
1141
+ private:
1142
+ NSDictionary *_v;
1143
+ };
1144
+ }
1145
+ }
1146
+
1147
+ @interface RCTCxxConvert (NativeImagePickerIOS_SpecOpenCameraDialogConfig)
1148
+ + (RCTManagedPointer *)JS_NativeImagePickerIOS_SpecOpenCameraDialogConfig:(id)json;
1149
+ @end
1150
+ namespace JS {
1151
+ namespace NativeImagePickerIOS {
1152
+ struct SpecOpenSelectDialogConfig {
1153
+ bool showImages() const;
1154
+ bool showVideos() const;
1155
+
1156
+ SpecOpenSelectDialogConfig(NSDictionary *const v) : _v(v) {}
1157
+ private:
1158
+ NSDictionary *_v;
1159
+ };
1160
+ }
1161
+ }
1162
+
1163
+ @interface RCTCxxConvert (NativeImagePickerIOS_SpecOpenSelectDialogConfig)
1164
+ + (RCTManagedPointer *)JS_NativeImagePickerIOS_SpecOpenSelectDialogConfig:(id)json;
1165
+ @end
1166
+ @protocol NativeImagePickerIOSSpec <RCTBridgeModule, RCTTurboModule>
1167
+
1168
+ - (void)canRecordVideos:(RCTResponseSenderBlock)callback;
1169
+ - (void)canUseCamera:(RCTResponseSenderBlock)callback;
1170
+ - (void)openCameraDialog:(JS::NativeImagePickerIOS::SpecOpenCameraDialogConfig &)config
1171
+ successCallback:(RCTResponseSenderBlock)successCallback
1172
+ cancelCallback:(RCTResponseSenderBlock)cancelCallback;
1173
+ - (void)openSelectDialog:(JS::NativeImagePickerIOS::SpecOpenSelectDialogConfig &)config
1174
+ successCallback:(RCTResponseSenderBlock)successCallback
1175
+ cancelCallback:(RCTResponseSenderBlock)cancelCallback;
1176
+ - (void)clearAllPendingVideos;
1177
+ - (void)removePendingVideo:(NSString *)url;
1178
+
1179
+ @end
1180
+ namespace facebook {
1181
+ namespace react {
1182
+ /**
1183
+ * ObjC++ class for module 'NativeImagePickerIOS'
1184
+ */
1185
+ class JSI_EXPORT NativeImagePickerIOSSpecJSI : public ObjCTurboModule {
1186
+ public:
1187
+ NativeImagePickerIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1188
+ };
1189
+ } // namespace react
1190
+ } // namespace facebook
1191
+
1192
+ @protocol NativeImageStoreIOSSpec <RCTBridgeModule, RCTTurboModule>
1193
+
1194
+ - (void)getBase64ForTag:(NSString *)uri
1195
+ successCallback:(RCTResponseSenderBlock)successCallback
1196
+ errorCallback:(RCTResponseSenderBlock)errorCallback;
1197
+ - (void)hasImageForTag:(NSString *)uri
1198
+ callback:(RCTResponseSenderBlock)callback;
1199
+ - (void)removeImageForTag:(NSString *)uri;
1200
+ - (void)addImageFromBase64:(NSString *)base64ImageData
1201
+ successCallback:(RCTResponseSenderBlock)successCallback
1202
+ errorCallback:(RCTResponseSenderBlock)errorCallback;
1203
+
1204
+ @end
1205
+ namespace facebook {
1206
+ namespace react {
1207
+ /**
1208
+ * ObjC++ class for module 'NativeImageStoreIOS'
1209
+ */
1210
+ class JSI_EXPORT NativeImageStoreIOSSpecJSI : public ObjCTurboModule {
1211
+ public:
1212
+ NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1213
+ };
1214
+ } // namespace react
1215
+ } // namespace facebook
1216
+
1217
+ @protocol NativeJSCHeapCaptureSpec <RCTBridgeModule, RCTTurboModule>
1218
+
1219
+ - (void)captureComplete:(NSString *)path
1220
+ error:(NSString * _Nullable)error;
1221
+
1222
+ @end
1223
+ namespace facebook {
1224
+ namespace react {
1225
+ /**
1226
+ * ObjC++ class for module 'NativeJSCHeapCapture'
1227
+ */
1228
+ class JSI_EXPORT NativeJSCHeapCaptureSpecJSI : public ObjCTurboModule {
1229
+ public:
1230
+ NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams &params);
1231
+ };
1232
+ } // namespace react
1233
+ } // namespace facebook
1234
+
1235
+ @protocol NativeJSCSamplingProfilerSpec <RCTBridgeModule, RCTTurboModule>
1236
+
1237
+ - (void)operationComplete:(double)token
1238
+ result:(NSString * _Nullable)result
1239
+ error:(NSString * _Nullable)error;
1240
+
1241
+ @end
1242
+ namespace facebook {
1243
+ namespace react {
1244
+ /**
1245
+ * ObjC++ class for module 'NativeJSCSamplingProfiler'
1246
+ */
1247
+ class JSI_EXPORT NativeJSCSamplingProfilerSpecJSI : public ObjCTurboModule {
1248
+ public:
1249
+ NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams &params);
1250
+ };
1251
+ } // namespace react
1252
+ } // namespace facebook
1253
+ namespace JS {
1254
+ namespace NativeJSDevSupport {
1255
+ struct Constants {
1256
+
1257
+ struct Builder {
1258
+ struct Input {
1259
+ RCTRequired<double> ERROR_CODE_EXCEPTION;
1260
+ RCTRequired<double> ERROR_CODE_VIEW_NOT_FOUND;
1261
+ };
1262
+
1263
+ /** Initialize with a set of values */
1264
+ Builder(const Input i);
1265
+ /** Initialize with an existing Constants */
1266
+ Builder(Constants i);
1267
+ /** Builds the object. Generally used only by the infrastructure. */
1268
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1269
+ private:
1270
+ NSDictionary *(^_factory)(void);
1271
+ };
1272
+
1273
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1274
+ NSDictionary *unsafeRawValue() const { return _v; }
1275
+ private:
1276
+ Constants(NSDictionary *const v) : _v(v) {}
1277
+ NSDictionary *_v;
1278
+ };
1279
+ }
1280
+ }
1281
+ @protocol NativeJSDevSupportSpec <RCTBridgeModule, RCTTurboModule>
1282
+
1283
+ - (void)onSuccess:(NSString *)data;
1284
+ - (void)onFailure:(double)errorCode
1285
+ error:(NSString *)error;
1286
+ - (facebook::react::ModuleConstants<JS::NativeJSDevSupport::Constants::Builder>)constantsToExport;
1287
+ - (facebook::react::ModuleConstants<JS::NativeJSDevSupport::Constants::Builder>)getConstants;
1288
+
1289
+ @end
1290
+ namespace facebook {
1291
+ namespace react {
1292
+ /**
1293
+ * ObjC++ class for module 'NativeJSDevSupport'
1294
+ */
1295
+ class JSI_EXPORT NativeJSDevSupportSpecJSI : public ObjCTurboModule {
1296
+ public:
1297
+ NativeJSDevSupportSpecJSI(const ObjCTurboModule::InitParams &params);
1298
+ };
1299
+ } // namespace react
1300
+ } // namespace facebook
1301
+
1302
+ @protocol NativeKeyboardObserverSpec <RCTBridgeModule, RCTTurboModule>
1303
+
1304
+ - (void)addListener:(NSString *)eventName;
1305
+ - (void)removeListeners:(double)count;
1306
+
1307
+ @end
1308
+ namespace facebook {
1309
+ namespace react {
1310
+ /**
1311
+ * ObjC++ class for module 'NativeKeyboardObserver'
1312
+ */
1313
+ class JSI_EXPORT NativeKeyboardObserverSpecJSI : public ObjCTurboModule {
1314
+ public:
1315
+ NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams &params);
1316
+ };
1317
+ } // namespace react
1318
+ } // namespace facebook
1319
+
1320
+ @protocol NativeLinkingManagerSpec <RCTBridgeModule, RCTTurboModule>
1321
+
1322
+ - (void)getInitialURL:(RCTPromiseResolveBlock)resolve
1323
+ reject:(RCTPromiseRejectBlock)reject;
1324
+ - (void)canOpenURL:(NSString *)url
1325
+ resolve:(RCTPromiseResolveBlock)resolve
1326
+ reject:(RCTPromiseRejectBlock)reject;
1327
+ - (void)openURL:(NSString *)url
1328
+ resolve:(RCTPromiseResolveBlock)resolve
1329
+ reject:(RCTPromiseRejectBlock)reject;
1330
+ - (void)openSettings:(RCTPromiseResolveBlock)resolve
1331
+ reject:(RCTPromiseRejectBlock)reject;
1332
+ - (void)addListener:(NSString *)eventName;
1333
+ - (void)removeListeners:(double)count;
1334
+
1335
+ @end
1336
+ namespace facebook {
1337
+ namespace react {
1338
+ /**
1339
+ * ObjC++ class for module 'NativeLinkingManager'
1340
+ */
1341
+ class JSI_EXPORT NativeLinkingManagerSpecJSI : public ObjCTurboModule {
1342
+ public:
1343
+ NativeLinkingManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1344
+ };
1345
+ } // namespace react
1346
+ } // namespace facebook
1347
+
1348
+ @protocol NativeLogBoxSpec <RCTBridgeModule, RCTTurboModule>
1349
+
1350
+ - (void)show;
1351
+ - (void)hide;
1352
+
1353
+ @end
1354
+ namespace facebook {
1355
+ namespace react {
1356
+ /**
1357
+ * ObjC++ class for module 'NativeLogBox'
1358
+ */
1359
+ class JSI_EXPORT NativeLogBoxSpecJSI : public ObjCTurboModule {
1360
+ public:
1361
+ NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams &params);
1362
+ };
1363
+ } // namespace react
1364
+ } // namespace facebook
1365
+
1366
+ @protocol NativeModalManagerSpec <RCTBridgeModule, RCTTurboModule>
1367
+
1368
+ - (void)addListener:(NSString *)eventName;
1369
+ - (void)removeListeners:(double)count;
1370
+
1371
+ @end
1372
+ namespace facebook {
1373
+ namespace react {
1374
+ /**
1375
+ * ObjC++ class for module 'NativeModalManager'
1376
+ */
1377
+ class JSI_EXPORT NativeModalManagerSpecJSI : public ObjCTurboModule {
1378
+ public:
1379
+ NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1380
+ };
1381
+ } // namespace react
1382
+ } // namespace facebook
1383
+ namespace JS {
1384
+ namespace NativeNetworkingIOS {
1385
+ struct SpecSendRequestQuery {
1386
+ NSString *method() const;
1387
+ NSString *url() const;
1388
+ id<NSObject> data() const;
1389
+ id<NSObject> headers() const;
1390
+ NSString *responseType() const;
1391
+ bool incrementalUpdates() const;
1392
+ double timeout() const;
1393
+ bool withCredentials() const;
1394
+
1395
+ SpecSendRequestQuery(NSDictionary *const v) : _v(v) {}
1396
+ private:
1397
+ NSDictionary *_v;
1398
+ };
1399
+ }
1400
+ }
1401
+
1402
+ @interface RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery)
1403
+ + (RCTManagedPointer *)JS_NativeNetworkingIOS_SpecSendRequestQuery:(id)json;
1404
+ @end
1405
+ @protocol NativeNetworkingIOSSpec <RCTBridgeModule, RCTTurboModule>
1406
+
1407
+ - (void)sendRequest:(JS::NativeNetworkingIOS::SpecSendRequestQuery &)query
1408
+ callback:(RCTResponseSenderBlock)callback;
1409
+ - (void)abortRequest:(double)requestId;
1410
+ - (void)clearCookies:(RCTResponseSenderBlock)callback;
1411
+ - (void)addListener:(NSString *)eventName;
1412
+ - (void)removeListeners:(double)count;
1413
+
1414
+ @end
1415
+ namespace facebook {
1416
+ namespace react {
1417
+ /**
1418
+ * ObjC++ class for module 'NativeNetworkingIOS'
1419
+ */
1420
+ class JSI_EXPORT NativeNetworkingIOSSpecJSI : public ObjCTurboModule {
1421
+ public:
1422
+ NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1423
+ };
1424
+ } // namespace react
1425
+ } // namespace facebook
1426
+ namespace JS {
1427
+ namespace NativePlatformConstantsIOS {
1428
+ struct ConstantsReactNativeVersion {
1429
+
1430
+ struct Builder {
1431
+ struct Input {
1432
+ RCTRequired<double> major;
1433
+ RCTRequired<double> minor;
1434
+ RCTRequired<double> patch;
1435
+ RCTRequired<folly::Optional<double>> prerelease;
1436
+ };
1437
+
1438
+ /** Initialize with a set of values */
1439
+ Builder(const Input i);
1440
+ /** Initialize with an existing ConstantsReactNativeVersion */
1441
+ Builder(ConstantsReactNativeVersion i);
1442
+ /** Builds the object. Generally used only by the infrastructure. */
1443
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1444
+ private:
1445
+ NSDictionary *(^_factory)(void);
1446
+ };
1447
+
1448
+ static ConstantsReactNativeVersion fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1449
+ NSDictionary *unsafeRawValue() const { return _v; }
1450
+ private:
1451
+ ConstantsReactNativeVersion(NSDictionary *const v) : _v(v) {}
1452
+ NSDictionary *_v;
1453
+ };
1454
+ }
1455
+ }
1456
+ namespace JS {
1457
+ namespace NativePlatformConstantsIOS {
1458
+ struct Constants {
1459
+
1460
+ struct Builder {
1461
+ struct Input {
1462
+ RCTRequired<bool> isTesting;
1463
+ RCTRequired<JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder> reactNativeVersion;
1464
+ RCTRequired<bool> forceTouchAvailable;
1465
+ RCTRequired<NSString *> osVersion;
1466
+ RCTRequired<NSString *> systemName;
1467
+ RCTRequired<NSString *> interfaceIdiom;
1468
+ };
1469
+
1470
+ /** Initialize with a set of values */
1471
+ Builder(const Input i);
1472
+ /** Initialize with an existing Constants */
1473
+ Builder(Constants i);
1474
+ /** Builds the object. Generally used only by the infrastructure. */
1475
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1476
+ private:
1477
+ NSDictionary *(^_factory)(void);
1478
+ };
1479
+
1480
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1481
+ NSDictionary *unsafeRawValue() const { return _v; }
1482
+ private:
1483
+ Constants(NSDictionary *const v) : _v(v) {}
1484
+ NSDictionary *_v;
1485
+ };
1486
+ }
1487
+ }
1488
+ @protocol NativePlatformConstantsIOSSpec <RCTBridgeModule, RCTTurboModule>
1489
+
1490
+ - (facebook::react::ModuleConstants<JS::NativePlatformConstantsIOS::Constants::Builder>)constantsToExport;
1491
+ - (facebook::react::ModuleConstants<JS::NativePlatformConstantsIOS::Constants::Builder>)getConstants;
1492
+
1493
+ @end
1494
+ namespace facebook {
1495
+ namespace react {
1496
+ /**
1497
+ * ObjC++ class for module 'NativePlatformConstantsIOS'
1498
+ */
1499
+ class JSI_EXPORT NativePlatformConstantsIOSSpecJSI : public ObjCTurboModule {
1500
+ public:
1501
+ NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1502
+ };
1503
+ } // namespace react
1504
+ } // namespace facebook
1505
+ namespace JS {
1506
+ namespace NativePlatformConstantsMacOS {
1507
+ struct ConstantsReactNativeVersion {
1508
+
1509
+ struct Builder {
1510
+ struct Input {
1511
+ RCTRequired<double> major;
1512
+ RCTRequired<double> minor;
1513
+ RCTRequired<double> patch;
1514
+ RCTRequired<folly::Optional<double>> prerelease;
1515
+ };
1516
+
1517
+ /** Initialize with a set of values */
1518
+ Builder(const Input i);
1519
+ /** Initialize with an existing ConstantsReactNativeVersion */
1520
+ Builder(ConstantsReactNativeVersion i);
1521
+ /** Builds the object. Generally used only by the infrastructure. */
1522
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1523
+ private:
1524
+ NSDictionary *(^_factory)(void);
1525
+ };
1526
+
1527
+ static ConstantsReactNativeVersion fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1528
+ NSDictionary *unsafeRawValue() const { return _v; }
1529
+ private:
1530
+ ConstantsReactNativeVersion(NSDictionary *const v) : _v(v) {}
1531
+ NSDictionary *_v;
1532
+ };
1533
+ }
1534
+ }
1535
+ namespace JS {
1536
+ namespace NativePlatformConstantsMacOS {
1537
+ struct Constants {
1538
+
1539
+ struct Builder {
1540
+ struct Input {
1541
+ RCTRequired<bool> isTesting;
1542
+ RCTRequired<JS::NativePlatformConstantsMacOS::ConstantsReactNativeVersion::Builder> reactNativeVersion;
1543
+ RCTRequired<NSString *> osVersion;
1544
+ RCTRequired<NSString *> systemName;
1545
+ };
1546
+
1547
+ /** Initialize with a set of values */
1548
+ Builder(const Input i);
1549
+ /** Initialize with an existing Constants */
1550
+ Builder(Constants i);
1551
+ /** Builds the object. Generally used only by the infrastructure. */
1552
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1553
+ private:
1554
+ NSDictionary *(^_factory)(void);
1555
+ };
1556
+
1557
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1558
+ NSDictionary *unsafeRawValue() const { return _v; }
1559
+ private:
1560
+ Constants(NSDictionary *const v) : _v(v) {}
1561
+ NSDictionary *_v;
1562
+ };
1563
+ }
1564
+ }
1565
+ @protocol NativePlatformConstantsMacOSSpec <RCTBridgeModule, RCTTurboModule>
1566
+
1567
+ - (facebook::react::ModuleConstants<JS::NativePlatformConstantsMacOS::Constants::Builder>)constantsToExport;
1568
+ - (facebook::react::ModuleConstants<JS::NativePlatformConstantsMacOS::Constants::Builder>)getConstants;
1569
+
1570
+ @end
1571
+ namespace facebook {
1572
+ namespace react {
1573
+ /**
1574
+ * ObjC++ class for module 'NativePlatformConstantsMacOS'
1575
+ */
1576
+ class JSI_EXPORT NativePlatformConstantsMacOSSpecJSI : public ObjCTurboModule {
1577
+ public:
1578
+ NativePlatformConstantsMacOSSpecJSI(const ObjCTurboModule::InitParams &params);
1579
+ };
1580
+ } // namespace react
1581
+ } // namespace facebook
1582
+ namespace JS {
1583
+ namespace NativePushNotificationManagerIOS {
1584
+ struct SpecRequestPermissionsPermission {
1585
+ bool alert() const;
1586
+ bool badge() const;
1587
+ bool sound() const;
1588
+
1589
+ SpecRequestPermissionsPermission(NSDictionary *const v) : _v(v) {}
1590
+ private:
1591
+ NSDictionary *_v;
1592
+ };
1593
+ }
1594
+ }
1595
+
1596
+ @interface RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission)
1597
+ + (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json;
1598
+ @end
1599
+ namespace JS {
1600
+ namespace NativePushNotificationManagerIOS {
1601
+ struct Notification {
1602
+ NSString *alertTitle() const;
1603
+ folly::Optional<double> fireDate() const;
1604
+ NSString *alertBody() const;
1605
+ NSString *alertAction() const;
1606
+ id<NSObject> _Nullable userInfo() const;
1607
+ NSString *category() const;
1608
+ NSString *repeatInterval() const;
1609
+ folly::Optional<double> applicationIconBadgeNumber() const;
1610
+ folly::Optional<bool> isSilent() const;
1611
+
1612
+ Notification(NSDictionary *const v) : _v(v) {}
1613
+ private:
1614
+ NSDictionary *_v;
1615
+ };
1616
+ }
1617
+ }
1618
+
1619
+ @interface RCTCxxConvert (NativePushNotificationManagerIOS_Notification)
1620
+ + (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json;
1621
+ @end
1622
+ @protocol NativePushNotificationManagerIOSSpec <RCTBridgeModule, RCTTurboModule>
1623
+
1624
+ - (void)onFinishRemoteNotification:(NSString *)notificationId
1625
+ fetchResult:(NSString *)fetchResult;
1626
+ - (void)setApplicationIconBadgeNumber:(double)num;
1627
+ - (void)getApplicationIconBadgeNumber:(RCTResponseSenderBlock)callback;
1628
+ - (void)requestPermissions:(JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission &)permission
1629
+ resolve:(RCTPromiseResolveBlock)resolve
1630
+ reject:(RCTPromiseRejectBlock)reject;
1631
+ - (void)abandonPermissions;
1632
+ - (void)checkPermissions:(RCTResponseSenderBlock)callback;
1633
+ - (void)presentLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification;
1634
+ - (void)scheduleLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification;
1635
+ - (void)cancelAllLocalNotifications;
1636
+ - (void)cancelLocalNotifications:(NSDictionary *)userInfo;
1637
+ - (void)getInitialNotification:(RCTPromiseResolveBlock)resolve
1638
+ reject:(RCTPromiseRejectBlock)reject;
1639
+ - (void)getScheduledLocalNotifications:(RCTResponseSenderBlock)callback;
1640
+ - (void)removeAllDeliveredNotifications;
1641
+ - (void)removeDeliveredNotifications:(NSArray *)identifiers;
1642
+ - (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback;
1643
+ - (void)getAuthorizationStatus:(RCTResponseSenderBlock)callback;
1644
+ - (void)addListener:(NSString *)eventType;
1645
+ - (void)removeListeners:(double)count;
1646
+
1647
+ @end
1648
+ namespace facebook {
1649
+ namespace react {
1650
+ /**
1651
+ * ObjC++ class for module 'NativePushNotificationManagerIOS'
1652
+ */
1653
+ class JSI_EXPORT NativePushNotificationManagerIOSSpecJSI : public ObjCTurboModule {
1654
+ public:
1655
+ NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1656
+ };
1657
+ } // namespace react
1658
+ } // namespace facebook
1659
+
1660
+ @protocol NativeRedBoxSpec <RCTBridgeModule, RCTTurboModule>
1661
+
1662
+ - (void)setExtraData:(NSDictionary *)extraData
1663
+ forIdentifier:(NSString *)forIdentifier;
1664
+ - (void)dismiss;
1665
+
1666
+ @end
1667
+ namespace facebook {
1668
+ namespace react {
1669
+ /**
1670
+ * ObjC++ class for module 'NativeRedBox'
1671
+ */
1672
+ class JSI_EXPORT NativeRedBoxSpecJSI : public ObjCTurboModule {
1673
+ public:
1674
+ NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams &params);
1675
+ };
1676
+ } // namespace react
1677
+ } // namespace facebook
1678
+
1679
+ @protocol NativeSegmentFetcherSpec <RCTBridgeModule, RCTTurboModule>
1680
+
1681
+ - (void)fetchSegment:(double)segmentId
1682
+ options:(NSDictionary *)options
1683
+ callback:(RCTResponseSenderBlock)callback;
1684
+ - (void)getSegment:(double)segmentId
1685
+ options:(NSDictionary *)options
1686
+ callback:(RCTResponseSenderBlock)callback;
1687
+
1688
+ @end
1689
+ namespace facebook {
1690
+ namespace react {
1691
+ /**
1692
+ * ObjC++ class for module 'NativeSegmentFetcher'
1693
+ */
1694
+ class JSI_EXPORT NativeSegmentFetcherSpecJSI : public ObjCTurboModule {
1695
+ public:
1696
+ NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams &params);
1697
+ };
1698
+ } // namespace react
1699
+ } // namespace facebook
1700
+ namespace JS {
1701
+ namespace NativeSettingsManager {
1702
+ struct Constants {
1703
+
1704
+ struct Builder {
1705
+ struct Input {
1706
+ RCTRequired<id<NSObject> > settings;
1707
+ };
1708
+
1709
+ /** Initialize with a set of values */
1710
+ Builder(const Input i);
1711
+ /** Initialize with an existing Constants */
1712
+ Builder(Constants i);
1713
+ /** Builds the object. Generally used only by the infrastructure. */
1714
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1715
+ private:
1716
+ NSDictionary *(^_factory)(void);
1717
+ };
1718
+
1719
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1720
+ NSDictionary *unsafeRawValue() const { return _v; }
1721
+ private:
1722
+ Constants(NSDictionary *const v) : _v(v) {}
1723
+ NSDictionary *_v;
1724
+ };
1725
+ }
1726
+ }
1727
+ @protocol NativeSettingsManagerSpec <RCTBridgeModule, RCTTurboModule>
1728
+
1729
+ - (void)setValues:(NSDictionary *)values;
1730
+ - (void)deleteValues:(NSArray *)values;
1731
+ - (facebook::react::ModuleConstants<JS::NativeSettingsManager::Constants::Builder>)constantsToExport;
1732
+ - (facebook::react::ModuleConstants<JS::NativeSettingsManager::Constants::Builder>)getConstants;
1733
+
1734
+ @end
1735
+ namespace facebook {
1736
+ namespace react {
1737
+ /**
1738
+ * ObjC++ class for module 'NativeSettingsManager'
1739
+ */
1740
+ class JSI_EXPORT NativeSettingsManagerSpecJSI : public ObjCTurboModule {
1741
+ public:
1742
+ NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1743
+ };
1744
+ } // namespace react
1745
+ } // namespace facebook
1746
+ namespace JS {
1747
+ namespace NativeShareModule {
1748
+ struct SpecShareContent {
1749
+ NSString *title() const;
1750
+ NSString *message() const;
1751
+
1752
+ SpecShareContent(NSDictionary *const v) : _v(v) {}
1753
+ private:
1754
+ NSDictionary *_v;
1755
+ };
1756
+ }
1757
+ }
1758
+
1759
+ @interface RCTCxxConvert (NativeShareModule_SpecShareContent)
1760
+ + (RCTManagedPointer *)JS_NativeShareModule_SpecShareContent:(id)json;
1761
+ @end
1762
+ @protocol NativeShareModuleSpec <RCTBridgeModule, RCTTurboModule>
1763
+
1764
+ - (void)share:(JS::NativeShareModule::SpecShareContent &)content
1765
+ dialogTitle:(NSString *)dialogTitle
1766
+ resolve:(RCTPromiseResolveBlock)resolve
1767
+ reject:(RCTPromiseRejectBlock)reject;
1768
+
1769
+ @end
1770
+ namespace facebook {
1771
+ namespace react {
1772
+ /**
1773
+ * ObjC++ class for module 'NativeShareModule'
1774
+ */
1775
+ class JSI_EXPORT NativeShareModuleSpecJSI : public ObjCTurboModule {
1776
+ public:
1777
+ NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams &params);
1778
+ };
1779
+ } // namespace react
1780
+ } // namespace facebook
1781
+
1782
+ @protocol NativeSoundManagerSpec <RCTBridgeModule, RCTTurboModule>
1783
+
1784
+ - (void)playTouchSound;
1785
+
1786
+ @end
1787
+ namespace facebook {
1788
+ namespace react {
1789
+ /**
1790
+ * ObjC++ class for module 'NativeSoundManager'
1791
+ */
1792
+ class JSI_EXPORT NativeSoundManagerSpecJSI : public ObjCTurboModule {
1793
+ public:
1794
+ NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1795
+ };
1796
+ } // namespace react
1797
+ } // namespace facebook
1798
+ namespace JS {
1799
+ namespace NativeSourceCode {
1800
+ struct Constants {
1801
+
1802
+ struct Builder {
1803
+ struct Input {
1804
+ RCTRequired<NSString *> scriptURL;
1805
+ };
1806
+
1807
+ /** Initialize with a set of values */
1808
+ Builder(const Input i);
1809
+ /** Initialize with an existing Constants */
1810
+ Builder(Constants i);
1811
+ /** Builds the object. Generally used only by the infrastructure. */
1812
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1813
+ private:
1814
+ NSDictionary *(^_factory)(void);
1815
+ };
1816
+
1817
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1818
+ NSDictionary *unsafeRawValue() const { return _v; }
1819
+ private:
1820
+ Constants(NSDictionary *const v) : _v(v) {}
1821
+ NSDictionary *_v;
1822
+ };
1823
+ }
1824
+ }
1825
+ @protocol NativeSourceCodeSpec <RCTBridgeModule, RCTTurboModule>
1826
+
1827
+ - (facebook::react::ModuleConstants<JS::NativeSourceCode::Constants::Builder>)constantsToExport;
1828
+ - (facebook::react::ModuleConstants<JS::NativeSourceCode::Constants::Builder>)getConstants;
1829
+
1830
+ @end
1831
+ namespace facebook {
1832
+ namespace react {
1833
+ /**
1834
+ * ObjC++ class for module 'NativeSourceCode'
1835
+ */
1836
+ class JSI_EXPORT NativeSourceCodeSpecJSI : public ObjCTurboModule {
1837
+ public:
1838
+ NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams &params);
1839
+ };
1840
+ } // namespace react
1841
+ } // namespace facebook
1842
+ namespace JS {
1843
+ namespace NativeStatusBarManagerIOS {
1844
+ struct Constants {
1845
+
1846
+ struct Builder {
1847
+ struct Input {
1848
+ RCTRequired<double> HEIGHT;
1849
+ folly::Optional<double> DEFAULT_BACKGROUND_COLOR;
1850
+ };
1851
+
1852
+ /** Initialize with a set of values */
1853
+ Builder(const Input i);
1854
+ /** Initialize with an existing Constants */
1855
+ Builder(Constants i);
1856
+ /** Builds the object. Generally used only by the infrastructure. */
1857
+ NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1858
+ private:
1859
+ NSDictionary *(^_factory)(void);
1860
+ };
1861
+
1862
+ static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1863
+ NSDictionary *unsafeRawValue() const { return _v; }
1864
+ private:
1865
+ Constants(NSDictionary *const v) : _v(v) {}
1866
+ NSDictionary *_v;
1867
+ };
1868
+ }
1869
+ }
1870
+ @protocol NativeStatusBarManagerIOSSpec <RCTBridgeModule, RCTTurboModule>
1871
+
1872
+ - (void)getHeight:(RCTResponseSenderBlock)callback;
1873
+ - (void)setNetworkActivityIndicatorVisible:(BOOL)visible;
1874
+ - (void)addListener:(NSString *)eventType;
1875
+ - (void)removeListeners:(double)count;
1876
+ - (void)setStyle:(NSString * _Nullable)statusBarStyle
1877
+ animated:(BOOL)animated;
1878
+ - (void)setHidden:(BOOL)hidden
1879
+ withAnimation:(NSString *)withAnimation;
1880
+ - (facebook::react::ModuleConstants<JS::NativeStatusBarManagerIOS::Constants::Builder>)constantsToExport;
1881
+ - (facebook::react::ModuleConstants<JS::NativeStatusBarManagerIOS::Constants::Builder>)getConstants;
1882
+
1883
+ @end
1884
+ namespace facebook {
1885
+ namespace react {
1886
+ /**
1887
+ * ObjC++ class for module 'NativeStatusBarManagerIOS'
1888
+ */
1889
+ class JSI_EXPORT NativeStatusBarManagerIOSSpecJSI : public ObjCTurboModule {
1890
+ public:
1891
+ NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1892
+ };
1893
+ } // namespace react
1894
+ } // namespace facebook
1895
+
1896
+ @protocol NativeTimingSpec <RCTBridgeModule, RCTTurboModule>
1897
+
1898
+ - (void)createTimer:(double)callbackID
1899
+ duration:(double)duration
1900
+ jsSchedulingTime:(double)jsSchedulingTime
1901
+ repeats:(BOOL)repeats;
1902
+ - (void)deleteTimer:(double)timerID;
1903
+ - (void)setSendIdleEvents:(BOOL)sendIdleEvents;
1904
+
1905
+ @end
1906
+ namespace facebook {
1907
+ namespace react {
1908
+ /**
1909
+ * ObjC++ class for module 'NativeTiming'
1910
+ */
1911
+ class JSI_EXPORT NativeTimingSpecJSI : public ObjCTurboModule {
1912
+ public:
1913
+ NativeTimingSpecJSI(const ObjCTurboModule::InitParams &params);
1914
+ };
1915
+ } // namespace react
1916
+ } // namespace facebook
1917
+
1918
+ @protocol NativeVibrationSpec <RCTBridgeModule, RCTTurboModule>
1919
+
1920
+ - (void)vibrate:(double)pattern;
1921
+ - (void)vibrateByPattern:(NSArray *)pattern
1922
+ repeat:(double)repeat;
1923
+ - (void)cancel;
1924
+
1925
+ @end
1926
+ namespace facebook {
1927
+ namespace react {
1928
+ /**
1929
+ * ObjC++ class for module 'NativeVibration'
1930
+ */
1931
+ class JSI_EXPORT NativeVibrationSpecJSI : public ObjCTurboModule {
1932
+ public:
1933
+ NativeVibrationSpecJSI(const ObjCTurboModule::InitParams &params);
1934
+ };
1935
+ } // namespace react
1936
+ } // namespace facebook
1937
+ namespace JS {
1938
+ namespace NativeWebSocketModule {
1939
+ struct SpecConnectOptions {
1940
+ id<NSObject> _Nullable headers() const;
1941
+
1942
+ SpecConnectOptions(NSDictionary *const v) : _v(v) {}
1943
+ private:
1944
+ NSDictionary *_v;
1945
+ };
1946
+ }
1947
+ }
1948
+
1949
+ @interface RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions)
1950
+ + (RCTManagedPointer *)JS_NativeWebSocketModule_SpecConnectOptions:(id)json;
1951
+ @end
1952
+ @protocol NativeWebSocketModuleSpec <RCTBridgeModule, RCTTurboModule>
1953
+
1954
+ - (void)connect:(NSString *)url
1955
+ protocols:(NSArray * _Nullable)protocols
1956
+ options:(JS::NativeWebSocketModule::SpecConnectOptions &)options
1957
+ socketID:(double)socketID;
1958
+ - (void)send:(NSString *)message
1959
+ forSocketID:(double)forSocketID;
1960
+ - (void)sendBinary:(NSString *)base64String
1961
+ forSocketID:(double)forSocketID;
1962
+ - (void)ping:(double)socketID;
1963
+ - (void)close:(double)code
1964
+ reason:(NSString *)reason
1965
+ socketID:(double)socketID;
1966
+ - (void)addListener:(NSString *)eventName;
1967
+ - (void)removeListeners:(double)count;
1968
+
1969
+ @end
1970
+ namespace facebook {
1971
+ namespace react {
1972
+ /**
1973
+ * ObjC++ class for module 'NativeWebSocketModule'
1974
+ */
1975
+ class JSI_EXPORT NativeWebSocketModuleSpecJSI : public ObjCTurboModule {
1976
+ public:
1977
+ NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams &params);
1978
+ };
1979
+ } // namespace react
1980
+ } // namespace facebook
1981
+
1982
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const
1983
+ {
1984
+ id const p = _v[@"extraSmall"];
1985
+ return RCTBridgingToOptionalDouble(p);
1986
+ }
1987
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const
1988
+ {
1989
+ id const p = _v[@"small"];
1990
+ return RCTBridgingToOptionalDouble(p);
1991
+ }
1992
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const
1993
+ {
1994
+ id const p = _v[@"medium"];
1995
+ return RCTBridgingToOptionalDouble(p);
1996
+ }
1997
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const
1998
+ {
1999
+ id const p = _v[@"large"];
2000
+ return RCTBridgingToOptionalDouble(p);
2001
+ }
2002
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const
2003
+ {
2004
+ id const p = _v[@"extraLarge"];
2005
+ return RCTBridgingToOptionalDouble(p);
2006
+ }
2007
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const
2008
+ {
2009
+ id const p = _v[@"extraExtraLarge"];
2010
+ return RCTBridgingToOptionalDouble(p);
2011
+ }
2012
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const
2013
+ {
2014
+ id const p = _v[@"extraExtraExtraLarge"];
2015
+ return RCTBridgingToOptionalDouble(p);
2016
+ }
2017
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const
2018
+ {
2019
+ id const p = _v[@"accessibilityMedium"];
2020
+ return RCTBridgingToOptionalDouble(p);
2021
+ }
2022
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const
2023
+ {
2024
+ id const p = _v[@"accessibilityLarge"];
2025
+ return RCTBridgingToOptionalDouble(p);
2026
+ }
2027
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const
2028
+ {
2029
+ id const p = _v[@"accessibilityExtraLarge"];
2030
+ return RCTBridgingToOptionalDouble(p);
2031
+ }
2032
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const
2033
+ {
2034
+ id const p = _v[@"accessibilityExtraExtraLarge"];
2035
+ return RCTBridgingToOptionalDouble(p);
2036
+ }
2037
+ inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const
2038
+ {
2039
+ id const p = _v[@"accessibilityExtraExtraExtraLarge"];
2040
+ return RCTBridgingToOptionalDouble(p);
2041
+ }
2042
+ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const
2043
+ {
2044
+ id const p = _v[@"title"];
2045
+ return RCTBridgingToOptionalString(p);
2046
+ }
2047
+ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::message() const
2048
+ {
2049
+ id const p = _v[@"message"];
2050
+ return RCTBridgingToOptionalString(p);
2051
+ }
2052
+ inline folly::Optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const
2053
+ {
2054
+ id const p = _v[@"options"];
2055
+ return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
2056
+ }
2057
+ inline folly::Optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const
2058
+ {
2059
+ id const p = _v[@"destructiveButtonIndices"];
2060
+ return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
2061
+ }
2062
+ inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const
2063
+ {
2064
+ id const p = _v[@"cancelButtonIndex"];
2065
+ return RCTBridgingToOptionalDouble(p);
2066
+ }
2067
+ inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const
2068
+ {
2069
+ id const p = _v[@"anchor"];
2070
+ return RCTBridgingToOptionalDouble(p);
2071
+ }
2072
+ inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const
2073
+ {
2074
+ id const p = _v[@"tintColor"];
2075
+ return RCTBridgingToOptionalDouble(p);
2076
+ }
2077
+ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::userInterfaceStyle() const
2078
+ {
2079
+ id const p = _v[@"userInterfaceStyle"];
2080
+ return RCTBridgingToOptionalString(p);
2081
+ }
2082
+ inline folly::Optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const
2083
+ {
2084
+ id const p = _v[@"disabledButtonIndices"];
2085
+ return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
2086
+ }
2087
+ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::message() const
2088
+ {
2089
+ id const p = _v[@"message"];
2090
+ return RCTBridgingToOptionalString(p);
2091
+ }
2092
+ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::url() const
2093
+ {
2094
+ id const p = _v[@"url"];
2095
+ return RCTBridgingToOptionalString(p);
2096
+ }
2097
+ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::subject() const
2098
+ {
2099
+ id const p = _v[@"subject"];
2100
+ return RCTBridgingToOptionalString(p);
2101
+ }
2102
+ inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const
2103
+ {
2104
+ id const p = _v[@"anchor"];
2105
+ return RCTBridgingToOptionalDouble(p);
2106
+ }
2107
+ inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const
2108
+ {
2109
+ id const p = _v[@"tintColor"];
2110
+ return RCTBridgingToOptionalDouble(p);
2111
+ }
2112
+ inline folly::Optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const
2113
+ {
2114
+ id const p = _v[@"excludedActivityTypes"];
2115
+ return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
2116
+ }
2117
+ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::userInterfaceStyle() const
2118
+ {
2119
+ id const p = _v[@"userInterfaceStyle"];
2120
+ return RCTBridgingToOptionalString(p);
2121
+ }
2122
+ inline NSString *JS::NativeAlertManager::NativeArgs::title() const
2123
+ {
2124
+ id const p = _v[@"title"];
2125
+ return RCTBridgingToOptionalString(p);
2126
+ }
2127
+ inline NSString *JS::NativeAlertManager::NativeArgs::message() const
2128
+ {
2129
+ id const p = _v[@"message"];
2130
+ return RCTBridgingToOptionalString(p);
2131
+ }
2132
+ inline folly::Optional<facebook::react::LazyVector<id<NSObject> >> JS::NativeAlertManager::NativeArgs::buttons() const
2133
+ {
2134
+ id const p = _v[@"buttons"];
2135
+ return RCTBridgingToOptionalVec(p, ^id<NSObject> (id itemValue_0) { return itemValue_0; });
2136
+ }
2137
+ inline NSString *JS::NativeAlertManager::NativeArgs::type() const
2138
+ {
2139
+ id const p = _v[@"type"];
2140
+ return RCTBridgingToOptionalString(p);
2141
+ }
2142
+ inline NSString *JS::NativeAlertManager::NativeArgs::defaultValue() const
2143
+ {
2144
+ id const p = _v[@"defaultValue"];
2145
+ return RCTBridgingToOptionalString(p);
2146
+ }
2147
+ inline NSString *JS::NativeAlertManager::NativeArgs::cancelButtonKey() const
2148
+ {
2149
+ id const p = _v[@"cancelButtonKey"];
2150
+ return RCTBridgingToOptionalString(p);
2151
+ }
2152
+ inline NSString *JS::NativeAlertManager::NativeArgs::destructiveButtonKey() const
2153
+ {
2154
+ id const p = _v[@"destructiveButtonKey"];
2155
+ return RCTBridgingToOptionalString(p);
2156
+ }
2157
+ inline NSString *JS::NativeAlertManager::NativeArgs::keyboardType() const
2158
+ {
2159
+ id const p = _v[@"keyboardType"];
2160
+ return RCTBridgingToOptionalString(p);
2161
+ }
2162
+ inline folly::Optional<facebook::react::LazyVector<id<NSObject> >> JS::NativeAlertManager::NativeArgs::defaultInputs() const
2163
+ {
2164
+ id const p = _v[@"defaultInputs"];
2165
+ return RCTBridgingToOptionalVec(p, ^id<NSObject> (id itemValue_0) { return itemValue_0; });
2166
+ }
2167
+ inline folly::Optional<bool> JS::NativeAlertManager::NativeArgs::modal() const
2168
+ {
2169
+ id const p = _v[@"modal"];
2170
+ return RCTBridgingToOptionalBool(p);
2171
+ }
2172
+ inline folly::Optional<bool> JS::NativeAlertManager::NativeArgs::critical() const
2173
+ {
2174
+ id const p = _v[@"critical"];
2175
+ return RCTBridgingToOptionalBool(p);
2176
+ }
2177
+ inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedModule::EventMapping::nativeEventPath() const
2178
+ {
2179
+ id const p = _v[@"nativeEventPath"];
2180
+ return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
2181
+ }
2182
+ inline folly::Optional<double> JS::NativeAnimatedModule::EventMapping::animatedValueTag() const
2183
+ {
2184
+ id const p = _v[@"animatedValueTag"];
2185
+ return RCTBridgingToOptionalDouble(p);
2186
+ }
2187
+ inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedTurboModule::EventMapping::nativeEventPath() const
2188
+ {
2189
+ id const p = _v[@"nativeEventPath"];
2190
+ return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
2191
+ }
2192
+ inline folly::Optional<double> JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const
2193
+ {
2194
+ id const p = _v[@"animatedValueTag"];
2195
+ return RCTBridgingToOptionalDouble(p);
2196
+ }
2197
+
2198
+ inline JS::NativeAppState::Constants::Builder::Builder(const Input i) : _factory(^{
2199
+ NSMutableDictionary *d = [NSMutableDictionary new];
2200
+ auto initialAppState = i.initialAppState.get();
2201
+ d[@"initialAppState"] = initialAppState;
2202
+ return d;
2203
+ }) {}
2204
+ inline JS::NativeAppState::Constants::Builder::Builder(Constants i) : _factory(^{
2205
+ return i.unsafeRawValue();
2206
+ }) {}
2207
+
2208
+
2209
+
2210
+ inline JS::NativeBlobModule::Constants::Builder::Builder(const Input i) : _factory(^{
2211
+ NSMutableDictionary *d = [NSMutableDictionary new];
2212
+ auto BLOB_URI_SCHEME = i.BLOB_URI_SCHEME.get();
2213
+ d[@"BLOB_URI_SCHEME"] = BLOB_URI_SCHEME;
2214
+ auto BLOB_URI_HOST = i.BLOB_URI_HOST.get();
2215
+ d[@"BLOB_URI_HOST"] = BLOB_URI_HOST;
2216
+ return d;
2217
+ }) {}
2218
+ inline JS::NativeBlobModule::Constants::Builder::Builder(Constants i) : _factory(^{
2219
+ return i.unsafeRawValue();
2220
+ }) {}
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+
2228
+ inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(const Input i) : _factory(^{
2229
+ NSMutableDictionary *d = [NSMutableDictionary new];
2230
+ auto width = i.width.get();
2231
+ d[@"width"] = @(width);
2232
+ auto height = i.height.get();
2233
+ d[@"height"] = @(height);
2234
+ auto scale = i.scale.get();
2235
+ d[@"scale"] = @(scale);
2236
+ auto fontScale = i.fontScale.get();
2237
+ d[@"fontScale"] = @(fontScale);
2238
+ return d;
2239
+ }) {}
2240
+ inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(DisplayMetrics i) : _factory(^{
2241
+ return i.unsafeRawValue();
2242
+ }) {}
2243
+ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(const Input i) : _factory(^{
2244
+ NSMutableDictionary *d = [NSMutableDictionary new];
2245
+ auto width = i.width.get();
2246
+ d[@"width"] = @(width);
2247
+ auto height = i.height.get();
2248
+ d[@"height"] = @(height);
2249
+ auto scale = i.scale.get();
2250
+ d[@"scale"] = @(scale);
2251
+ auto fontScale = i.fontScale.get();
2252
+ d[@"fontScale"] = @(fontScale);
2253
+ auto densityDpi = i.densityDpi.get();
2254
+ d[@"densityDpi"] = @(densityDpi);
2255
+ return d;
2256
+ }) {}
2257
+ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetricsAndroid i) : _factory(^{
2258
+ return i.unsafeRawValue();
2259
+ }) {}
2260
+ inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{
2261
+ NSMutableDictionary *d = [NSMutableDictionary new];
2262
+ auto window = i.window;
2263
+ d[@"window"] = window.hasValue() ? window.value().buildUnsafeRawValue() : nil;
2264
+ auto screen = i.screen;
2265
+ d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil;
2266
+ auto windowPhysicalPixels = i.windowPhysicalPixels;
2267
+ d[@"windowPhysicalPixels"] = windowPhysicalPixels.hasValue() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
2268
+ auto screenPhysicalPixels = i.screenPhysicalPixels;
2269
+ d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
2270
+ return d;
2271
+ }) {}
2272
+ inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{
2273
+ return i.unsafeRawValue();
2274
+ }) {}
2275
+ inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _factory(^{
2276
+ NSMutableDictionary *d = [NSMutableDictionary new];
2277
+ auto Dimensions = i.Dimensions.get();
2278
+ d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
2279
+ auto isIPhoneX_deprecated = i.isIPhoneX_deprecated;
2280
+ d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.hasValue() ? @((BOOL)isIPhoneX_deprecated.value()) : nil;
2281
+ return d;
2282
+ }) {}
2283
+ inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{
2284
+ return i.unsafeRawValue();
2285
+ }) {}
2286
+ inline folly::Optional<double> JS::NativeExceptionsManager::StackFrame::column() const
2287
+ {
2288
+ id const p = _v[@"column"];
2289
+ return RCTBridgingToOptionalDouble(p);
2290
+ }
2291
+ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const
2292
+ {
2293
+ id const p = _v[@"file"];
2294
+ return RCTBridgingToOptionalString(p);
2295
+ }
2296
+ inline folly::Optional<double> JS::NativeExceptionsManager::StackFrame::lineNumber() const
2297
+ {
2298
+ id const p = _v[@"lineNumber"];
2299
+ return RCTBridgingToOptionalDouble(p);
2300
+ }
2301
+ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const
2302
+ {
2303
+ id const p = _v[@"methodName"];
2304
+ return RCTBridgingToString(p);
2305
+ }
2306
+ inline folly::Optional<bool> JS::NativeExceptionsManager::StackFrame::collapse() const
2307
+ {
2308
+ id const p = _v[@"collapse"];
2309
+ return RCTBridgingToOptionalBool(p);
2310
+ }
2311
+ inline NSString *JS::NativeExceptionsManager::ExceptionData::message() const
2312
+ {
2313
+ id const p = _v[@"message"];
2314
+ return RCTBridgingToString(p);
2315
+ }
2316
+ inline NSString *JS::NativeExceptionsManager::ExceptionData::originalMessage() const
2317
+ {
2318
+ id const p = _v[@"originalMessage"];
2319
+ return RCTBridgingToOptionalString(p);
2320
+ }
2321
+ inline NSString *JS::NativeExceptionsManager::ExceptionData::name() const
2322
+ {
2323
+ id const p = _v[@"name"];
2324
+ return RCTBridgingToOptionalString(p);
2325
+ }
2326
+ inline NSString *JS::NativeExceptionsManager::ExceptionData::componentStack() const
2327
+ {
2328
+ id const p = _v[@"componentStack"];
2329
+ return RCTBridgingToOptionalString(p);
2330
+ }
2331
+ inline facebook::react::LazyVector<JS::NativeExceptionsManager::StackFrame> JS::NativeExceptionsManager::ExceptionData::stack() const
2332
+ {
2333
+ id const p = _v[@"stack"];
2334
+ return RCTBridgingToVec(p, ^JS::NativeExceptionsManager::StackFrame(id itemValue_0) { return JS::NativeExceptionsManager::StackFrame(itemValue_0); });
2335
+ }
2336
+ inline double JS::NativeExceptionsManager::ExceptionData::id_() const
2337
+ {
2338
+ id const p = _v[@"id"];
2339
+ return RCTBridgingToDouble(p);
2340
+ }
2341
+ inline bool JS::NativeExceptionsManager::ExceptionData::isFatal() const
2342
+ {
2343
+ id const p = _v[@"isFatal"];
2344
+ return RCTBridgingToBool(p);
2345
+ }
2346
+ inline id<NSObject> _Nullable JS::NativeExceptionsManager::ExceptionData::extraData() const
2347
+ {
2348
+ id const p = _v[@"extraData"];
2349
+ return p;
2350
+ }
2351
+
2352
+ inline folly::Optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const
2353
+ {
2354
+ id const p = _v[@"debug"];
2355
+ return RCTBridgingToOptionalBool(p);
2356
+ }
2357
+ inline folly::Optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const
2358
+ {
2359
+ id const p = _v[@"reportStackTraces"];
2360
+ return RCTBridgingToOptionalBool(p);
2361
+ }
2362
+
2363
+ inline JS::NativeI18nManager::Constants::Builder::Builder(const Input i) : _factory(^{
2364
+ NSMutableDictionary *d = [NSMutableDictionary new];
2365
+ auto isRTL = i.isRTL.get();
2366
+ d[@"isRTL"] = @(isRTL);
2367
+ auto doLeftAndRightSwapInRTL = i.doLeftAndRightSwapInRTL.get();
2368
+ d[@"doLeftAndRightSwapInRTL"] = @(doLeftAndRightSwapInRTL);
2369
+ auto localeIdentifier = i.localeIdentifier.get();
2370
+ d[@"localeIdentifier"] = localeIdentifier;
2371
+ return d;
2372
+ }) {}
2373
+ inline JS::NativeI18nManager::Constants::Builder::Builder(Constants i) : _factory(^{
2374
+ return i.unsafeRawValue();
2375
+ }) {}
2376
+ inline double JS::NativeImageEditor::OptionsOffset::x() const
2377
+ {
2378
+ id const p = _v[@"x"];
2379
+ return RCTBridgingToDouble(p);
2380
+ }
2381
+ inline double JS::NativeImageEditor::OptionsOffset::y() const
2382
+ {
2383
+ id const p = _v[@"y"];
2384
+ return RCTBridgingToDouble(p);
2385
+ }
2386
+ inline double JS::NativeImageEditor::OptionsSize::width() const
2387
+ {
2388
+ id const p = _v[@"width"];
2389
+ return RCTBridgingToDouble(p);
2390
+ }
2391
+ inline double JS::NativeImageEditor::OptionsSize::height() const
2392
+ {
2393
+ id const p = _v[@"height"];
2394
+ return RCTBridgingToDouble(p);
2395
+ }
2396
+ inline double JS::NativeImageEditor::OptionsDisplaySize::width() const
2397
+ {
2398
+ id const p = _v[@"width"];
2399
+ return RCTBridgingToDouble(p);
2400
+ }
2401
+ inline double JS::NativeImageEditor::OptionsDisplaySize::height() const
2402
+ {
2403
+ id const p = _v[@"height"];
2404
+ return RCTBridgingToDouble(p);
2405
+ }
2406
+ inline JS::NativeImageEditor::OptionsOffset JS::NativeImageEditor::Options::offset() const
2407
+ {
2408
+ id const p = _v[@"offset"];
2409
+ return JS::NativeImageEditor::OptionsOffset(p);
2410
+ }
2411
+ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size() const
2412
+ {
2413
+ id const p = _v[@"size"];
2414
+ return JS::NativeImageEditor::OptionsSize(p);
2415
+ }
2416
+ inline folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> JS::NativeImageEditor::Options::displaySize() const
2417
+ {
2418
+ id const p = _v[@"displaySize"];
2419
+ return (p == nil ? folly::none : folly::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p)));
2420
+ }
2421
+ inline NSString *JS::NativeImageEditor::Options::resizeMode() const
2422
+ {
2423
+ id const p = _v[@"resizeMode"];
2424
+ return RCTBridgingToOptionalString(p);
2425
+ }
2426
+ inline folly::Optional<bool> JS::NativeImageEditor::Options::allowExternalStorage() const
2427
+ {
2428
+ id const p = _v[@"allowExternalStorage"];
2429
+ return RCTBridgingToOptionalBool(p);
2430
+ }
2431
+
2432
+ inline bool JS::NativeImagePickerIOS::SpecOpenCameraDialogConfig::unmirrorFrontFacingCamera() const
2433
+ {
2434
+ id const p = _v[@"unmirrorFrontFacingCamera"];
2435
+ return RCTBridgingToBool(p);
2436
+ }
2437
+ inline bool JS::NativeImagePickerIOS::SpecOpenCameraDialogConfig::videoMode() const
2438
+ {
2439
+ id const p = _v[@"videoMode"];
2440
+ return RCTBridgingToBool(p);
2441
+ }
2442
+ inline bool JS::NativeImagePickerIOS::SpecOpenSelectDialogConfig::showImages() const
2443
+ {
2444
+ id const p = _v[@"showImages"];
2445
+ return RCTBridgingToBool(p);
2446
+ }
2447
+ inline bool JS::NativeImagePickerIOS::SpecOpenSelectDialogConfig::showVideos() const
2448
+ {
2449
+ id const p = _v[@"showVideos"];
2450
+ return RCTBridgingToBool(p);
2451
+ }
2452
+
2453
+
2454
+
2455
+ inline JS::NativeJSDevSupport::Constants::Builder::Builder(const Input i) : _factory(^{
2456
+ NSMutableDictionary *d = [NSMutableDictionary new];
2457
+ auto ERROR_CODE_EXCEPTION = i.ERROR_CODE_EXCEPTION.get();
2458
+ d[@"ERROR_CODE_EXCEPTION"] = @(ERROR_CODE_EXCEPTION);
2459
+ auto ERROR_CODE_VIEW_NOT_FOUND = i.ERROR_CODE_VIEW_NOT_FOUND.get();
2460
+ d[@"ERROR_CODE_VIEW_NOT_FOUND"] = @(ERROR_CODE_VIEW_NOT_FOUND);
2461
+ return d;
2462
+ }) {}
2463
+ inline JS::NativeJSDevSupport::Constants::Builder::Builder(Constants i) : _factory(^{
2464
+ return i.unsafeRawValue();
2465
+ }) {}
2466
+
2467
+
2468
+
2469
+
2470
+ inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::method() const
2471
+ {
2472
+ id const p = _v[@"method"];
2473
+ return RCTBridgingToString(p);
2474
+ }
2475
+ inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::url() const
2476
+ {
2477
+ id const p = _v[@"url"];
2478
+ return RCTBridgingToString(p);
2479
+ }
2480
+ inline id<NSObject> JS::NativeNetworkingIOS::SpecSendRequestQuery::data() const
2481
+ {
2482
+ id const p = _v[@"data"];
2483
+ return p;
2484
+ }
2485
+ inline id<NSObject> JS::NativeNetworkingIOS::SpecSendRequestQuery::headers() const
2486
+ {
2487
+ id const p = _v[@"headers"];
2488
+ return p;
2489
+ }
2490
+ inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::responseType() const
2491
+ {
2492
+ id const p = _v[@"responseType"];
2493
+ return RCTBridgingToString(p);
2494
+ }
2495
+ inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::incrementalUpdates() const
2496
+ {
2497
+ id const p = _v[@"incrementalUpdates"];
2498
+ return RCTBridgingToBool(p);
2499
+ }
2500
+ inline double JS::NativeNetworkingIOS::SpecSendRequestQuery::timeout() const
2501
+ {
2502
+ id const p = _v[@"timeout"];
2503
+ return RCTBridgingToDouble(p);
2504
+ }
2505
+ inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::withCredentials() const
2506
+ {
2507
+ id const p = _v[@"withCredentials"];
2508
+ return RCTBridgingToBool(p);
2509
+ }
2510
+ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(const Input i) : _factory(^{
2511
+ NSMutableDictionary *d = [NSMutableDictionary new];
2512
+ auto major = i.major.get();
2513
+ d[@"major"] = @(major);
2514
+ auto minor = i.minor.get();
2515
+ d[@"minor"] = @(minor);
2516
+ auto patch = i.patch.get();
2517
+ d[@"patch"] = @(patch);
2518
+ auto prerelease = i.prerelease.get();
2519
+ d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil;
2520
+ return d;
2521
+ }) {}
2522
+ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
2523
+ return i.unsafeRawValue();
2524
+ }) {}
2525
+ inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(const Input i) : _factory(^{
2526
+ NSMutableDictionary *d = [NSMutableDictionary new];
2527
+ auto isTesting = i.isTesting.get();
2528
+ d[@"isTesting"] = @(isTesting);
2529
+ auto reactNativeVersion = i.reactNativeVersion.get();
2530
+ d[@"reactNativeVersion"] = reactNativeVersion.buildUnsafeRawValue();
2531
+ auto forceTouchAvailable = i.forceTouchAvailable.get();
2532
+ d[@"forceTouchAvailable"] = @(forceTouchAvailable);
2533
+ auto osVersion = i.osVersion.get();
2534
+ d[@"osVersion"] = osVersion;
2535
+ auto systemName = i.systemName.get();
2536
+ d[@"systemName"] = systemName;
2537
+ auto interfaceIdiom = i.interfaceIdiom.get();
2538
+ d[@"interfaceIdiom"] = interfaceIdiom;
2539
+ return d;
2540
+ }) {}
2541
+ inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(Constants i) : _factory(^{
2542
+ return i.unsafeRawValue();
2543
+ }) {}
2544
+ inline JS::NativePlatformConstantsMacOS::ConstantsReactNativeVersion::Builder::Builder(const Input i) : _factory(^{
2545
+ NSMutableDictionary *d = [NSMutableDictionary new];
2546
+ auto major = i.major.get();
2547
+ d[@"major"] = @(major);
2548
+ auto minor = i.minor.get();
2549
+ d[@"minor"] = @(minor);
2550
+ auto patch = i.patch.get();
2551
+ d[@"patch"] = @(patch);
2552
+ auto prerelease = i.prerelease.get();
2553
+ d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil;
2554
+ return d;
2555
+ }) {}
2556
+ inline JS::NativePlatformConstantsMacOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
2557
+ return i.unsafeRawValue();
2558
+ }) {}
2559
+ inline JS::NativePlatformConstantsMacOS::Constants::Builder::Builder(const Input i) : _factory(^{
2560
+ NSMutableDictionary *d = [NSMutableDictionary new];
2561
+ auto isTesting = i.isTesting.get();
2562
+ d[@"isTesting"] = @(isTesting);
2563
+ auto reactNativeVersion = i.reactNativeVersion.get();
2564
+ d[@"reactNativeVersion"] = reactNativeVersion.buildUnsafeRawValue();
2565
+ auto osVersion = i.osVersion.get();
2566
+ d[@"osVersion"] = osVersion;
2567
+ auto systemName = i.systemName.get();
2568
+ d[@"systemName"] = systemName;
2569
+ return d;
2570
+ }) {}
2571
+ inline JS::NativePlatformConstantsMacOS::Constants::Builder::Builder(Constants i) : _factory(^{
2572
+ return i.unsafeRawValue();
2573
+ }) {}
2574
+ inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::alert() const
2575
+ {
2576
+ id const p = _v[@"alert"];
2577
+ return RCTBridgingToBool(p);
2578
+ }
2579
+ inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::badge() const
2580
+ {
2581
+ id const p = _v[@"badge"];
2582
+ return RCTBridgingToBool(p);
2583
+ }
2584
+ inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::sound() const
2585
+ {
2586
+ id const p = _v[@"sound"];
2587
+ return RCTBridgingToBool(p);
2588
+ }
2589
+ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle() const
2590
+ {
2591
+ id const p = _v[@"alertTitle"];
2592
+ return RCTBridgingToOptionalString(p);
2593
+ }
2594
+ inline folly::Optional<double> JS::NativePushNotificationManagerIOS::Notification::fireDate() const
2595
+ {
2596
+ id const p = _v[@"fireDate"];
2597
+ return RCTBridgingToOptionalDouble(p);
2598
+ }
2599
+ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertBody() const
2600
+ {
2601
+ id const p = _v[@"alertBody"];
2602
+ return RCTBridgingToOptionalString(p);
2603
+ }
2604
+ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertAction() const
2605
+ {
2606
+ id const p = _v[@"alertAction"];
2607
+ return RCTBridgingToOptionalString(p);
2608
+ }
2609
+ inline id<NSObject> _Nullable JS::NativePushNotificationManagerIOS::Notification::userInfo() const
2610
+ {
2611
+ id const p = _v[@"userInfo"];
2612
+ return p;
2613
+ }
2614
+ inline NSString *JS::NativePushNotificationManagerIOS::Notification::category() const
2615
+ {
2616
+ id const p = _v[@"category"];
2617
+ return RCTBridgingToOptionalString(p);
2618
+ }
2619
+ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInterval() const
2620
+ {
2621
+ id const p = _v[@"repeatInterval"];
2622
+ return RCTBridgingToOptionalString(p);
2623
+ }
2624
+ inline folly::Optional<double> JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const
2625
+ {
2626
+ id const p = _v[@"applicationIconBadgeNumber"];
2627
+ return RCTBridgingToOptionalDouble(p);
2628
+ }
2629
+ inline folly::Optional<bool> JS::NativePushNotificationManagerIOS::Notification::isSilent() const
2630
+ {
2631
+ id const p = _v[@"isSilent"];
2632
+ return RCTBridgingToOptionalBool(p);
2633
+ }
2634
+
2635
+
2636
+ inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{
2637
+ NSMutableDictionary *d = [NSMutableDictionary new];
2638
+ auto settings = i.settings.get();
2639
+ d[@"settings"] = settings;
2640
+ return d;
2641
+ }) {}
2642
+ inline JS::NativeSettingsManager::Constants::Builder::Builder(Constants i) : _factory(^{
2643
+ return i.unsafeRawValue();
2644
+ }) {}
2645
+ inline NSString *JS::NativeShareModule::SpecShareContent::title() const
2646
+ {
2647
+ id const p = _v[@"title"];
2648
+ return RCTBridgingToOptionalString(p);
2649
+ }
2650
+ inline NSString *JS::NativeShareModule::SpecShareContent::message() const
2651
+ {
2652
+ id const p = _v[@"message"];
2653
+ return RCTBridgingToOptionalString(p);
2654
+ }
2655
+
2656
+ inline JS::NativeSourceCode::Constants::Builder::Builder(const Input i) : _factory(^{
2657
+ NSMutableDictionary *d = [NSMutableDictionary new];
2658
+ auto scriptURL = i.scriptURL.get();
2659
+ d[@"scriptURL"] = scriptURL;
2660
+ return d;
2661
+ }) {}
2662
+ inline JS::NativeSourceCode::Constants::Builder::Builder(Constants i) : _factory(^{
2663
+ return i.unsafeRawValue();
2664
+ }) {}
2665
+ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) : _factory(^{
2666
+ NSMutableDictionary *d = [NSMutableDictionary new];
2667
+ auto HEIGHT = i.HEIGHT.get();
2668
+ d[@"HEIGHT"] = @(HEIGHT);
2669
+ auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR;
2670
+ d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.hasValue() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil;
2671
+ return d;
2672
+ }) {}
2673
+ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{
2674
+ return i.unsafeRawValue();
2675
+ }) {}
2676
+
2677
+
2678
+ inline id<NSObject> _Nullable JS::NativeWebSocketModule::SpecConnectOptions::headers() const
2679
+ {
2680
+ id const p = _v[@"headers"];
2681
+ return p;
2682
+ }