react-native 0.67.0-rc.1 → 0.67.0-rc.5

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