Compare commits

..

No commits in common. "main" and "v3.15.08" have entirely different histories.

1450 changed files with 7112 additions and 27385 deletions

View File

@ -4,6 +4,22 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libBVLinearGradient.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libBVLinearGradient.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libBVLinearGradient.a</string> <string>libBVLinearGradient.a</string>
@ -23,22 +39,6 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libBVLinearGradient.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libBVLinearGradient.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -4,22 +4,6 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libDynamicFonts.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libDynamicFonts.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libDynamicFonts.a</string> <string>libDynamicFonts.a</string>
@ -39,6 +23,22 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libDynamicFonts.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libDynamicFonts.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -6,13 +6,13 @@
<array> <array>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libReact-bridging.a</string> <string>libFBReactNativeSpec.a</string>
<key>HeadersPath</key> <key>HeadersPath</key>
<string>Headers</string> <string>Headers</string>
<key>LibraryIdentifier</key> <key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string> <string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key> <key>LibraryPath</key>
<string>libReact-bridging.a</string> <string>libFBReactNativeSpec.a</string>
<key>SupportedArchitectures</key> <key>SupportedArchitectures</key>
<array> <array>
<string>arm64</string> <string>arm64</string>
@ -25,13 +25,13 @@
</dict> </dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libReact-bridging.a</string> <string>libFBReactNativeSpec.a</string>
<key>HeadersPath</key> <key>HeadersPath</key>
<string>Headers</string> <string>Headers</string>
<key>LibraryIdentifier</key> <key>LibraryIdentifier</key>
<string>ios-arm64</string> <string>ios-arm64</string>
<key>LibraryPath</key> <key>LibraryPath</key>
<string>libReact-bridging.a</string> <string>libFBReactNativeSpec.a</string>
<key>SupportedArchitectures</key> <key>SupportedArchitectures</key>
<array> <array>
<string>arm64</string> <string>arm64</string>

View File

@ -1,8 +1,8 @@
/** /**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * Copyright (c) Facebook, Inc. and its affiliates.
* *
* Do not edit this file as changes may cause incorrect behavior and will be lost * This source code is licensed under the MIT license found in the
* once the code is regenerated. * LICENSE file in the root directory of this source tree.
* *
* @generated by codegen project: GenerateModuleObjCpp * @generated by codegen project: GenerateModuleObjCpp
* *
@ -22,7 +22,7 @@
#import <React/RCTCxxConvert.h> #import <React/RCTCxxConvert.h>
#import <React/RCTManagedPointer.h> #import <React/RCTManagedPointer.h>
#import <ReactCommon/RCTTurboModule.h> #import <ReactCommon/RCTTurboModule.h>
#import <optional> #import <folly/Optional.h>
#import <vector> #import <vector>
@ -30,7 +30,6 @@
- (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess; - (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess;
- (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess; - (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess;
- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess;
- (void)setAccessibilityFocus:(double)reactTag; - (void)setAccessibilityFocus:(double)reactTag;
- (void)announceForAccessibility:(NSString *)announcement; - (void)announceForAccessibility:(NSString *)announcement;
- (void)getRecommendedTimeoutMillis:(double)mSec - (void)getRecommendedTimeoutMillis:(double)mSec
@ -51,18 +50,18 @@ namespace facebook {
namespace JS { namespace JS {
namespace NativeAccessibilityManager { namespace NativeAccessibilityManager {
struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers {
std::optional<double> extraSmall() const; folly::Optional<double> extraSmall() const;
std::optional<double> small() const; folly::Optional<double> small() const;
std::optional<double> medium() const; folly::Optional<double> medium() const;
std::optional<double> large() const; folly::Optional<double> large() const;
std::optional<double> extraLarge() const; folly::Optional<double> extraLarge() const;
std::optional<double> extraExtraLarge() const; folly::Optional<double> extraExtraLarge() const;
std::optional<double> extraExtraExtraLarge() const; folly::Optional<double> extraExtraExtraLarge() const;
std::optional<double> accessibilityMedium() const; folly::Optional<double> accessibilityMedium() const;
std::optional<double> accessibilityLarge() const; folly::Optional<double> accessibilityLarge() const;
std::optional<double> accessibilityExtraLarge() const; folly::Optional<double> accessibilityExtraLarge() const;
std::optional<double> accessibilityExtraExtraLarge() const; folly::Optional<double> accessibilityExtraExtraLarge() const;
std::optional<double> accessibilityExtraExtraExtraLarge() const; folly::Optional<double> accessibilityExtraExtraExtraLarge() const;
SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {} SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {}
private: private:
@ -74,21 +73,6 @@ namespace JS {
@interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) @interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers)
+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json; + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json;
@end @end
namespace JS {
namespace NativeAccessibilityManager {
struct SpecAnnounceForAccessibilityWithOptionsOptions {
std::optional<bool> queue() const;
SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {}
private:
NSDictionary *_v;
};
}
}
@interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions)
+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json;
@end
@protocol NativeAccessibilityManagerSpec <RCTBridgeModule, RCTTurboModule> @protocol NativeAccessibilityManagerSpec <RCTBridgeModule, RCTTurboModule>
- (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess
@ -99,8 +83,6 @@ namespace JS {
onError:(RCTResponseSenderBlock)onError; onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess
onError:(RCTResponseSenderBlock)onError; onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess
onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess
onError:(RCTResponseSenderBlock)onError; onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
@ -108,8 +90,6 @@ namespace JS {
- (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers; - (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers;
- (void)setAccessibilityFocus:(double)reactTag; - (void)setAccessibilityFocus:(double)reactTag;
- (void)announceForAccessibility:(NSString *)announcement; - (void)announceForAccessibility:(NSString *)announcement;
- (void)announceForAccessibilityWithOptions:(NSString *)announcement
options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options;
@end @end
namespace facebook { namespace facebook {
@ -128,14 +108,14 @@ namespace JS {
struct SpecShowActionSheetWithOptionsOptions { struct SpecShowActionSheetWithOptionsOptions {
NSString *title() const; NSString *title() const;
NSString *message() const; NSString *message() const;
std::optional<facebook::react::LazyVector<NSString *>> options() const; folly::Optional<facebook::react::LazyVector<NSString *>> options() const;
std::optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const; folly::Optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
std::optional<double> cancelButtonIndex() const; folly::Optional<double> cancelButtonIndex() const;
std::optional<double> anchor() const; folly::Optional<double> anchor() const;
std::optional<double> tintColor() const; folly::Optional<double> tintColor() const;
std::optional<double> cancelButtonTintColor() const; folly::Optional<double> cancelButtonTintColor() const;
NSString *userInterfaceStyle() const; NSString *userInterfaceStyle() const;
std::optional<facebook::react::LazyVector<double>> disabledButtonIndices() const; folly::Optional<facebook::react::LazyVector<double>> disabledButtonIndices() const;
SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
private: private:
@ -153,10 +133,10 @@ namespace JS {
NSString *message() const; NSString *message() const;
NSString *url() const; NSString *url() const;
NSString *subject() const; NSString *subject() const;
std::optional<double> anchor() const; folly::Optional<double> anchor() const;
std::optional<double> tintColor() const; folly::Optional<double> tintColor() const;
std::optional<double> cancelButtonTintColor() const; folly::Optional<double> cancelButtonTintColor() const;
std::optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const; folly::Optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
NSString *userInterfaceStyle() const; NSString *userInterfaceStyle() const;
SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
@ -176,7 +156,6 @@ namespace JS {
- (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options - (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options
failureCallback:(RCTResponseSenderBlock)failureCallback failureCallback:(RCTResponseSenderBlock)failureCallback
successCallback:(RCTResponseSenderBlock)successCallback; successCallback:(RCTResponseSenderBlock)successCallback;
- (void)dismissActionSheet;
@end @end
namespace facebook { namespace facebook {
@ -195,13 +174,12 @@ namespace JS {
struct Args { struct Args {
NSString *title() const; NSString *title() const;
NSString *message() const; NSString *message() const;
std::optional<facebook::react::LazyVector<id<NSObject> >> buttons() const; folly::Optional<facebook::react::LazyVector<id<NSObject> >> buttons() const;
NSString *type() const; NSString *type() const;
NSString *defaultValue() const; NSString *defaultValue() const;
NSString *cancelButtonKey() const; NSString *cancelButtonKey() const;
NSString *destructiveButtonKey() const; NSString *destructiveButtonKey() const;
NSString *keyboardType() const; NSString *keyboardType() const;
NSString *userInterfaceStyle() const;
Args(NSDictionary *const v) : _v(v) {} Args(NSDictionary *const v) : _v(v) {}
private: private:
@ -234,7 +212,7 @@ namespace JS {
namespace NativeAnimatedModule { namespace NativeAnimatedModule {
struct EventMapping { struct EventMapping {
facebook::react::LazyVector<NSString *> nativeEventPath() const; facebook::react::LazyVector<NSString *> nativeEventPath() const;
std::optional<double> animatedValueTag() const; folly::Optional<double> animatedValueTag() const;
EventMapping(NSDictionary *const v) : _v(v) {} EventMapping(NSDictionary *const v) : _v(v) {}
private: private:
@ -252,8 +230,6 @@ namespace JS {
- (void)finishOperationBatch; - (void)finishOperationBatch;
- (void)createAnimatedNode:(double)tag - (void)createAnimatedNode:(double)tag
config:(NSDictionary *)config; config:(NSDictionary *)config;
- (void)updateAnimatedNodeConfig:(double)tag
config:(NSDictionary *)config;
- (void)getValue:(double)tag - (void)getValue:(double)tag
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
- (void)startListeningToAnimatedNodeValue:(double)tag; - (void)startListeningToAnimatedNodeValue:(double)tag;
@ -287,7 +263,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
animatedNodeTag:(double)animatedNodeTag; animatedNodeTag:(double)animatedNodeTag;
- (void)addListener:(NSString *)eventName; - (void)addListener:(NSString *)eventName;
- (void)removeListeners:(double)count; - (void)removeListeners:(double)count;
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
@end @end
namespace facebook { namespace facebook {
@ -305,7 +280,7 @@ namespace JS {
namespace NativeAnimatedTurboModule { namespace NativeAnimatedTurboModule {
struct EventMapping { struct EventMapping {
facebook::react::LazyVector<NSString *> nativeEventPath() const; facebook::react::LazyVector<NSString *> nativeEventPath() const;
std::optional<double> animatedValueTag() const; folly::Optional<double> animatedValueTag() const;
EventMapping(NSDictionary *const v) : _v(v) {} EventMapping(NSDictionary *const v) : _v(v) {}
private: private:
@ -323,8 +298,6 @@ namespace JS {
- (void)finishOperationBatch; - (void)finishOperationBatch;
- (void)createAnimatedNode:(double)tag - (void)createAnimatedNode:(double)tag
config:(NSDictionary *)config; config:(NSDictionary *)config;
- (void)updateAnimatedNodeConfig:(double)tag
config:(NSDictionary *)config;
- (void)getValue:(double)tag - (void)getValue:(double)tag
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
- (void)startListeningToAnimatedNodeValue:(double)tag; - (void)startListeningToAnimatedNodeValue:(double)tag;
@ -358,7 +331,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
animatedNodeTag:(double)animatedNodeTag; animatedNodeTag:(double)animatedNodeTag;
- (void)addListener:(NSString *)eventName; - (void)addListener:(NSString *)eventName;
- (void)removeListeners:(double)count; - (void)removeListeners:(double)count;
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
@end @end
namespace facebook { namespace facebook {
@ -772,10 +744,10 @@ namespace JS {
struct Builder { struct Builder {
struct Input { struct Input {
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window; folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen; folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels; folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels; folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -803,7 +775,7 @@ namespace JS {
struct Builder { struct Builder {
struct Input { struct Input {
RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions; RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions;
std::optional<bool> isIPhoneX_deprecated; folly::Optional<bool> isIPhoneX_deprecated;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -844,11 +816,11 @@ namespace facebook {
namespace JS { namespace JS {
namespace NativeExceptionsManager { namespace NativeExceptionsManager {
struct StackFrame { struct StackFrame {
std::optional<double> column() const; folly::Optional<double> column() const;
NSString *file() const; NSString *file() const;
std::optional<double> lineNumber() const; folly::Optional<double> lineNumber() const;
NSString *methodName() const; NSString *methodName() const;
std::optional<bool> collapse() const; folly::Optional<bool> collapse() const;
StackFrame(NSDictionary *const v) : _v(v) {} StackFrame(NSDictionary *const v) : _v(v) {}
private: private:
@ -934,8 +906,8 @@ namespace facebook {
namespace JS { namespace JS {
namespace NativeFrameRateLogger { namespace NativeFrameRateLogger {
struct SpecSetGlobalOptionsOptions { struct SpecSetGlobalOptionsOptions {
std::optional<bool> debug() const; folly::Optional<bool> debug() const;
std::optional<bool> reportStackTraces() const; folly::Optional<bool> reportStackTraces() const;
SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {} SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {}
private: private:
@ -1088,9 +1060,9 @@ namespace JS {
struct Options { struct Options {
JS::NativeImageEditor::OptionsOffset offset() const; JS::NativeImageEditor::OptionsOffset offset() const;
JS::NativeImageEditor::OptionsSize size() const; JS::NativeImageEditor::OptionsSize size() const;
std::optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const; folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
NSString *resizeMode() const; NSString *resizeMode() const;
std::optional<bool> allowExternalStorage() const; folly::Optional<bool> allowExternalStorage() const;
Options(NSDictionary *const v) : _v(v) {} Options(NSDictionary *const v) : _v(v) {}
private: private:
@ -1456,7 +1428,7 @@ namespace JS {
RCTRequired<double> major; RCTRequired<double> major;
RCTRequired<double> minor; RCTRequired<double> minor;
RCTRequired<double> patch; RCTRequired<double> patch;
RCTRequired<std::optional<double>> prerelease; RCTRequired<folly::Optional<double>> prerelease;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -1547,15 +1519,14 @@ namespace JS {
namespace NativePushNotificationManagerIOS { namespace NativePushNotificationManagerIOS {
struct Notification { struct Notification {
NSString *alertTitle() const; NSString *alertTitle() const;
std::optional<double> fireDate() const; folly::Optional<double> fireDate() const;
NSString *alertBody() const; NSString *alertBody() const;
NSString *alertAction() const; NSString *alertAction() const;
id<NSObject> _Nullable userInfo() const; id<NSObject> _Nullable userInfo() const;
NSString *category() const; NSString *category() const;
NSString *repeatInterval() const; NSString *repeatInterval() const;
std::optional<double> applicationIconBadgeNumber() const; folly::Optional<double> applicationIconBadgeNumber() const;
std::optional<bool> isSilent() const; folly::Optional<bool> isSilent() const;
NSString *soundName() const;
Notification(NSDictionary *const v) : _v(v) {} Notification(NSDictionary *const v) : _v(v) {}
private: private:
@ -1794,7 +1765,7 @@ namespace JS {
struct Builder { struct Builder {
struct Input { struct Input {
RCTRequired<double> HEIGHT; RCTRequired<double> HEIGHT;
std::optional<double> DEFAULT_BACKGROUND_COLOR; folly::Optional<double> DEFAULT_BACKGROUND_COLOR;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -1927,71 +1898,66 @@ namespace facebook {
} // namespace react } // namespace react
} // namespace facebook } // namespace facebook
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const
{ {
id const p = _v[@"extraSmall"]; id const p = _v[@"extraSmall"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const
{ {
id const p = _v[@"small"]; id const p = _v[@"small"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const
{ {
id const p = _v[@"medium"]; id const p = _v[@"medium"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const
{ {
id const p = _v[@"large"]; id const p = _v[@"large"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const
{ {
id const p = _v[@"extraLarge"]; id const p = _v[@"extraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const
{ {
id const p = _v[@"extraExtraLarge"]; id const p = _v[@"extraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const
{ {
id const p = _v[@"extraExtraExtraLarge"]; id const p = _v[@"extraExtraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const
{ {
id const p = _v[@"accessibilityMedium"]; id const p = _v[@"accessibilityMedium"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const
{ {
id const p = _v[@"accessibilityLarge"]; id const p = _v[@"accessibilityLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const
{ {
id const p = _v[@"accessibilityExtraLarge"]; id const p = _v[@"accessibilityExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const
{ {
id const p = _v[@"accessibilityExtraExtraLarge"]; id const p = _v[@"accessibilityExtraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const
{ {
id const p = _v[@"accessibilityExtraExtraExtraLarge"]; id const p = _v[@"accessibilityExtraExtraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<bool> JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const
{
id const p = _v[@"queue"];
return RCTBridgingToOptionalBool(p);
}
inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const
{ {
id const p = _v[@"title"]; id const p = _v[@"title"];
@ -2002,32 +1968,32 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
id const p = _v[@"message"]; id const p = _v[@"message"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const inline folly::Optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const
{ {
id const p = _v[@"options"]; id const p = _v[@"options"];
return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
} }
inline std::optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const inline folly::Optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const
{ {
id const p = _v[@"destructiveButtonIndices"]; id const p = _v[@"destructiveButtonIndices"];
return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const
{ {
id const p = _v[@"cancelButtonIndex"]; id const p = _v[@"cancelButtonIndex"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const
{ {
id const p = _v[@"anchor"]; id const p = _v[@"anchor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const
{ {
id const p = _v[@"tintColor"]; id const p = _v[@"tintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const
{ {
id const p = _v[@"cancelButtonTintColor"]; id const p = _v[@"cancelButtonTintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2037,7 +2003,7 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
id const p = _v[@"userInterfaceStyle"]; id const p = _v[@"userInterfaceStyle"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const inline folly::Optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const
{ {
id const p = _v[@"disabledButtonIndices"]; id const p = _v[@"disabledButtonIndices"];
return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
@ -2057,22 +2023,22 @@ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptio
id const p = _v[@"subject"]; id const p = _v[@"subject"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const
{ {
id const p = _v[@"anchor"]; id const p = _v[@"anchor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const
{ {
id const p = _v[@"tintColor"]; id const p = _v[@"tintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const
{ {
id const p = _v[@"cancelButtonTintColor"]; id const p = _v[@"cancelButtonTintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const inline folly::Optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const
{ {
id const p = _v[@"excludedActivityTypes"]; id const p = _v[@"excludedActivityTypes"];
return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
@ -2092,7 +2058,7 @@ inline NSString *JS::NativeAlertManager::Args::message() const
id const p = _v[@"message"]; id const p = _v[@"message"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<facebook::react::LazyVector<id<NSObject> >> JS::NativeAlertManager::Args::buttons() const inline folly::Optional<facebook::react::LazyVector<id<NSObject> >> JS::NativeAlertManager::Args::buttons() const
{ {
id const p = _v[@"buttons"]; id const p = _v[@"buttons"];
return RCTBridgingToOptionalVec(p, ^id<NSObject> (id itemValue_0) { return itemValue_0; }); return RCTBridgingToOptionalVec(p, ^id<NSObject> (id itemValue_0) { return itemValue_0; });
@ -2122,17 +2088,12 @@ inline NSString *JS::NativeAlertManager::Args::keyboardType() const
id const p = _v[@"keyboardType"]; id const p = _v[@"keyboardType"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const
{
id const p = _v[@"userInterfaceStyle"];
return RCTBridgingToOptionalString(p);
}
inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedModule::EventMapping::nativeEventPath() const inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedModule::EventMapping::nativeEventPath() const
{ {
id const p = _v[@"nativeEventPath"]; id const p = _v[@"nativeEventPath"];
return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
} }
inline std::optional<double> JS::NativeAnimatedModule::EventMapping::animatedValueTag() const inline folly::Optional<double> JS::NativeAnimatedModule::EventMapping::animatedValueTag() const
{ {
id const p = _v[@"animatedValueTag"]; id const p = _v[@"animatedValueTag"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2142,7 +2103,7 @@ inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedTurboModule::Ev
id const p = _v[@"nativeEventPath"]; id const p = _v[@"nativeEventPath"];
return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
} }
inline std::optional<double> JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const inline folly::Optional<double> JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const
{ {
id const p = _v[@"animatedValueTag"]; id const p = _v[@"animatedValueTag"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2213,13 +2174,13 @@ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetr
inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{ inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{
NSMutableDictionary *d = [NSMutableDictionary new]; NSMutableDictionary *d = [NSMutableDictionary new];
auto window = i.window; auto window = i.window;
d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil; d[@"window"] = window.hasValue() ? window.value().buildUnsafeRawValue() : nil;
auto screen = i.screen; auto screen = i.screen;
d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil; d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil;
auto windowPhysicalPixels = i.windowPhysicalPixels; auto windowPhysicalPixels = i.windowPhysicalPixels;
d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; d[@"windowPhysicalPixels"] = windowPhysicalPixels.hasValue() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
auto screenPhysicalPixels = i.screenPhysicalPixels; auto screenPhysicalPixels = i.screenPhysicalPixels;
d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
return d; return d;
}) {} }) {}
inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{ inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{
@ -2230,13 +2191,13 @@ inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _facto
auto Dimensions = i.Dimensions.get(); auto Dimensions = i.Dimensions.get();
d[@"Dimensions"] = Dimensions.buildUnsafeRawValue(); d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
auto isIPhoneX_deprecated = i.isIPhoneX_deprecated; auto isIPhoneX_deprecated = i.isIPhoneX_deprecated;
d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.hasValue() ? @((BOOL)isIPhoneX_deprecated.value()) : nil;
return d; return d;
}) {} }) {}
inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{ inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{
return i.unsafeRawValue(); return i.unsafeRawValue();
}) {} }) {}
inline std::optional<double> JS::NativeExceptionsManager::StackFrame::column() const inline folly::Optional<double> JS::NativeExceptionsManager::StackFrame::column() const
{ {
id const p = _v[@"column"]; id const p = _v[@"column"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2246,7 +2207,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const
id const p = _v[@"file"]; id const p = _v[@"file"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativeExceptionsManager::StackFrame::lineNumber() const inline folly::Optional<double> JS::NativeExceptionsManager::StackFrame::lineNumber() const
{ {
id const p = _v[@"lineNumber"]; id const p = _v[@"lineNumber"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2256,7 +2217,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const
id const p = _v[@"methodName"]; id const p = _v[@"methodName"];
return RCTBridgingToString(p); return RCTBridgingToString(p);
} }
inline std::optional<bool> JS::NativeExceptionsManager::StackFrame::collapse() const inline folly::Optional<bool> JS::NativeExceptionsManager::StackFrame::collapse() const
{ {
id const p = _v[@"collapse"]; id const p = _v[@"collapse"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
@ -2302,12 +2263,12 @@ inline id<NSObject> _Nullable JS::NativeExceptionsManager::ExceptionData::extraD
return p; return p;
} }
inline std::optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const inline folly::Optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const
{ {
id const p = _v[@"debug"]; id const p = _v[@"debug"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
} }
inline std::optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const inline folly::Optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const
{ {
id const p = _v[@"reportStackTraces"]; id const p = _v[@"reportStackTraces"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
@ -2366,17 +2327,17 @@ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size()
id const p = _v[@"size"]; id const p = _v[@"size"];
return JS::NativeImageEditor::OptionsSize(p); return JS::NativeImageEditor::OptionsSize(p);
} }
inline std::optional<JS::NativeImageEditor::OptionsDisplaySize> JS::NativeImageEditor::Options::displaySize() const inline folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> JS::NativeImageEditor::Options::displaySize() const
{ {
id const p = _v[@"displaySize"]; id const p = _v[@"displaySize"];
return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); return (p == nil ? folly::none : folly::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p)));
} }
inline NSString *JS::NativeImageEditor::Options::resizeMode() const inline NSString *JS::NativeImageEditor::Options::resizeMode() const
{ {
id const p = _v[@"resizeMode"]; id const p = _v[@"resizeMode"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<bool> JS::NativeImageEditor::Options::allowExternalStorage() const inline folly::Optional<bool> JS::NativeImageEditor::Options::allowExternalStorage() const
{ {
id const p = _v[@"allowExternalStorage"]; id const p = _v[@"allowExternalStorage"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
@ -2469,7 +2430,7 @@ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Bui
auto patch = i.patch.get(); auto patch = i.patch.get();
d[@"patch"] = @(patch); d[@"patch"] = @(patch);
auto prerelease = i.prerelease.get(); auto prerelease = i.prerelease.get();
d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil; d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil;
return d; return d;
}) {} }) {}
inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
@ -2514,7 +2475,7 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle(
id const p = _v[@"alertTitle"]; id const p = _v[@"alertTitle"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::fireDate() const inline folly::Optional<double> JS::NativePushNotificationManagerIOS::Notification::fireDate() const
{ {
id const p = _v[@"fireDate"]; id const p = _v[@"fireDate"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2544,21 +2505,16 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInter
id const p = _v[@"repeatInterval"]; id const p = _v[@"repeatInterval"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const inline folly::Optional<double> JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const
{ {
id const p = _v[@"applicationIconBadgeNumber"]; id const p = _v[@"applicationIconBadgeNumber"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<bool> JS::NativePushNotificationManagerIOS::Notification::isSilent() const inline folly::Optional<bool> JS::NativePushNotificationManagerIOS::Notification::isSilent() const
{ {
id const p = _v[@"isSilent"]; id const p = _v[@"isSilent"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
} }
inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const
{
id const p = _v[@"soundName"];
return RCTBridgingToOptionalString(p);
}
inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{
@ -2595,7 +2551,7 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i)
auto HEIGHT = i.HEIGHT.get(); auto HEIGHT = i.HEIGHT.get();
d[@"HEIGHT"] = @(HEIGHT); d[@"HEIGHT"] = @(HEIGHT);
auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR; auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR;
d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.hasValue() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil;
return d; return d;
}) {} }) {}
inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{

View File

@ -1,8 +1,8 @@
/** /**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * Copyright (c) Facebook, Inc. and its affiliates.
* *
* Do not edit this file as changes may cause incorrect behavior and will be lost * This source code is licensed under the MIT license found in the
* once the code is regenerated. * LICENSE file in the root directory of this source tree.
* *
* @generated by codegen project: GenerateModuleObjCpp * @generated by codegen project: GenerateModuleObjCpp
* *
@ -22,7 +22,7 @@
#import <React/RCTCxxConvert.h> #import <React/RCTCxxConvert.h>
#import <React/RCTManagedPointer.h> #import <React/RCTManagedPointer.h>
#import <ReactCommon/RCTTurboModule.h> #import <ReactCommon/RCTTurboModule.h>
#import <optional> #import <folly/Optional.h>
#import <vector> #import <vector>
@ -30,7 +30,6 @@
- (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess; - (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess;
- (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess; - (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess;
- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess;
- (void)setAccessibilityFocus:(double)reactTag; - (void)setAccessibilityFocus:(double)reactTag;
- (void)announceForAccessibility:(NSString *)announcement; - (void)announceForAccessibility:(NSString *)announcement;
- (void)getRecommendedTimeoutMillis:(double)mSec - (void)getRecommendedTimeoutMillis:(double)mSec
@ -51,18 +50,18 @@ namespace facebook {
namespace JS { namespace JS {
namespace NativeAccessibilityManager { namespace NativeAccessibilityManager {
struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers {
std::optional<double> extraSmall() const; folly::Optional<double> extraSmall() const;
std::optional<double> small() const; folly::Optional<double> small() const;
std::optional<double> medium() const; folly::Optional<double> medium() const;
std::optional<double> large() const; folly::Optional<double> large() const;
std::optional<double> extraLarge() const; folly::Optional<double> extraLarge() const;
std::optional<double> extraExtraLarge() const; folly::Optional<double> extraExtraLarge() const;
std::optional<double> extraExtraExtraLarge() const; folly::Optional<double> extraExtraExtraLarge() const;
std::optional<double> accessibilityMedium() const; folly::Optional<double> accessibilityMedium() const;
std::optional<double> accessibilityLarge() const; folly::Optional<double> accessibilityLarge() const;
std::optional<double> accessibilityExtraLarge() const; folly::Optional<double> accessibilityExtraLarge() const;
std::optional<double> accessibilityExtraExtraLarge() const; folly::Optional<double> accessibilityExtraExtraLarge() const;
std::optional<double> accessibilityExtraExtraExtraLarge() const; folly::Optional<double> accessibilityExtraExtraExtraLarge() const;
SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {} SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {}
private: private:
@ -74,21 +73,6 @@ namespace JS {
@interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) @interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers)
+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json; + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json;
@end @end
namespace JS {
namespace NativeAccessibilityManager {
struct SpecAnnounceForAccessibilityWithOptionsOptions {
std::optional<bool> queue() const;
SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {}
private:
NSDictionary *_v;
};
}
}
@interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions)
+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json;
@end
@protocol NativeAccessibilityManagerSpec <RCTBridgeModule, RCTTurboModule> @protocol NativeAccessibilityManagerSpec <RCTBridgeModule, RCTTurboModule>
- (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess
@ -99,8 +83,6 @@ namespace JS {
onError:(RCTResponseSenderBlock)onError; onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess
onError:(RCTResponseSenderBlock)onError; onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess
onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess
onError:(RCTResponseSenderBlock)onError; onError:(RCTResponseSenderBlock)onError;
- (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess - (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
@ -108,8 +90,6 @@ namespace JS {
- (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers; - (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers;
- (void)setAccessibilityFocus:(double)reactTag; - (void)setAccessibilityFocus:(double)reactTag;
- (void)announceForAccessibility:(NSString *)announcement; - (void)announceForAccessibility:(NSString *)announcement;
- (void)announceForAccessibilityWithOptions:(NSString *)announcement
options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options;
@end @end
namespace facebook { namespace facebook {
@ -128,14 +108,14 @@ namespace JS {
struct SpecShowActionSheetWithOptionsOptions { struct SpecShowActionSheetWithOptionsOptions {
NSString *title() const; NSString *title() const;
NSString *message() const; NSString *message() const;
std::optional<facebook::react::LazyVector<NSString *>> options() const; folly::Optional<facebook::react::LazyVector<NSString *>> options() const;
std::optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const; folly::Optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
std::optional<double> cancelButtonIndex() const; folly::Optional<double> cancelButtonIndex() const;
std::optional<double> anchor() const; folly::Optional<double> anchor() const;
std::optional<double> tintColor() const; folly::Optional<double> tintColor() const;
std::optional<double> cancelButtonTintColor() const; folly::Optional<double> cancelButtonTintColor() const;
NSString *userInterfaceStyle() const; NSString *userInterfaceStyle() const;
std::optional<facebook::react::LazyVector<double>> disabledButtonIndices() const; folly::Optional<facebook::react::LazyVector<double>> disabledButtonIndices() const;
SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
private: private:
@ -153,10 +133,10 @@ namespace JS {
NSString *message() const; NSString *message() const;
NSString *url() const; NSString *url() const;
NSString *subject() const; NSString *subject() const;
std::optional<double> anchor() const; folly::Optional<double> anchor() const;
std::optional<double> tintColor() const; folly::Optional<double> tintColor() const;
std::optional<double> cancelButtonTintColor() const; folly::Optional<double> cancelButtonTintColor() const;
std::optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const; folly::Optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
NSString *userInterfaceStyle() const; NSString *userInterfaceStyle() const;
SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
@ -176,7 +156,6 @@ namespace JS {
- (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options - (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options
failureCallback:(RCTResponseSenderBlock)failureCallback failureCallback:(RCTResponseSenderBlock)failureCallback
successCallback:(RCTResponseSenderBlock)successCallback; successCallback:(RCTResponseSenderBlock)successCallback;
- (void)dismissActionSheet;
@end @end
namespace facebook { namespace facebook {
@ -195,13 +174,12 @@ namespace JS {
struct Args { struct Args {
NSString *title() const; NSString *title() const;
NSString *message() const; NSString *message() const;
std::optional<facebook::react::LazyVector<id<NSObject> >> buttons() const; folly::Optional<facebook::react::LazyVector<id<NSObject> >> buttons() const;
NSString *type() const; NSString *type() const;
NSString *defaultValue() const; NSString *defaultValue() const;
NSString *cancelButtonKey() const; NSString *cancelButtonKey() const;
NSString *destructiveButtonKey() const; NSString *destructiveButtonKey() const;
NSString *keyboardType() const; NSString *keyboardType() const;
NSString *userInterfaceStyle() const;
Args(NSDictionary *const v) : _v(v) {} Args(NSDictionary *const v) : _v(v) {}
private: private:
@ -234,7 +212,7 @@ namespace JS {
namespace NativeAnimatedModule { namespace NativeAnimatedModule {
struct EventMapping { struct EventMapping {
facebook::react::LazyVector<NSString *> nativeEventPath() const; facebook::react::LazyVector<NSString *> nativeEventPath() const;
std::optional<double> animatedValueTag() const; folly::Optional<double> animatedValueTag() const;
EventMapping(NSDictionary *const v) : _v(v) {} EventMapping(NSDictionary *const v) : _v(v) {}
private: private:
@ -252,8 +230,6 @@ namespace JS {
- (void)finishOperationBatch; - (void)finishOperationBatch;
- (void)createAnimatedNode:(double)tag - (void)createAnimatedNode:(double)tag
config:(NSDictionary *)config; config:(NSDictionary *)config;
- (void)updateAnimatedNodeConfig:(double)tag
config:(NSDictionary *)config;
- (void)getValue:(double)tag - (void)getValue:(double)tag
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
- (void)startListeningToAnimatedNodeValue:(double)tag; - (void)startListeningToAnimatedNodeValue:(double)tag;
@ -287,7 +263,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
animatedNodeTag:(double)animatedNodeTag; animatedNodeTag:(double)animatedNodeTag;
- (void)addListener:(NSString *)eventName; - (void)addListener:(NSString *)eventName;
- (void)removeListeners:(double)count; - (void)removeListeners:(double)count;
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
@end @end
namespace facebook { namespace facebook {
@ -305,7 +280,7 @@ namespace JS {
namespace NativeAnimatedTurboModule { namespace NativeAnimatedTurboModule {
struct EventMapping { struct EventMapping {
facebook::react::LazyVector<NSString *> nativeEventPath() const; facebook::react::LazyVector<NSString *> nativeEventPath() const;
std::optional<double> animatedValueTag() const; folly::Optional<double> animatedValueTag() const;
EventMapping(NSDictionary *const v) : _v(v) {} EventMapping(NSDictionary *const v) : _v(v) {}
private: private:
@ -323,8 +298,6 @@ namespace JS {
- (void)finishOperationBatch; - (void)finishOperationBatch;
- (void)createAnimatedNode:(double)tag - (void)createAnimatedNode:(double)tag
config:(NSDictionary *)config; config:(NSDictionary *)config;
- (void)updateAnimatedNodeConfig:(double)tag
config:(NSDictionary *)config;
- (void)getValue:(double)tag - (void)getValue:(double)tag
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
- (void)startListeningToAnimatedNodeValue:(double)tag; - (void)startListeningToAnimatedNodeValue:(double)tag;
@ -358,7 +331,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
animatedNodeTag:(double)animatedNodeTag; animatedNodeTag:(double)animatedNodeTag;
- (void)addListener:(NSString *)eventName; - (void)addListener:(NSString *)eventName;
- (void)removeListeners:(double)count; - (void)removeListeners:(double)count;
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
@end @end
namespace facebook { namespace facebook {
@ -772,10 +744,10 @@ namespace JS {
struct Builder { struct Builder {
struct Input { struct Input {
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window; folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen; folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels; folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels; folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -803,7 +775,7 @@ namespace JS {
struct Builder { struct Builder {
struct Input { struct Input {
RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions; RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions;
std::optional<bool> isIPhoneX_deprecated; folly::Optional<bool> isIPhoneX_deprecated;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -844,11 +816,11 @@ namespace facebook {
namespace JS { namespace JS {
namespace NativeExceptionsManager { namespace NativeExceptionsManager {
struct StackFrame { struct StackFrame {
std::optional<double> column() const; folly::Optional<double> column() const;
NSString *file() const; NSString *file() const;
std::optional<double> lineNumber() const; folly::Optional<double> lineNumber() const;
NSString *methodName() const; NSString *methodName() const;
std::optional<bool> collapse() const; folly::Optional<bool> collapse() const;
StackFrame(NSDictionary *const v) : _v(v) {} StackFrame(NSDictionary *const v) : _v(v) {}
private: private:
@ -934,8 +906,8 @@ namespace facebook {
namespace JS { namespace JS {
namespace NativeFrameRateLogger { namespace NativeFrameRateLogger {
struct SpecSetGlobalOptionsOptions { struct SpecSetGlobalOptionsOptions {
std::optional<bool> debug() const; folly::Optional<bool> debug() const;
std::optional<bool> reportStackTraces() const; folly::Optional<bool> reportStackTraces() const;
SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {} SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {}
private: private:
@ -1088,9 +1060,9 @@ namespace JS {
struct Options { struct Options {
JS::NativeImageEditor::OptionsOffset offset() const; JS::NativeImageEditor::OptionsOffset offset() const;
JS::NativeImageEditor::OptionsSize size() const; JS::NativeImageEditor::OptionsSize size() const;
std::optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const; folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
NSString *resizeMode() const; NSString *resizeMode() const;
std::optional<bool> allowExternalStorage() const; folly::Optional<bool> allowExternalStorage() const;
Options(NSDictionary *const v) : _v(v) {} Options(NSDictionary *const v) : _v(v) {}
private: private:
@ -1456,7 +1428,7 @@ namespace JS {
RCTRequired<double> major; RCTRequired<double> major;
RCTRequired<double> minor; RCTRequired<double> minor;
RCTRequired<double> patch; RCTRequired<double> patch;
RCTRequired<std::optional<double>> prerelease; RCTRequired<folly::Optional<double>> prerelease;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -1547,15 +1519,14 @@ namespace JS {
namespace NativePushNotificationManagerIOS { namespace NativePushNotificationManagerIOS {
struct Notification { struct Notification {
NSString *alertTitle() const; NSString *alertTitle() const;
std::optional<double> fireDate() const; folly::Optional<double> fireDate() const;
NSString *alertBody() const; NSString *alertBody() const;
NSString *alertAction() const; NSString *alertAction() const;
id<NSObject> _Nullable userInfo() const; id<NSObject> _Nullable userInfo() const;
NSString *category() const; NSString *category() const;
NSString *repeatInterval() const; NSString *repeatInterval() const;
std::optional<double> applicationIconBadgeNumber() const; folly::Optional<double> applicationIconBadgeNumber() const;
std::optional<bool> isSilent() const; folly::Optional<bool> isSilent() const;
NSString *soundName() const;
Notification(NSDictionary *const v) : _v(v) {} Notification(NSDictionary *const v) : _v(v) {}
private: private:
@ -1794,7 +1765,7 @@ namespace JS {
struct Builder { struct Builder {
struct Input { struct Input {
RCTRequired<double> HEIGHT; RCTRequired<double> HEIGHT;
std::optional<double> DEFAULT_BACKGROUND_COLOR; folly::Optional<double> DEFAULT_BACKGROUND_COLOR;
}; };
/** Initialize with a set of values */ /** Initialize with a set of values */
@ -1927,71 +1898,66 @@ namespace facebook {
} // namespace react } // namespace react
} // namespace facebook } // namespace facebook
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const
{ {
id const p = _v[@"extraSmall"]; id const p = _v[@"extraSmall"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const
{ {
id const p = _v[@"small"]; id const p = _v[@"small"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const
{ {
id const p = _v[@"medium"]; id const p = _v[@"medium"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const
{ {
id const p = _v[@"large"]; id const p = _v[@"large"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const
{ {
id const p = _v[@"extraLarge"]; id const p = _v[@"extraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const
{ {
id const p = _v[@"extraExtraLarge"]; id const p = _v[@"extraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const
{ {
id const p = _v[@"extraExtraExtraLarge"]; id const p = _v[@"extraExtraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const
{ {
id const p = _v[@"accessibilityMedium"]; id const p = _v[@"accessibilityMedium"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const
{ {
id const p = _v[@"accessibilityLarge"]; id const p = _v[@"accessibilityLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const
{ {
id const p = _v[@"accessibilityExtraLarge"]; id const p = _v[@"accessibilityExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const
{ {
id const p = _v[@"accessibilityExtraExtraLarge"]; id const p = _v[@"accessibilityExtraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const inline folly::Optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const
{ {
id const p = _v[@"accessibilityExtraExtraExtraLarge"]; id const p = _v[@"accessibilityExtraExtraExtraLarge"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<bool> JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const
{
id const p = _v[@"queue"];
return RCTBridgingToOptionalBool(p);
}
inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const
{ {
id const p = _v[@"title"]; id const p = _v[@"title"];
@ -2002,32 +1968,32 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
id const p = _v[@"message"]; id const p = _v[@"message"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const inline folly::Optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const
{ {
id const p = _v[@"options"]; id const p = _v[@"options"];
return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
} }
inline std::optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const inline folly::Optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const
{ {
id const p = _v[@"destructiveButtonIndices"]; id const p = _v[@"destructiveButtonIndices"];
return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const
{ {
id const p = _v[@"cancelButtonIndex"]; id const p = _v[@"cancelButtonIndex"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const
{ {
id const p = _v[@"anchor"]; id const p = _v[@"anchor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const
{ {
id const p = _v[@"tintColor"]; id const p = _v[@"tintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const
{ {
id const p = _v[@"cancelButtonTintColor"]; id const p = _v[@"cancelButtonTintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2037,7 +2003,7 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
id const p = _v[@"userInterfaceStyle"]; id const p = _v[@"userInterfaceStyle"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const inline folly::Optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const
{ {
id const p = _v[@"disabledButtonIndices"]; id const p = _v[@"disabledButtonIndices"];
return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
@ -2057,22 +2023,22 @@ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptio
id const p = _v[@"subject"]; id const p = _v[@"subject"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const
{ {
id const p = _v[@"anchor"]; id const p = _v[@"anchor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const
{ {
id const p = _v[@"tintColor"]; id const p = _v[@"tintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const inline folly::Optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const
{ {
id const p = _v[@"cancelButtonTintColor"]; id const p = _v[@"cancelButtonTintColor"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const inline folly::Optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const
{ {
id const p = _v[@"excludedActivityTypes"]; id const p = _v[@"excludedActivityTypes"];
return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
@ -2092,7 +2058,7 @@ inline NSString *JS::NativeAlertManager::Args::message() const
id const p = _v[@"message"]; id const p = _v[@"message"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<facebook::react::LazyVector<id<NSObject> >> JS::NativeAlertManager::Args::buttons() const inline folly::Optional<facebook::react::LazyVector<id<NSObject> >> JS::NativeAlertManager::Args::buttons() const
{ {
id const p = _v[@"buttons"]; id const p = _v[@"buttons"];
return RCTBridgingToOptionalVec(p, ^id<NSObject> (id itemValue_0) { return itemValue_0; }); return RCTBridgingToOptionalVec(p, ^id<NSObject> (id itemValue_0) { return itemValue_0; });
@ -2122,17 +2088,12 @@ inline NSString *JS::NativeAlertManager::Args::keyboardType() const
id const p = _v[@"keyboardType"]; id const p = _v[@"keyboardType"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const
{
id const p = _v[@"userInterfaceStyle"];
return RCTBridgingToOptionalString(p);
}
inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedModule::EventMapping::nativeEventPath() const inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedModule::EventMapping::nativeEventPath() const
{ {
id const p = _v[@"nativeEventPath"]; id const p = _v[@"nativeEventPath"];
return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
} }
inline std::optional<double> JS::NativeAnimatedModule::EventMapping::animatedValueTag() const inline folly::Optional<double> JS::NativeAnimatedModule::EventMapping::animatedValueTag() const
{ {
id const p = _v[@"animatedValueTag"]; id const p = _v[@"animatedValueTag"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2142,7 +2103,7 @@ inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedTurboModule::Ev
id const p = _v[@"nativeEventPath"]; id const p = _v[@"nativeEventPath"];
return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
} }
inline std::optional<double> JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const inline folly::Optional<double> JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const
{ {
id const p = _v[@"animatedValueTag"]; id const p = _v[@"animatedValueTag"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2213,13 +2174,13 @@ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetr
inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{ inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{
NSMutableDictionary *d = [NSMutableDictionary new]; NSMutableDictionary *d = [NSMutableDictionary new];
auto window = i.window; auto window = i.window;
d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil; d[@"window"] = window.hasValue() ? window.value().buildUnsafeRawValue() : nil;
auto screen = i.screen; auto screen = i.screen;
d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil; d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil;
auto windowPhysicalPixels = i.windowPhysicalPixels; auto windowPhysicalPixels = i.windowPhysicalPixels;
d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; d[@"windowPhysicalPixels"] = windowPhysicalPixels.hasValue() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
auto screenPhysicalPixels = i.screenPhysicalPixels; auto screenPhysicalPixels = i.screenPhysicalPixels;
d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
return d; return d;
}) {} }) {}
inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{ inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{
@ -2230,13 +2191,13 @@ inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _facto
auto Dimensions = i.Dimensions.get(); auto Dimensions = i.Dimensions.get();
d[@"Dimensions"] = Dimensions.buildUnsafeRawValue(); d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
auto isIPhoneX_deprecated = i.isIPhoneX_deprecated; auto isIPhoneX_deprecated = i.isIPhoneX_deprecated;
d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.hasValue() ? @((BOOL)isIPhoneX_deprecated.value()) : nil;
return d; return d;
}) {} }) {}
inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{ inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{
return i.unsafeRawValue(); return i.unsafeRawValue();
}) {} }) {}
inline std::optional<double> JS::NativeExceptionsManager::StackFrame::column() const inline folly::Optional<double> JS::NativeExceptionsManager::StackFrame::column() const
{ {
id const p = _v[@"column"]; id const p = _v[@"column"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2246,7 +2207,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const
id const p = _v[@"file"]; id const p = _v[@"file"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativeExceptionsManager::StackFrame::lineNumber() const inline folly::Optional<double> JS::NativeExceptionsManager::StackFrame::lineNumber() const
{ {
id const p = _v[@"lineNumber"]; id const p = _v[@"lineNumber"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2256,7 +2217,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const
id const p = _v[@"methodName"]; id const p = _v[@"methodName"];
return RCTBridgingToString(p); return RCTBridgingToString(p);
} }
inline std::optional<bool> JS::NativeExceptionsManager::StackFrame::collapse() const inline folly::Optional<bool> JS::NativeExceptionsManager::StackFrame::collapse() const
{ {
id const p = _v[@"collapse"]; id const p = _v[@"collapse"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
@ -2302,12 +2263,12 @@ inline id<NSObject> _Nullable JS::NativeExceptionsManager::ExceptionData::extraD
return p; return p;
} }
inline std::optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const inline folly::Optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const
{ {
id const p = _v[@"debug"]; id const p = _v[@"debug"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
} }
inline std::optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const inline folly::Optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const
{ {
id const p = _v[@"reportStackTraces"]; id const p = _v[@"reportStackTraces"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
@ -2366,17 +2327,17 @@ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size()
id const p = _v[@"size"]; id const p = _v[@"size"];
return JS::NativeImageEditor::OptionsSize(p); return JS::NativeImageEditor::OptionsSize(p);
} }
inline std::optional<JS::NativeImageEditor::OptionsDisplaySize> JS::NativeImageEditor::Options::displaySize() const inline folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> JS::NativeImageEditor::Options::displaySize() const
{ {
id const p = _v[@"displaySize"]; id const p = _v[@"displaySize"];
return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); return (p == nil ? folly::none : folly::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p)));
} }
inline NSString *JS::NativeImageEditor::Options::resizeMode() const inline NSString *JS::NativeImageEditor::Options::resizeMode() const
{ {
id const p = _v[@"resizeMode"]; id const p = _v[@"resizeMode"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<bool> JS::NativeImageEditor::Options::allowExternalStorage() const inline folly::Optional<bool> JS::NativeImageEditor::Options::allowExternalStorage() const
{ {
id const p = _v[@"allowExternalStorage"]; id const p = _v[@"allowExternalStorage"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
@ -2469,7 +2430,7 @@ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Bui
auto patch = i.patch.get(); auto patch = i.patch.get();
d[@"patch"] = @(patch); d[@"patch"] = @(patch);
auto prerelease = i.prerelease.get(); auto prerelease = i.prerelease.get();
d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil; d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil;
return d; return d;
}) {} }) {}
inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
@ -2514,7 +2475,7 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle(
id const p = _v[@"alertTitle"]; id const p = _v[@"alertTitle"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::fireDate() const inline folly::Optional<double> JS::NativePushNotificationManagerIOS::Notification::fireDate() const
{ {
id const p = _v[@"fireDate"]; id const p = _v[@"fireDate"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
@ -2544,21 +2505,16 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInter
id const p = _v[@"repeatInterval"]; id const p = _v[@"repeatInterval"];
return RCTBridgingToOptionalString(p); return RCTBridgingToOptionalString(p);
} }
inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const inline folly::Optional<double> JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const
{ {
id const p = _v[@"applicationIconBadgeNumber"]; id const p = _v[@"applicationIconBadgeNumber"];
return RCTBridgingToOptionalDouble(p); return RCTBridgingToOptionalDouble(p);
} }
inline std::optional<bool> JS::NativePushNotificationManagerIOS::Notification::isSilent() const inline folly::Optional<bool> JS::NativePushNotificationManagerIOS::Notification::isSilent() const
{ {
id const p = _v[@"isSilent"]; id const p = _v[@"isSilent"];
return RCTBridgingToOptionalBool(p); return RCTBridgingToOptionalBool(p);
} }
inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const
{
id const p = _v[@"soundName"];
return RCTBridgingToOptionalString(p);
}
inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{
@ -2595,7 +2551,7 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i)
auto HEIGHT = i.HEIGHT.get(); auto HEIGHT = i.HEIGHT.get();
d[@"HEIGHT"] = @(HEIGHT); d[@"HEIGHT"] = @(HEIGHT);
auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR; auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR;
d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.hasValue() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil;
return d; return d;
}) {} }) {}
inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{

View File

@ -4,22 +4,6 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libNewsmemory.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libNewsmemory.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libNewsmemory.a</string> <string>libNewsmemory.a</string>
@ -39,6 +23,22 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libNewsmemory.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libNewsmemory.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -1,18 +0,0 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "RCTTypeSafety/RCTConvertHelpers.h"
#import "RCTTypeSafety/RCTTypedModuleConstants.h"
FOUNDATION_EXPORT double RCTTypeSafetyVersionNumber;
FOUNDATION_EXPORT const unsigned char RCTTypeSafetyVersionString[];

View File

@ -1,6 +0,0 @@
module RCTTypeSafety {
umbrella header "RCTTypeSafety-umbrella.h"
export *
module * { export * }
}

View File

@ -1,17 +1,16 @@
/* /*
* Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#import <optional>
#import <vector> #import <vector>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <FBLazyVector/FBLazyVector.h> #import <FBLazyVector/FBLazyVector.h>
#import <folly/Optional.h>
namespace facebook { namespace facebook {
namespace react { namespace react {
@ -36,22 +35,22 @@ NSArray *RCTConvertVecToArray(const ContainerT &vec)
} }
template<typename ContainerT> template<typename ContainerT>
NSArray *RCTConvertOptionalVecToArray(const std::optional<ContainerT> &vec, id (^convertor)(typename ContainerT::value_type element)) NSArray *RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec, id (^convertor)(typename ContainerT::value_type element))
{ {
return vec.has_value() ? RCTConvertVecToArray(vec.value(), convertor) : nil; return vec.hasValue() ? RCTConvertVecToArray(vec.value(), convertor) : nil;
} }
template<typename ContainerT> template<typename ContainerT>
NSArray *RCTConvertOptionalVecToArray(const std::optional<ContainerT> &vec) NSArray *RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec)
{ {
return vec.has_value() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil; return vec.hasValue() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil;
} }
bool RCTBridgingToBool(id value); bool RCTBridgingToBool(id value);
std::optional<bool> RCTBridgingToOptionalBool(id value); folly::Optional<bool> RCTBridgingToOptionalBool(id value);
NSString *RCTBridgingToString(id value); NSString *RCTBridgingToString(id value);
NSString *RCTBridgingToOptionalString(id value); NSString *RCTBridgingToOptionalString(id value);
std::optional<double> RCTBridgingToOptionalDouble(id value); folly::Optional<double> RCTBridgingToOptionalDouble(id value);
double RCTBridgingToDouble(id value); double RCTBridgingToDouble(id value);
NSArray *RCTBridgingToArray(id value); NSArray *RCTBridgingToArray(id value);
@ -65,10 +64,10 @@ facebook::react::LazyVector<T> RCTBridgingToVec(id value, T (^ctor)(id element))
} }
template<typename T> template<typename T>
std::optional<facebook::react::LazyVector<T>> RCTBridgingToOptionalVec(id value, T (^ctor)(id element)) folly::Optional<facebook::react::LazyVector<T>> RCTBridgingToOptionalVec(id value, T (^ctor)(id element))
{ {
if (value == nil || value == (id)kCFNull) { if (value == nil || value == (id)kCFNull) {
return std::nullopt; return folly::none;
} else { } else {
return RCTBridgingToVec(value, ctor); return RCTBridgingToVec(value, ctor);
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.

View File

@ -1,18 +0,0 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "RCTTypeSafety/RCTConvertHelpers.h"
#import "RCTTypeSafety/RCTTypedModuleConstants.h"
FOUNDATION_EXPORT double RCTTypeSafetyVersionNumber;
FOUNDATION_EXPORT const unsigned char RCTTypeSafetyVersionString[];

View File

@ -1,6 +0,0 @@
module RCTTypeSafety {
umbrella header "RCTTypeSafety-umbrella.h"
export *
module * { export * }
}

View File

@ -1,17 +1,16 @@
/* /*
* Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#import <optional>
#import <vector> #import <vector>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <FBLazyVector/FBLazyVector.h> #import <FBLazyVector/FBLazyVector.h>
#import <folly/Optional.h>
namespace facebook { namespace facebook {
namespace react { namespace react {
@ -36,22 +35,22 @@ NSArray *RCTConvertVecToArray(const ContainerT &vec)
} }
template<typename ContainerT> template<typename ContainerT>
NSArray *RCTConvertOptionalVecToArray(const std::optional<ContainerT> &vec, id (^convertor)(typename ContainerT::value_type element)) NSArray *RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec, id (^convertor)(typename ContainerT::value_type element))
{ {
return vec.has_value() ? RCTConvertVecToArray(vec.value(), convertor) : nil; return vec.hasValue() ? RCTConvertVecToArray(vec.value(), convertor) : nil;
} }
template<typename ContainerT> template<typename ContainerT>
NSArray *RCTConvertOptionalVecToArray(const std::optional<ContainerT> &vec) NSArray *RCTConvertOptionalVecToArray(const folly::Optional<ContainerT> &vec)
{ {
return vec.has_value() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil; return vec.hasValue() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil;
} }
bool RCTBridgingToBool(id value); bool RCTBridgingToBool(id value);
std::optional<bool> RCTBridgingToOptionalBool(id value); folly::Optional<bool> RCTBridgingToOptionalBool(id value);
NSString *RCTBridgingToString(id value); NSString *RCTBridgingToString(id value);
NSString *RCTBridgingToOptionalString(id value); NSString *RCTBridgingToOptionalString(id value);
std::optional<double> RCTBridgingToOptionalDouble(id value); folly::Optional<double> RCTBridgingToOptionalDouble(id value);
double RCTBridgingToDouble(id value); double RCTBridgingToDouble(id value);
NSArray *RCTBridgingToArray(id value); NSArray *RCTBridgingToArray(id value);
@ -65,10 +64,10 @@ facebook::react::LazyVector<T> RCTBridgingToVec(id value, T (^ctor)(id element))
} }
template<typename T> template<typename T>
std::optional<facebook::react::LazyVector<T>> RCTBridgingToOptionalVec(id value, T (^ctor)(id element)) folly::Optional<facebook::react::LazyVector<T>> RCTBridgingToOptionalVec(id value, T (^ctor)(id element))
{ {
if (value == nil || value == (id)kCFNull) { if (value == nil || value == (id)kCFNull) {
return std::nullopt; return folly::none;
} else { } else {
return RCTBridgingToVec(value, ctor); return RCTBridgingToVec(value, ctor);
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.

View File

@ -4,6 +4,22 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libRNCAsyncStorage.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNCAsyncStorage.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libRNCAsyncStorage.a</string> <string>libRNCAsyncStorage.a</string>
@ -23,22 +39,6 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libRNCAsyncStorage.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNCAsyncStorage.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -6,13 +6,29 @@
<array> <array>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libreact-native-color-matrix-image-filters.a</string> <string>libRNColorMatrixImageFilters.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNColorMatrixImageFilters.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libRNColorMatrixImageFilters.a</string>
<key>HeadersPath</key> <key>HeadersPath</key>
<string>Headers</string> <string>Headers</string>
<key>LibraryIdentifier</key> <key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string> <string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key> <key>LibraryPath</key>
<string>libreact-native-color-matrix-image-filters.a</string> <string>libRNColorMatrixImageFilters.a</string>
<key>SupportedArchitectures</key> <key>SupportedArchitectures</key>
<array> <array>
<string>arm64</string> <string>arm64</string>
@ -23,22 +39,6 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libreact-native-color-matrix-image-filters.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libreact-native-color-matrix-image-filters.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -0,0 +1,8 @@
#import <React/UIView+React.h>
#import <React/RCTView.h>
@interface CMIFColorMatrixImageFilter : RCTView
@property (nonatomic, strong) NSArray<NSNumber *> *matrix;
@end

View File

@ -0,0 +1,8 @@
#import <React/UIView+React.h>
#import <React/RCTView.h>
@interface CMIFColorMatrixImageFilter : RCTView
@property (nonatomic, strong) NSArray<NSNumber *> *matrix;
@end

View File

@ -4,22 +4,6 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libRNDefaultPreference.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNDefaultPreference.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libRNDefaultPreference.a</string> <string>libRNDefaultPreference.a</string>
@ -39,6 +23,22 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libRNDefaultPreference.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNDefaultPreference.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -4,6 +4,22 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libRNFastImage.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNFastImage.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libRNFastImage.a</string> <string>libRNFastImage.a</string>
@ -23,22 +39,6 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libRNFastImage.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNFastImage.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -4,22 +4,6 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libRNGestureHandler.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNGestureHandler.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libRNGestureHandler.a</string> <string>libRNGestureHandler.a</string>
@ -39,6 +23,22 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libRNGestureHandler.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNGestureHandler.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>libRNOpenAppSettings.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNOpenAppSettings.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libRNOpenAppSettings.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libRNOpenAppSettings.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>

View File

@ -0,0 +1,7 @@
#import <React/RCTBridgeModule.h>
#import <UIKit/UIKit.h>
@interface RNOpenAppSettings : NSObject <RCTBridgeModule>
@end

View File

@ -0,0 +1,7 @@
#import <React/RCTBridgeModule.h>
#import <UIKit/UIKit.h>
@interface RNOpenAppSettings : NSObject <RCTBridgeModule>
@end

View File

@ -4,6 +4,22 @@
<dict> <dict>
<key>AvailableLibraries</key> <key>AvailableLibraries</key>
<array> <array>
<dict>
<key>BinaryPath</key>
<string>libRNReanimated.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNReanimated.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict> <dict>
<key>BinaryPath</key> <key>BinaryPath</key>
<string>libRNReanimated.a</string> <string>libRNReanimated.a</string>
@ -23,22 +39,6 @@
<key>SupportedPlatformVariant</key> <key>SupportedPlatformVariant</key>
<string>simulator</string> <string>simulator</string>
</dict> </dict>
<dict>
<key>BinaryPath</key>
<string>libRNReanimated.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libRNReanimated.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array> </array>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>XFWK</string> <string>XFWK</string>

View File

@ -1,41 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <unordered_set>
#include "PlatformDepMethodsHolder.h"
#include "RuntimeManager.h"
namespace reanimated {
using namespace facebook;
enum SensorType {
ACCELEROMETER = 1,
GYROSCOPE = 2,
GRAVITY = 3,
MAGNETIC_FIELD = 4,
ROTATION_VECTOR = 5,
};
class AnimatedSensorModule {
std::unordered_set<int> sensorsIds_;
RegisterSensorFunction platformRegisterSensorFunction_;
UnregisterSensorFunction platformUnregisterSensorFunction_;
RuntimeManager *runtimeManager_;
public:
AnimatedSensorModule(
const PlatformDepMethodsHolder &platformDepMethodsHolder,
RuntimeManager *runtimeManager);
~AnimatedSensorModule();
jsi::Value registerSensor(
jsi::Runtime &rt,
const jsi::Value &sensorType,
const jsi::Value &interval,
const jsi::Value &sensorDataContainer);
void unregisterSensor(const jsi::Value &sensorId);
};
} // namespace reanimated

View File

@ -1,32 +0,0 @@
#pragma once
#include <memory>
#include <string>
#include "Scheduler.h"
namespace reanimated {
struct ErrorWrapper {
std::string message = "";
bool handled = true;
};
class ErrorHandler {
public:
bool raise() {
if (getError()->handled) {
return false;
}
this->getScheduler()->scheduleOnUI([this]() mutable { this->raiseSpec(); });
return true;
}
virtual std::shared_ptr<Scheduler> getScheduler() = 0;
virtual std::shared_ptr<ErrorWrapper> getError() = 0;
virtual void setError(std::string message) = 0;
virtual ~ErrorHandler() {}
protected:
virtual void raiseSpec() = 0;
};
} // namespace reanimated

View File

@ -1,37 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <map>
#include <memory>
#include <mutex>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace facebook;
namespace reanimated {
class WorkletEventHandler;
class EventHandlerRegistry {
std::map<
std::string,
std::unordered_map<unsigned long, std::shared_ptr<WorkletEventHandler>>>
eventMappings;
std::map<unsigned long, std::shared_ptr<WorkletEventHandler>> eventHandlers;
std::mutex instanceMutex;
public:
void registerEventHandler(std::shared_ptr<WorkletEventHandler> eventHandler);
void unregisterEventHandler(unsigned long id);
void processEvent(
jsi::Runtime &rt,
std::string eventName,
std::string eventPayload);
bool isAnyHandlerWaitingForEvent(std::string eventName);
};
} // namespace reanimated

View File

@ -1,19 +0,0 @@
#pragma once
#include <string>
namespace reanimated {
class FeaturesConfig {
public:
static inline bool isLayoutAnimationEnabled() {
return _isLayoutAnimationEnabled;
}
static inline void setLayoutAnimationEnabled(bool isLayoutAnimationEnabled) {
_isLayoutAnimationEnabled = isLayoutAnimationEnabled;
}
private:
static bool _isLayoutAnimationEnabled;
};
} // namespace reanimated

View File

@ -1,36 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "RuntimeManager.h"
#include "SharedParent.h"
#include "WorkletsCache.h"
using namespace facebook;
namespace reanimated {
class FrozenObject : public jsi::HostObject {
friend WorkletsCache;
friend void extractMutables(
jsi::Runtime &rt,
std::shared_ptr<ShareableValue> sv,
std::vector<std::shared_ptr<MutableValue>> &res);
private:
std::unordered_map<std::string, std::shared_ptr<ShareableValue>> map;
std::vector<std::string> namesOrder;
public:
FrozenObject(
jsi::Runtime &rt,
const jsi::Object &object,
RuntimeManager *runtimeManager);
jsi::Object shallowClone(jsi::Runtime &rt);
bool containsHostFunction = false;
};
} // namespace reanimated

View File

@ -1,28 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <memory>
#include <string>
using namespace facebook;
namespace reanimated {
struct HostFunctionHandler : jsi::HostObject {
std::shared_ptr<jsi::Function> pureFunction;
std::string functionName;
jsi::Runtime *hostRuntime;
jsi::HostObject a;
HostFunctionHandler(std::shared_ptr<jsi::Function> f, jsi::Runtime &rt) {
pureFunction = f;
functionName = f->getProperty(rt, "name").asString(rt).utf8(rt);
hostRuntime = &rt;
}
std::shared_ptr<jsi::Function> getPureFunction() {
return pureFunction;
}
};
} // namespace reanimated

View File

@ -1,37 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <stdio.h>
#include <memory>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "Scheduler.h"
using namespace facebook;
namespace reanimated {
class RuntimeManager;
struct StaticStoreUser {
std::atomic<int> ctr;
std::unordered_map<int, std::vector<std::shared_ptr<jsi::Value>>> store;
std::recursive_mutex storeMutex;
};
class StoreUser {
int identifier = 0;
std::weak_ptr<Scheduler> scheduler;
std::shared_ptr<StaticStoreUser> storeUserData;
public:
StoreUser(std::shared_ptr<Scheduler> s, const RuntimeManager &runtimeManager);
std::weak_ptr<jsi::Value> getWeakRef(jsi::Runtime &rt);
void removeRefs();
virtual ~StoreUser();
};
} // namespace reanimated

View File

@ -1,32 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <stdio.h>
#include <functional>
#include <map>
#include <memory>
namespace reanimated {
using namespace facebook;
class MutableValue;
class LayoutAnimationsProxy {
public:
LayoutAnimationsProxy(
std::function<void(int, jsi::Object newProps)> _notifyAboutProgress,
std::function<void(int, bool)> _notifyAboutEnd);
void
startObserving(int tag, std::shared_ptr<MutableValue> sv, jsi::Runtime &rt);
void stopObserving(int tag, bool finished);
void notifyAboutCancellation(int tag);
private:
std::function<void(int, jsi::Object newProps)> notifyAboutProgress;
std::function<void(int, bool)> notifyAboutEnd;
std::map<int, std::shared_ptr<MutableValue>> observedValues;
};
} // namespace reanimated

View File

@ -1,22 +0,0 @@
#pragma once
#include <memory>
#include "./LoggerInterface.h"
namespace reanimated {
class Logger {
public:
template <typename T>
static void log(T value) {
if (instance == nullptr) {
throw std::runtime_error("no logger specified");
}
instance->log(value);
}
private:
static std::unique_ptr<LoggerInterface> instance;
};
} // namespace reanimated

View File

@ -1,14 +0,0 @@
#pragma once
namespace reanimated {
class LoggerInterface {
public:
virtual void log(const char *str) = 0;
virtual void log(double d) = 0;
virtual void log(int i) = 0;
virtual void log(bool b) = 0;
virtual ~LoggerInterface() {}
};
} // namespace reanimated

View File

@ -1,51 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <stdio.h>
#include <memory>
#include <vector>
#include "NativeReanimatedModule.h"
#include "ShareableValue.h"
using namespace facebook;
namespace reanimated {
class MapperRegistry;
struct ViewDescriptor {
int tag;
jsi::Value name;
};
class Mapper : public std::enable_shared_from_this<Mapper> {
friend MapperRegistry;
private:
unsigned long id;
NativeReanimatedModule *module;
std::shared_ptr<jsi::Function> mapper;
std::vector<std::shared_ptr<MutableValue>> inputs;
std::vector<std::shared_ptr<MutableValue>> outputs;
bool dirty = true;
std::shared_ptr<jsi::Function> userUpdater;
UpdaterFunction *updateProps;
int optimalizationLvl = 0;
std::shared_ptr<ShareableValue> viewDescriptors;
public:
Mapper(
NativeReanimatedModule *module,
unsigned long id,
std::shared_ptr<jsi::Function> mapper,
std::vector<std::shared_ptr<MutableValue>> inputs,
std::vector<std::shared_ptr<MutableValue>> outputs);
void execute(jsi::Runtime &rt);
void enableFastMode(
const int optimalizationLvl,
const std::shared_ptr<ShareableValue> &updater,
const std::shared_ptr<ShareableValue> &jsViewDescriptors);
virtual ~Mapper();
};
} // namespace reanimated

View File

@ -1,29 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <memory>
#include <unordered_map>
#include <vector>
using namespace facebook;
namespace reanimated {
class Mapper;
class MapperRegistry {
std::unordered_map<unsigned long, std::shared_ptr<Mapper>> mappers;
std::vector<std::shared_ptr<Mapper>> sortedMappers;
void updateOrder();
bool updatedSinceLastExecute = false;
public:
void startMapper(std::shared_ptr<Mapper> mapper);
void stopMapper(unsigned long id);
void execute(jsi::Runtime &rt);
bool needRunOnRender();
};
} // namespace reanimated

View File

@ -1,54 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <map>
#include <memory>
#include <mutex>
#include <vector>
#include "JSIStoreValueUser.h"
#include "LayoutAnimationsProxy.h"
#include "MutableValueSetterProxy.h"
#include "RuntimeManager.h"
#include "SharedParent.h"
using namespace facebook;
namespace reanimated {
class MutableValue : public jsi::HostObject,
public std::enable_shared_from_this<MutableValue>,
public StoreUser {
private:
friend MutableValueSetterProxy;
friend LayoutAnimationsProxy;
private:
RuntimeManager *runtimeManager;
std::mutex readWriteMutex;
std::shared_ptr<ShareableValue> value;
std::weak_ptr<jsi::Value> animation;
std::map<unsigned long, std::function<void()>> listeners;
public:
void setValue(jsi::Runtime &rt, const jsi::Value &newValue);
jsi::Value getValue(jsi::Runtime &rt);
public:
MutableValue(
jsi::Runtime &rt,
const jsi::Value &initial,
RuntimeManager *runtimeManager,
std::shared_ptr<Scheduler> s);
public:
void
set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value);
jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name);
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt);
unsigned long addListener(
unsigned long listenerId,
std::function<void()> listener);
void removeListener(unsigned long listenerId);
};
} // namespace reanimated

View File

@ -1,25 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <memory>
#include <utility>
#include "SharedParent.h"
using namespace facebook;
namespace reanimated {
class MutableValueSetterProxy : public jsi::HostObject {
private:
friend MutableValue;
std::shared_ptr<MutableValue> mutableValue;
public:
explicit MutableValueSetterProxy(std::shared_ptr<MutableValue> mutableValue)
: mutableValue(std::move(mutableValue)) {}
void
set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value);
jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name);
};
} // namespace reanimated

View File

@ -1,24 +0,0 @@
#import <Foundation/Foundation.h>
#import <RNReanimated/RNGestureHandlerStateManager.h>
#import <React/RCTUIManager.h>
#include <string>
#include <utility>
#include <vector>
namespace reanimated {
std::vector<std::pair<std::string, double>> measure(
int viewTag,
RCTUIManager *uiManager);
void scrollTo(
int scrollViewTag,
RCTUIManager *uiManager,
double x,
double y,
bool animated);
void setGestureState(
id<RNGestureHandlerStateManager> gestureHandlerStateManager,
int handlerTag,
int newState);
} // namespace reanimated

View File

@ -1,15 +0,0 @@
#if __cplusplus
#import <RNReanimated/NativeReanimatedModule.h>
#import <React/RCTEventDispatcher.h>
#include <memory>
namespace reanimated {
std::shared_ptr<reanimated::NativeReanimatedModule> createReanimatedModule(
RCTBridge *bridge,
std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
}
#endif

View File

@ -1,121 +0,0 @@
#pragma once
#include <unistd.h>
#include <memory>
#include <string>
#include <vector>
#include "AnimatedSensorModule.h"
#include "ErrorHandler.h"
#include "LayoutAnimationsProxy.h"
#include "NativeReanimatedModuleSpec.h"
#include "PlatformDepMethodsHolder.h"
#include "RuntimeDecorator.h"
#include "RuntimeManager.h"
#include "Scheduler.h"
#include "SingleInstanceChecker.h"
namespace reanimated {
using FrameCallback = std::function<void(double)>;
class ShareableValue;
class MutableValue;
class MapperRegistry;
class EventHandlerRegistry;
class NativeReanimatedModule : public NativeReanimatedModuleSpec,
public RuntimeManager {
friend ShareableValue;
friend MutableValue;
public:
NativeReanimatedModule(
std::shared_ptr<CallInvoker> jsInvoker,
std::shared_ptr<Scheduler> scheduler,
std::shared_ptr<jsi::Runtime> rt,
std::shared_ptr<ErrorHandler> errorHandler,
std::function<jsi::Value(jsi::Runtime &, const int, const jsi::String &)>
propObtainer,
std::shared_ptr<LayoutAnimationsProxy> layoutAnimationsProxy,
PlatformDepMethodsHolder platformDepMethodsHolder);
void installCoreFunctions(jsi::Runtime &rt, const jsi::Value &valueSetter)
override;
jsi::Value makeShareable(jsi::Runtime &rt, const jsi::Value &value) override;
jsi::Value makeMutable(jsi::Runtime &rt, const jsi::Value &value) override;
jsi::Value makeRemote(jsi::Runtime &rt, const jsi::Value &value) override;
jsi::Value startMapper(
jsi::Runtime &rt,
const jsi::Value &worklet,
const jsi::Value &inputs,
const jsi::Value &outputs,
const jsi::Value &updater,
const jsi::Value &viewDescriptors) override;
void stopMapper(jsi::Runtime &rt, const jsi::Value &mapperId) override;
jsi::Value registerEventHandler(
jsi::Runtime &rt,
const jsi::Value &eventHash,
const jsi::Value &worklet) override;
void unregisterEventHandler(
jsi::Runtime &rt,
const jsi::Value &registrationId) override;
jsi::Value getViewProp(
jsi::Runtime &rt,
const jsi::Value &viewTag,
const jsi::Value &propName,
const jsi::Value &callback) override;
jsi::Value enableLayoutAnimations(jsi::Runtime &rt, const jsi::Value &config)
override;
jsi::Value configureProps(
jsi::Runtime &rt,
const jsi::Value &uiProps,
const jsi::Value &nativeProps) override;
void onRender(double timestampMs);
void onEvent(std::string eventName, std::string eventAsString);
bool isAnyHandlerWaitingForEvent(std::string eventName);
void maybeRequestRender();
UpdaterFunction updaterFunction;
jsi::Value registerSensor(
jsi::Runtime &rt,
const jsi::Value &sensorType,
const jsi::Value &interval,
const jsi::Value &sensorDataContainer) override;
void unregisterSensor(jsi::Runtime &rt, const jsi::Value &sensorId) override;
jsi::Value subscribeForKeyboardEvents(
jsi::Runtime &rt,
const jsi::Value &keyboardEventContainer) override;
void unsubscribeFromKeyboardEvents(
jsi::Runtime &rt,
const jsi::Value &listenerId) override;
private:
std::shared_ptr<MapperRegistry> mapperRegistry;
std::shared_ptr<EventHandlerRegistry> eventHandlerRegistry;
std::function<void(FrameCallback &, jsi::Runtime &)> requestRender;
std::shared_ptr<jsi::Value> dummyEvent;
std::vector<FrameCallback> frameCallbacks;
bool renderRequested = false;
std::function<jsi::Value(jsi::Runtime &, const int, const jsi::String &)>
propObtainer;
std::function<void(double)> onRenderCallback;
std::shared_ptr<LayoutAnimationsProxy> layoutAnimationsProxy;
AnimatedSensorModule animatedSensorModule;
ConfigurePropsFunction configurePropsPlatformFunction;
KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction;
KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction;
#ifdef DEBUG
SingleInstanceChecker<NativeReanimatedModule> singleInstanceChecker_;
#endif
};
} // namespace reanimated

View File

@ -1,90 +0,0 @@
#pragma once
#include <memory>
#include <string>
#include <vector>
#ifdef ANDROID
#include "TurboModule.h"
#else
#include <ReactCommon/TurboModule.h>
#endif
#include <ReactCommon/CallInvoker.h>
using namespace facebook;
using namespace react;
namespace reanimated {
class JSI_EXPORT NativeReanimatedModuleSpec : public TurboModule {
protected:
explicit NativeReanimatedModuleSpec(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual void installCoreFunctions(
jsi::Runtime &rt,
const jsi::Value &valueSetter) = 0;
// SharedValue
virtual jsi::Value makeShareable(
jsi::Runtime &rt,
const jsi::Value &value) = 0;
virtual jsi::Value makeMutable(jsi::Runtime &rt, const jsi::Value &value) = 0;
virtual jsi::Value makeRemote(jsi::Runtime &rt, const jsi::Value &value) = 0;
// mappers
virtual jsi::Value startMapper(
jsi::Runtime &rt,
const jsi::Value &worklet,
const jsi::Value &inputs,
const jsi::Value &outputs,
const jsi::Value &updater,
const jsi::Value &viewDescriptors) = 0;
virtual void stopMapper(jsi::Runtime &rt, const jsi::Value &mapperId) = 0;
// events
virtual jsi::Value registerEventHandler(
jsi::Runtime &rt,
const jsi::Value &eventHash,
const jsi::Value &worklet) = 0;
virtual void unregisterEventHandler(
jsi::Runtime &rt,
const jsi::Value &registrationId) = 0;
// views
virtual jsi::Value getViewProp(
jsi::Runtime &rt,
const jsi::Value &viewTag,
const jsi::Value &propName,
const jsi::Value &callback) = 0;
// sensors
virtual jsi::Value registerSensor(
jsi::Runtime &rt,
const jsi::Value &sensorType,
const jsi::Value &interval,
const jsi::Value &sensorDataContainer) = 0;
virtual void unregisterSensor(
jsi::Runtime &rt,
const jsi::Value &sensorId) = 0;
// keyboard
virtual jsi::Value subscribeForKeyboardEvents(
jsi::Runtime &rt,
const jsi::Value &keyboardEventContainer) = 0;
virtual void unsubscribeFromKeyboardEvents(
jsi::Runtime &rt,
const jsi::Value &listenerId) = 0;
// other
virtual jsi::Value enableLayoutAnimations(
jsi::Runtime &rt,
const jsi::Value &config) = 0;
virtual jsi::Value configureProps(
jsi::Runtime &rt,
const jsi::Value &uiProps,
const jsi::Value &nativeProps) = 0;
};
} // namespace reanimated

View File

@ -1,51 +0,0 @@
#pragma once
#include <jsi/jsi.h>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
using namespace facebook;
namespace reanimated {
using UpdaterFunction = std::function<void(
jsi::Runtime &rt,
int viewTag,
const jsi::Value &viewName,
const jsi::Object &object)>;
using RequestRender =
std::function<void(std::function<void(double)>, jsi::Runtime &rt)>;
using ScrollToFunction = std::function<void(int, double, double, bool)>;
using MeasuringFunction =
std::function<std::vector<std::pair<std::string, double>>(int)>;
using TimeProviderFunction = std::function<double(void)>;
using RegisterSensorFunction =
std::function<int(int, int, std::function<void(double[])>)>;
using UnregisterSensorFunction = std::function<void(int)>;
using SetGestureStateFunction = std::function<void(int, int)>;
using ConfigurePropsFunction = std::function<void(
jsi::Runtime &rt,
const jsi::Value &uiProps,
const jsi::Value &nativeProps)>;
using KeyboardEventSubscribeFunction =
std::function<int(std::function<void(int, int)>)>;
using KeyboardEventUnsubscribeFunction = std::function<void(int)>;
struct PlatformDepMethodsHolder {
RequestRender requestRender;
UpdaterFunction updaterFunction;
ScrollToFunction scrollToFunction;
MeasuringFunction measuringFunction;
TimeProviderFunction getCurrentTime;
RegisterSensorFunction registerSensor;
UnregisterSensorFunction unregisterSensor;
SetGestureStateFunction setGestureStateFunction;
ConfigurePropsFunction configurePropsFunction;
KeyboardEventSubscribeFunction subscribeForKeyboardEvents;
KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEvents;
};
} // namespace reanimated

View File

@ -1,6 +1,7 @@
#import <RNReanimated/REATransition.h>
#import <React/RCTConvert.h> #import <React/RCTConvert.h>
#import "REATransition.h"
@interface RCTConvert (REATransition) @interface RCTConvert (REATransition)
+ (REATransitionType)REATransitionType:(id)json; + (REATransitionType)REATransitionType:(id)json;

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REATransition.h> #import "REATransition.h"
@interface REATransitionGroup : REATransition @interface REATransitionGroup : REATransition
@property (nonatomic) BOOL sequence; @property (nonatomic) BOOL sequence;
@ -8,8 +8,8 @@
@interface REAVisibilityTransition : REATransition @interface REAVisibilityTransition : REATransition
@property (nonatomic) REATransitionAnimationType animationType; @property (nonatomic) REATransitionAnimationType animationType;
- (REATransitionAnimation *)appearView:(UIView *)view inParent:(UIView *)parent; - (REATransitionAnimation *)appearView:(UIView*)view inParent:(UIView*)parent;
- (REATransitionAnimation *)disappearView:(UIView *)view fromParent:(UIView *)parent; - (REATransitionAnimation *)disappearView:(UIView*)view fromParent:(UIView*)parent;
- (instancetype)initWithConfig:(NSDictionary *)config; - (instancetype)initWithConfig:(NSDictionary *)config;
@end @end

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REAAlwaysNode : REANode <REAFinalNode> @interface REAAlwaysNode : REANode <REAFinalNode>
@end @end

View File

@ -1,32 +0,0 @@
#import <Foundation/Foundation.h>
#import <RNReanimated/REASnapshot.h>
#import <React/RCTUIManager.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, ViewState) {
Inactive,
Appearing,
Disappearing,
Layout,
ToRemove,
};
@interface REAAnimationsManager : NSObject
- (instancetype)initWithUIManager:(RCTUIManager *)uiManager;
- (void)setRemovingConfigBlock:(void (^)(NSNumber *tag))block;
- (void)setAnimationStartingBlock:
(void (^)(NSNumber *tag, NSString *type, NSDictionary *target, NSNumber *depth))startAnimation;
- (void)notifyAboutProgress:(NSDictionary *)newStyle tag:(NSNumber *)tag;
- (void)notifyAboutEnd:(NSNumber *)tag cancelled:(BOOL)cancelled;
- (void)invalidate;
- (void)onViewRemoval:(UIView *)view before:(REASnapshot *)before;
- (void)onViewCreate:(UIView *)view after:(REASnapshot *)after;
- (void)onViewUpdate:(UIView *)view before:(REASnapshot *)before after:(REASnapshot *)after;
- (void)setToBeRemovedRegistry:(NSMutableDictionary<NSNumber *, NSMutableSet<id<RCTComponent>> *> *)toBeRemovedRegister;
- (void)removeLeftovers;
@end
NS_ASSUME_NONNULL_END

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REABezierNode : REANode @interface REABezierNode : REANode

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REABlockNode : REANode @interface REABlockNode : REANode

View File

@ -1,6 +1,7 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REACallFuncNode : REANode @interface REACallFuncNode : REANode
@end @end

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REAClockNode : REANode @interface REAClockNode : REANode
@property (nonatomic, readonly) BOOL isRunning; @property (nonatomic, readonly) BOOL isRunning;

View File

@ -1,5 +1,6 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REAConcatNode : REANode @interface REAConcatNode : REANode
@end @end

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REACondNode : REANode @interface REACondNode : REANode

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface READebugNode : REANode @interface READebugNode : REANode

View File

@ -1,10 +0,0 @@
#import <Foundation/Foundation.h>
#import <React/RCTEventDispatcher.h>
NS_ASSUME_NONNULL_BEGIN
@interface REAEventDispatcher : RCTEventDispatcher
@end
NS_ASSUME_NONNULL_END

View File

@ -1,4 +1,5 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
#import <React/RCTEventDispatcher.h> #import <React/RCTEventDispatcher.h>
@interface REAEventNode : REANode @interface REAEventNode : REANode

View File

@ -1,6 +1,7 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REAFunctionNode : REANode @interface REAFunctionNode : REANode
@end @end

View File

@ -1,21 +0,0 @@
#import <RNReanimated/ErrorHandler.h>
#import <RNReanimated/Scheduler.h>
#include <memory>
#include <string>
namespace reanimated {
class REAIOSErrorHandler : public ErrorHandler {
std::shared_ptr<Scheduler> scheduler;
void raiseSpec() override;
std::shared_ptr<ErrorWrapper> error;
public:
REAIOSErrorHandler(std::shared_ptr<Scheduler> scheduler);
std::shared_ptr<Scheduler> getScheduler() override;
std::shared_ptr<ErrorWrapper> getError() override;
void setError(std::string message) override;
virtual ~REAIOSErrorHandler() {}
};
} // namespace reanimated

View File

@ -1,15 +0,0 @@
#import <RNReanimated/ReanimatedHiddenHeaders.h>
#include <stdio.h>
namespace reanimated {
class REAIOSLogger : public LoggerInterface {
public:
void log(const char *str) override;
void log(double d) override;
void log(int i) override;
void log(bool b) override;
virtual ~REAIOSLogger() {}
};
} // namespace reanimated

View File

@ -1,19 +0,0 @@
#import <RNReanimated/Scheduler.h>
#import <React/RCTUIManager.h>
#import <ReactCommon/CallInvoker.h>
#include <stdio.h>
#include <memory>
namespace reanimated {
using namespace facebook;
using namespace react;
class REAIOSScheduler : public Scheduler {
public:
REAIOSScheduler(std::shared_ptr<CallInvoker> jsInvoker);
void scheduleOnUI(std::function<void()> job) override;
virtual ~REAIOSScheduler();
};
} // namespace reanimated

View File

@ -1,30 +0,0 @@
#import <Foundation/Foundation.h>
#import <RNReanimated/NativeProxy.h>
#import <RNReanimated/REAEventDispatcher.h>
#import <RNReanimated/REAModule.h>
#import <React/RCTBridge+Private.h>
#import <React/RCTCxxBridgeDelegate.h>
#import <ReactCommon/RCTTurboModuleManager.h>
#import <jsireact/JSIExecutor.h>
#if REACT_NATIVE_MINOR_VERSION >= 64
#import <React/RCTJSIExecutorRuntimeInstaller.h>
#endif
#if REACT_NATIVE_MINOR_VERSION < 63
#import <ReactCommon/BridgeJSCallInvoker.h>
#endif
NS_ASSUME_NONNULL_BEGIN
namespace reanimated {
using namespace facebook;
using namespace react;
JSIExecutor::RuntimeInstaller REAJSIExecutorRuntimeInstaller(
RCTBridge *bridge,
JSIExecutor::RuntimeInstaller runtimeInstallerToWrap);
} // namespace reanimated
NS_ASSUME_NONNULL_END

View File

@ -1,4 +1,4 @@
#import <RNReanimated/REANode.h> #import "REANode.h"
@interface REAJSCallNode : REANode @interface REAJSCallNode : REANode

View File

@ -1,17 +0,0 @@
#ifndef REAKeyboardEventManager_h
#define REAKeyboardEventManager_h
#import <RNReanimated/REAEventDispatcher.h>
#import <React/RCTEventDispatcher.h>
typedef void (^KeyboardEventListenerBlock)(int keyboardState, int height);
@interface REAKeyboardEventObserver : NSObject
- (instancetype)init;
- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener;
- (void)unsubscribeFromKeyboardEvents:(int)listenerId;
@end
#endif /* REAKeyboardEventManager_h */

Some files were not shown because too many files have changed in this diff Show More