Compare commits
No commits in common. "main" and "v3.15.08" have entirely different histories.
|
@ -4,6 +4,22 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libBVLinearGradient.a</string>
|
||||
|
@ -23,22 +39,6 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -4,22 +4,6 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libDynamicFonts.a</string>
|
||||
|
@ -39,6 +23,22 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -6,13 +6,13 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>BinaryPath</key>
|
||||
<string>libReact-bridging.a</string>
|
||||
<string>libFBReactNativeSpec.a</string>
|
||||
<key>HeadersPath</key>
|
||||
<string>Headers</string>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>libReact-bridging.a</string>
|
||||
<string>libFBReactNativeSpec.a</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
|
@ -25,13 +25,13 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>BinaryPath</key>
|
||||
<string>libReact-bridging.a</string>
|
||||
<string>libFBReactNativeSpec.a</string>
|
||||
<key>HeadersPath</key>
|
||||
<string>Headers</string>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>libReact-bridging.a</string>
|
||||
<string>libFBReactNativeSpec.a</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
|
@ -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
|
||||
* once the code is regenerated.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated by codegen project: GenerateModuleObjCpp
|
||||
*
|
||||
|
@ -22,7 +22,7 @@
|
|||
#import <React/RCTCxxConvert.h>
|
||||
#import <React/RCTManagedPointer.h>
|
||||
#import <ReactCommon/RCTTurboModule.h>
|
||||
#import <optional>
|
||||
#import <folly/Optional.h>
|
||||
#import <vector>
|
||||
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
|||
|
||||
- (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess;
|
||||
- (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess;
|
||||
- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess;
|
||||
- (void)setAccessibilityFocus:(double)reactTag;
|
||||
- (void)announceForAccessibility:(NSString *)announcement;
|
||||
- (void)getRecommendedTimeoutMillis:(double)mSec
|
||||
|
@ -51,18 +50,18 @@ namespace facebook {
|
|||
namespace JS {
|
||||
namespace NativeAccessibilityManager {
|
||||
struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers {
|
||||
std::optional<double> extraSmall() const;
|
||||
std::optional<double> small() const;
|
||||
std::optional<double> medium() const;
|
||||
std::optional<double> large() const;
|
||||
std::optional<double> extraLarge() const;
|
||||
std::optional<double> extraExtraLarge() const;
|
||||
std::optional<double> extraExtraExtraLarge() const;
|
||||
std::optional<double> accessibilityMedium() const;
|
||||
std::optional<double> accessibilityLarge() const;
|
||||
std::optional<double> accessibilityExtraLarge() const;
|
||||
std::optional<double> accessibilityExtraExtraLarge() const;
|
||||
std::optional<double> accessibilityExtraExtraExtraLarge() const;
|
||||
folly::Optional<double> extraSmall() const;
|
||||
folly::Optional<double> small() const;
|
||||
folly::Optional<double> medium() const;
|
||||
folly::Optional<double> large() const;
|
||||
folly::Optional<double> extraLarge() const;
|
||||
folly::Optional<double> extraExtraLarge() const;
|
||||
folly::Optional<double> extraExtraExtraLarge() const;
|
||||
folly::Optional<double> accessibilityMedium() const;
|
||||
folly::Optional<double> accessibilityLarge() const;
|
||||
folly::Optional<double> accessibilityExtraLarge() const;
|
||||
folly::Optional<double> accessibilityExtraExtraLarge() const;
|
||||
folly::Optional<double> accessibilityExtraExtraExtraLarge() const;
|
||||
|
||||
SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -74,21 +73,6 @@ namespace JS {
|
|||
@interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers)
|
||||
+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json;
|
||||
@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>
|
||||
|
||||
- (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess
|
||||
|
@ -99,8 +83,6 @@ namespace JS {
|
|||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess
|
||||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess
|
||||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess
|
||||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
|
||||
|
@ -108,8 +90,6 @@ namespace JS {
|
|||
- (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers;
|
||||
- (void)setAccessibilityFocus:(double)reactTag;
|
||||
- (void)announceForAccessibility:(NSString *)announcement;
|
||||
- (void)announceForAccessibilityWithOptions:(NSString *)announcement
|
||||
options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -128,14 +108,14 @@ namespace JS {
|
|||
struct SpecShowActionSheetWithOptionsOptions {
|
||||
NSString *title() const;
|
||||
NSString *message() const;
|
||||
std::optional<facebook::react::LazyVector<NSString *>> options() const;
|
||||
std::optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
|
||||
std::optional<double> cancelButtonIndex() const;
|
||||
std::optional<double> anchor() const;
|
||||
std::optional<double> tintColor() const;
|
||||
std::optional<double> cancelButtonTintColor() const;
|
||||
folly::Optional<facebook::react::LazyVector<NSString *>> options() const;
|
||||
folly::Optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
|
||||
folly::Optional<double> cancelButtonIndex() const;
|
||||
folly::Optional<double> anchor() const;
|
||||
folly::Optional<double> tintColor() const;
|
||||
folly::Optional<double> cancelButtonTintColor() 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) {}
|
||||
private:
|
||||
|
@ -153,10 +133,10 @@ namespace JS {
|
|||
NSString *message() const;
|
||||
NSString *url() const;
|
||||
NSString *subject() const;
|
||||
std::optional<double> anchor() const;
|
||||
std::optional<double> tintColor() const;
|
||||
std::optional<double> cancelButtonTintColor() const;
|
||||
std::optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
|
||||
folly::Optional<double> anchor() const;
|
||||
folly::Optional<double> tintColor() const;
|
||||
folly::Optional<double> cancelButtonTintColor() const;
|
||||
folly::Optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
|
||||
NSString *userInterfaceStyle() const;
|
||||
|
||||
SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
|
||||
|
@ -176,7 +156,6 @@ namespace JS {
|
|||
- (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options
|
||||
failureCallback:(RCTResponseSenderBlock)failureCallback
|
||||
successCallback:(RCTResponseSenderBlock)successCallback;
|
||||
- (void)dismissActionSheet;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -195,13 +174,12 @@ namespace JS {
|
|||
struct Args {
|
||||
NSString *title() 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 *defaultValue() const;
|
||||
NSString *cancelButtonKey() const;
|
||||
NSString *destructiveButtonKey() const;
|
||||
NSString *keyboardType() const;
|
||||
NSString *userInterfaceStyle() const;
|
||||
|
||||
Args(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -234,7 +212,7 @@ namespace JS {
|
|||
namespace NativeAnimatedModule {
|
||||
struct EventMapping {
|
||||
facebook::react::LazyVector<NSString *> nativeEventPath() const;
|
||||
std::optional<double> animatedValueTag() const;
|
||||
folly::Optional<double> animatedValueTag() const;
|
||||
|
||||
EventMapping(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -252,8 +230,6 @@ namespace JS {
|
|||
- (void)finishOperationBatch;
|
||||
- (void)createAnimatedNode:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)updateAnimatedNodeConfig:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)getValue:(double)tag
|
||||
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
||||
- (void)startListeningToAnimatedNodeValue:(double)tag;
|
||||
|
@ -287,7 +263,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
|||
animatedNodeTag:(double)animatedNodeTag;
|
||||
- (void)addListener:(NSString *)eventName;
|
||||
- (void)removeListeners:(double)count;
|
||||
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -305,7 +280,7 @@ namespace JS {
|
|||
namespace NativeAnimatedTurboModule {
|
||||
struct EventMapping {
|
||||
facebook::react::LazyVector<NSString *> nativeEventPath() const;
|
||||
std::optional<double> animatedValueTag() const;
|
||||
folly::Optional<double> animatedValueTag() const;
|
||||
|
||||
EventMapping(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -323,8 +298,6 @@ namespace JS {
|
|||
- (void)finishOperationBatch;
|
||||
- (void)createAnimatedNode:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)updateAnimatedNodeConfig:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)getValue:(double)tag
|
||||
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
||||
- (void)startListeningToAnimatedNodeValue:(double)tag;
|
||||
|
@ -358,7 +331,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
|||
animatedNodeTag:(double)animatedNodeTag;
|
||||
- (void)addListener:(NSString *)eventName;
|
||||
- (void)removeListeners:(double)count;
|
||||
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -772,10 +744,10 @@ namespace JS {
|
|||
|
||||
struct Builder {
|
||||
struct Input {
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -803,7 +775,7 @@ namespace JS {
|
|||
struct Builder {
|
||||
struct Input {
|
||||
RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions;
|
||||
std::optional<bool> isIPhoneX_deprecated;
|
||||
folly::Optional<bool> isIPhoneX_deprecated;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -844,11 +816,11 @@ namespace facebook {
|
|||
namespace JS {
|
||||
namespace NativeExceptionsManager {
|
||||
struct StackFrame {
|
||||
std::optional<double> column() const;
|
||||
folly::Optional<double> column() const;
|
||||
NSString *file() const;
|
||||
std::optional<double> lineNumber() const;
|
||||
folly::Optional<double> lineNumber() const;
|
||||
NSString *methodName() const;
|
||||
std::optional<bool> collapse() const;
|
||||
folly::Optional<bool> collapse() const;
|
||||
|
||||
StackFrame(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -934,8 +906,8 @@ namespace facebook {
|
|||
namespace JS {
|
||||
namespace NativeFrameRateLogger {
|
||||
struct SpecSetGlobalOptionsOptions {
|
||||
std::optional<bool> debug() const;
|
||||
std::optional<bool> reportStackTraces() const;
|
||||
folly::Optional<bool> debug() const;
|
||||
folly::Optional<bool> reportStackTraces() const;
|
||||
|
||||
SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -1088,9 +1060,9 @@ namespace JS {
|
|||
struct Options {
|
||||
JS::NativeImageEditor::OptionsOffset offset() const;
|
||||
JS::NativeImageEditor::OptionsSize size() const;
|
||||
std::optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
|
||||
folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
|
||||
NSString *resizeMode() const;
|
||||
std::optional<bool> allowExternalStorage() const;
|
||||
folly::Optional<bool> allowExternalStorage() const;
|
||||
|
||||
Options(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -1456,7 +1428,7 @@ namespace JS {
|
|||
RCTRequired<double> major;
|
||||
RCTRequired<double> minor;
|
||||
RCTRequired<double> patch;
|
||||
RCTRequired<std::optional<double>> prerelease;
|
||||
RCTRequired<folly::Optional<double>> prerelease;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -1547,15 +1519,14 @@ namespace JS {
|
|||
namespace NativePushNotificationManagerIOS {
|
||||
struct Notification {
|
||||
NSString *alertTitle() const;
|
||||
std::optional<double> fireDate() const;
|
||||
folly::Optional<double> fireDate() const;
|
||||
NSString *alertBody() const;
|
||||
NSString *alertAction() const;
|
||||
id<NSObject> _Nullable userInfo() const;
|
||||
NSString *category() const;
|
||||
NSString *repeatInterval() const;
|
||||
std::optional<double> applicationIconBadgeNumber() const;
|
||||
std::optional<bool> isSilent() const;
|
||||
NSString *soundName() const;
|
||||
folly::Optional<double> applicationIconBadgeNumber() const;
|
||||
folly::Optional<bool> isSilent() const;
|
||||
|
||||
Notification(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -1794,7 +1765,7 @@ namespace JS {
|
|||
struct Builder {
|
||||
struct Input {
|
||||
RCTRequired<double> HEIGHT;
|
||||
std::optional<double> DEFAULT_BACKGROUND_COLOR;
|
||||
folly::Optional<double> DEFAULT_BACKGROUND_COLOR;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -1927,71 +1898,66 @@ namespace facebook {
|
|||
} // namespace react
|
||||
} // 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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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
|
||||
{
|
||||
id const p = _v[@"title"];
|
||||
|
@ -2002,32 +1968,32 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
|
|||
id const p = _v[@"message"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2037,7 +2003,7 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
|
|||
id const p = _v[@"userInterfaceStyle"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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
|
||||
{
|
||||
id const p = _v[@"nativeEventPath"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2142,7 +2103,7 @@ inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedTurboModule::Ev
|
|||
id const p = _v[@"nativeEventPath"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2213,13 +2174,13 @@ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetr
|
|||
inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{
|
||||
NSMutableDictionary *d = [NSMutableDictionary new];
|
||||
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;
|
||||
d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil;
|
||||
d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil;
|
||||
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;
|
||||
d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
|
||||
d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
|
||||
return d;
|
||||
}) {}
|
||||
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();
|
||||
d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
|
||||
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;
|
||||
}) {}
|
||||
inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2246,7 +2207,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const
|
|||
id const p = _v[@"file"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2256,7 +2217,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const
|
|||
id const p = _v[@"methodName"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalBool(p);
|
||||
|
@ -2302,12 +2263,12 @@ inline id<NSObject> _Nullable JS::NativeExceptionsManager::ExceptionData::extraD
|
|||
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"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalBool(p);
|
||||
|
@ -2366,17 +2327,17 @@ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size()
|
|||
id const p = _v[@"size"];
|
||||
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"];
|
||||
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
|
||||
{
|
||||
id const p = _v[@"resizeMode"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalBool(p);
|
||||
|
@ -2469,7 +2430,7 @@ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Bui
|
|||
auto patch = i.patch.get();
|
||||
d[@"patch"] = @(patch);
|
||||
auto prerelease = i.prerelease.get();
|
||||
d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil;
|
||||
d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil;
|
||||
return d;
|
||||
}) {}
|
||||
inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
|
||||
|
@ -2514,7 +2475,7 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle(
|
|||
id const p = _v[@"alertTitle"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2544,21 +2505,16 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInter
|
|||
id const p = _v[@"repeatInterval"];
|
||||
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"];
|
||||
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"];
|
||||
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(^{
|
||||
|
@ -2595,7 +2551,7 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i)
|
|||
auto HEIGHT = i.HEIGHT.get();
|
||||
d[@"HEIGHT"] = @(HEIGHT);
|
||||
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;
|
||||
}) {}
|
||||
inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{
|
Binary file not shown.
|
@ -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
|
||||
* once the code is regenerated.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated by codegen project: GenerateModuleObjCpp
|
||||
*
|
||||
|
@ -22,7 +22,7 @@
|
|||
#import <React/RCTCxxConvert.h>
|
||||
#import <React/RCTManagedPointer.h>
|
||||
#import <ReactCommon/RCTTurboModule.h>
|
||||
#import <optional>
|
||||
#import <folly/Optional.h>
|
||||
#import <vector>
|
||||
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
|||
|
||||
- (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess;
|
||||
- (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess;
|
||||
- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess;
|
||||
- (void)setAccessibilityFocus:(double)reactTag;
|
||||
- (void)announceForAccessibility:(NSString *)announcement;
|
||||
- (void)getRecommendedTimeoutMillis:(double)mSec
|
||||
|
@ -51,18 +50,18 @@ namespace facebook {
|
|||
namespace JS {
|
||||
namespace NativeAccessibilityManager {
|
||||
struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers {
|
||||
std::optional<double> extraSmall() const;
|
||||
std::optional<double> small() const;
|
||||
std::optional<double> medium() const;
|
||||
std::optional<double> large() const;
|
||||
std::optional<double> extraLarge() const;
|
||||
std::optional<double> extraExtraLarge() const;
|
||||
std::optional<double> extraExtraExtraLarge() const;
|
||||
std::optional<double> accessibilityMedium() const;
|
||||
std::optional<double> accessibilityLarge() const;
|
||||
std::optional<double> accessibilityExtraLarge() const;
|
||||
std::optional<double> accessibilityExtraExtraLarge() const;
|
||||
std::optional<double> accessibilityExtraExtraExtraLarge() const;
|
||||
folly::Optional<double> extraSmall() const;
|
||||
folly::Optional<double> small() const;
|
||||
folly::Optional<double> medium() const;
|
||||
folly::Optional<double> large() const;
|
||||
folly::Optional<double> extraLarge() const;
|
||||
folly::Optional<double> extraExtraLarge() const;
|
||||
folly::Optional<double> extraExtraExtraLarge() const;
|
||||
folly::Optional<double> accessibilityMedium() const;
|
||||
folly::Optional<double> accessibilityLarge() const;
|
||||
folly::Optional<double> accessibilityExtraLarge() const;
|
||||
folly::Optional<double> accessibilityExtraExtraLarge() const;
|
||||
folly::Optional<double> accessibilityExtraExtraExtraLarge() const;
|
||||
|
||||
SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -74,21 +73,6 @@ namespace JS {
|
|||
@interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers)
|
||||
+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json;
|
||||
@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>
|
||||
|
||||
- (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess
|
||||
|
@ -99,8 +83,6 @@ namespace JS {
|
|||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess
|
||||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess
|
||||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess
|
||||
onError:(RCTResponseSenderBlock)onError;
|
||||
- (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
|
||||
|
@ -108,8 +90,6 @@ namespace JS {
|
|||
- (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers;
|
||||
- (void)setAccessibilityFocus:(double)reactTag;
|
||||
- (void)announceForAccessibility:(NSString *)announcement;
|
||||
- (void)announceForAccessibilityWithOptions:(NSString *)announcement
|
||||
options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -128,14 +108,14 @@ namespace JS {
|
|||
struct SpecShowActionSheetWithOptionsOptions {
|
||||
NSString *title() const;
|
||||
NSString *message() const;
|
||||
std::optional<facebook::react::LazyVector<NSString *>> options() const;
|
||||
std::optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
|
||||
std::optional<double> cancelButtonIndex() const;
|
||||
std::optional<double> anchor() const;
|
||||
std::optional<double> tintColor() const;
|
||||
std::optional<double> cancelButtonTintColor() const;
|
||||
folly::Optional<facebook::react::LazyVector<NSString *>> options() const;
|
||||
folly::Optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
|
||||
folly::Optional<double> cancelButtonIndex() const;
|
||||
folly::Optional<double> anchor() const;
|
||||
folly::Optional<double> tintColor() const;
|
||||
folly::Optional<double> cancelButtonTintColor() 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) {}
|
||||
private:
|
||||
|
@ -153,10 +133,10 @@ namespace JS {
|
|||
NSString *message() const;
|
||||
NSString *url() const;
|
||||
NSString *subject() const;
|
||||
std::optional<double> anchor() const;
|
||||
std::optional<double> tintColor() const;
|
||||
std::optional<double> cancelButtonTintColor() const;
|
||||
std::optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
|
||||
folly::Optional<double> anchor() const;
|
||||
folly::Optional<double> tintColor() const;
|
||||
folly::Optional<double> cancelButtonTintColor() const;
|
||||
folly::Optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
|
||||
NSString *userInterfaceStyle() const;
|
||||
|
||||
SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
|
||||
|
@ -176,7 +156,6 @@ namespace JS {
|
|||
- (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options
|
||||
failureCallback:(RCTResponseSenderBlock)failureCallback
|
||||
successCallback:(RCTResponseSenderBlock)successCallback;
|
||||
- (void)dismissActionSheet;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -195,13 +174,12 @@ namespace JS {
|
|||
struct Args {
|
||||
NSString *title() 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 *defaultValue() const;
|
||||
NSString *cancelButtonKey() const;
|
||||
NSString *destructiveButtonKey() const;
|
||||
NSString *keyboardType() const;
|
||||
NSString *userInterfaceStyle() const;
|
||||
|
||||
Args(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -234,7 +212,7 @@ namespace JS {
|
|||
namespace NativeAnimatedModule {
|
||||
struct EventMapping {
|
||||
facebook::react::LazyVector<NSString *> nativeEventPath() const;
|
||||
std::optional<double> animatedValueTag() const;
|
||||
folly::Optional<double> animatedValueTag() const;
|
||||
|
||||
EventMapping(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -252,8 +230,6 @@ namespace JS {
|
|||
- (void)finishOperationBatch;
|
||||
- (void)createAnimatedNode:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)updateAnimatedNodeConfig:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)getValue:(double)tag
|
||||
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
||||
- (void)startListeningToAnimatedNodeValue:(double)tag;
|
||||
|
@ -287,7 +263,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
|||
animatedNodeTag:(double)animatedNodeTag;
|
||||
- (void)addListener:(NSString *)eventName;
|
||||
- (void)removeListeners:(double)count;
|
||||
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -305,7 +280,7 @@ namespace JS {
|
|||
namespace NativeAnimatedTurboModule {
|
||||
struct EventMapping {
|
||||
facebook::react::LazyVector<NSString *> nativeEventPath() const;
|
||||
std::optional<double> animatedValueTag() const;
|
||||
folly::Optional<double> animatedValueTag() const;
|
||||
|
||||
EventMapping(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -323,8 +298,6 @@ namespace JS {
|
|||
- (void)finishOperationBatch;
|
||||
- (void)createAnimatedNode:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)updateAnimatedNodeConfig:(double)tag
|
||||
config:(NSDictionary *)config;
|
||||
- (void)getValue:(double)tag
|
||||
saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
||||
- (void)startListeningToAnimatedNodeValue:(double)tag;
|
||||
|
@ -358,7 +331,6 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
|
|||
animatedNodeTag:(double)animatedNodeTag;
|
||||
- (void)addListener:(NSString *)eventName;
|
||||
- (void)removeListeners:(double)count;
|
||||
- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
|
||||
|
||||
@end
|
||||
namespace facebook {
|
||||
|
@ -772,10 +744,10 @@ namespace JS {
|
|||
|
||||
struct Builder {
|
||||
struct Input {
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
|
||||
std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
|
||||
folly::Optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -803,7 +775,7 @@ namespace JS {
|
|||
struct Builder {
|
||||
struct Input {
|
||||
RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions;
|
||||
std::optional<bool> isIPhoneX_deprecated;
|
||||
folly::Optional<bool> isIPhoneX_deprecated;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -844,11 +816,11 @@ namespace facebook {
|
|||
namespace JS {
|
||||
namespace NativeExceptionsManager {
|
||||
struct StackFrame {
|
||||
std::optional<double> column() const;
|
||||
folly::Optional<double> column() const;
|
||||
NSString *file() const;
|
||||
std::optional<double> lineNumber() const;
|
||||
folly::Optional<double> lineNumber() const;
|
||||
NSString *methodName() const;
|
||||
std::optional<bool> collapse() const;
|
||||
folly::Optional<bool> collapse() const;
|
||||
|
||||
StackFrame(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -934,8 +906,8 @@ namespace facebook {
|
|||
namespace JS {
|
||||
namespace NativeFrameRateLogger {
|
||||
struct SpecSetGlobalOptionsOptions {
|
||||
std::optional<bool> debug() const;
|
||||
std::optional<bool> reportStackTraces() const;
|
||||
folly::Optional<bool> debug() const;
|
||||
folly::Optional<bool> reportStackTraces() const;
|
||||
|
||||
SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -1088,9 +1060,9 @@ namespace JS {
|
|||
struct Options {
|
||||
JS::NativeImageEditor::OptionsOffset offset() const;
|
||||
JS::NativeImageEditor::OptionsSize size() const;
|
||||
std::optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
|
||||
folly::Optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
|
||||
NSString *resizeMode() const;
|
||||
std::optional<bool> allowExternalStorage() const;
|
||||
folly::Optional<bool> allowExternalStorage() const;
|
||||
|
||||
Options(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -1456,7 +1428,7 @@ namespace JS {
|
|||
RCTRequired<double> major;
|
||||
RCTRequired<double> minor;
|
||||
RCTRequired<double> patch;
|
||||
RCTRequired<std::optional<double>> prerelease;
|
||||
RCTRequired<folly::Optional<double>> prerelease;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -1547,15 +1519,14 @@ namespace JS {
|
|||
namespace NativePushNotificationManagerIOS {
|
||||
struct Notification {
|
||||
NSString *alertTitle() const;
|
||||
std::optional<double> fireDate() const;
|
||||
folly::Optional<double> fireDate() const;
|
||||
NSString *alertBody() const;
|
||||
NSString *alertAction() const;
|
||||
id<NSObject> _Nullable userInfo() const;
|
||||
NSString *category() const;
|
||||
NSString *repeatInterval() const;
|
||||
std::optional<double> applicationIconBadgeNumber() const;
|
||||
std::optional<bool> isSilent() const;
|
||||
NSString *soundName() const;
|
||||
folly::Optional<double> applicationIconBadgeNumber() const;
|
||||
folly::Optional<bool> isSilent() const;
|
||||
|
||||
Notification(NSDictionary *const v) : _v(v) {}
|
||||
private:
|
||||
|
@ -1794,7 +1765,7 @@ namespace JS {
|
|||
struct Builder {
|
||||
struct Input {
|
||||
RCTRequired<double> HEIGHT;
|
||||
std::optional<double> DEFAULT_BACKGROUND_COLOR;
|
||||
folly::Optional<double> DEFAULT_BACKGROUND_COLOR;
|
||||
};
|
||||
|
||||
/** Initialize with a set of values */
|
||||
|
@ -1927,71 +1898,66 @@ namespace facebook {
|
|||
} // namespace react
|
||||
} // 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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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
|
||||
{
|
||||
id const p = _v[@"title"];
|
||||
|
@ -2002,32 +1968,32 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
|
|||
id const p = _v[@"message"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2037,7 +2003,7 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt
|
|||
id const p = _v[@"userInterfaceStyle"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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"];
|
||||
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
|
||||
{
|
||||
id const p = _v[@"nativeEventPath"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2142,7 +2103,7 @@ inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedTurboModule::Ev
|
|||
id const p = _v[@"nativeEventPath"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2213,13 +2174,13 @@ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetr
|
|||
inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{
|
||||
NSMutableDictionary *d = [NSMutableDictionary new];
|
||||
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;
|
||||
d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil;
|
||||
d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil;
|
||||
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;
|
||||
d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
|
||||
d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
|
||||
return d;
|
||||
}) {}
|
||||
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();
|
||||
d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
|
||||
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;
|
||||
}) {}
|
||||
inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2246,7 +2207,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const
|
|||
id const p = _v[@"file"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2256,7 +2217,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const
|
|||
id const p = _v[@"methodName"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalBool(p);
|
||||
|
@ -2302,12 +2263,12 @@ inline id<NSObject> _Nullable JS::NativeExceptionsManager::ExceptionData::extraD
|
|||
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"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalBool(p);
|
||||
|
@ -2366,17 +2327,17 @@ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size()
|
|||
id const p = _v[@"size"];
|
||||
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"];
|
||||
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
|
||||
{
|
||||
id const p = _v[@"resizeMode"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalBool(p);
|
||||
|
@ -2469,7 +2430,7 @@ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Bui
|
|||
auto patch = i.patch.get();
|
||||
d[@"patch"] = @(patch);
|
||||
auto prerelease = i.prerelease.get();
|
||||
d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil;
|
||||
d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil;
|
||||
return d;
|
||||
}) {}
|
||||
inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
|
||||
|
@ -2514,7 +2475,7 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle(
|
|||
id const p = _v[@"alertTitle"];
|
||||
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"];
|
||||
return RCTBridgingToOptionalDouble(p);
|
||||
|
@ -2544,21 +2505,16 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInter
|
|||
id const p = _v[@"repeatInterval"];
|
||||
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"];
|
||||
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"];
|
||||
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(^{
|
||||
|
@ -2595,7 +2551,7 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i)
|
|||
auto HEIGHT = i.HEIGHT.get();
|
||||
d[@"HEIGHT"] = @(HEIGHT);
|
||||
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;
|
||||
}) {}
|
||||
inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{
|
Binary file not shown.
|
@ -4,22 +4,6 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libNewsmemory.a</string>
|
||||
|
@ -39,6 +23,22 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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[];
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
module RCTTypeSafety {
|
||||
umbrella header "RCTTypeSafety-umbrella.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
|
@ -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
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <optional>
|
||||
|
||||
#import <vector>
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <FBLazyVector/FBLazyVector.h>
|
||||
#import <folly/Optional.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
@ -36,22 +35,22 @@ NSArray *RCTConvertVecToArray(const ContainerT &vec)
|
|||
}
|
||||
|
||||
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>
|
||||
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);
|
||||
std::optional<bool> RCTBridgingToOptionalBool(id value);
|
||||
folly::Optional<bool> RCTBridgingToOptionalBool(id value);
|
||||
NSString *RCTBridgingToString(id value);
|
||||
NSString *RCTBridgingToOptionalString(id value);
|
||||
std::optional<double> RCTBridgingToOptionalDouble(id value);
|
||||
folly::Optional<double> RCTBridgingToOptionalDouble(id value);
|
||||
double RCTBridgingToDouble(id value);
|
||||
NSArray *RCTBridgingToArray(id value);
|
||||
|
||||
|
@ -65,10 +64,10 @@ facebook::react::LazyVector<T> RCTBridgingToVec(id value, T (^ctor)(id element))
|
|||
}
|
||||
|
||||
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) {
|
||||
return std::nullopt;
|
||||
return folly::none;
|
||||
} else {
|
||||
return RCTBridgingToVec(value, ctor);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
|
|
Binary file not shown.
|
@ -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[];
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
module RCTTypeSafety {
|
||||
umbrella header "RCTTypeSafety-umbrella.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
|
@ -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
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <optional>
|
||||
|
||||
#import <vector>
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <FBLazyVector/FBLazyVector.h>
|
||||
#import <folly/Optional.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
@ -36,22 +35,22 @@ NSArray *RCTConvertVecToArray(const ContainerT &vec)
|
|||
}
|
||||
|
||||
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>
|
||||
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);
|
||||
std::optional<bool> RCTBridgingToOptionalBool(id value);
|
||||
folly::Optional<bool> RCTBridgingToOptionalBool(id value);
|
||||
NSString *RCTBridgingToString(id value);
|
||||
NSString *RCTBridgingToOptionalString(id value);
|
||||
std::optional<double> RCTBridgingToOptionalDouble(id value);
|
||||
folly::Optional<double> RCTBridgingToOptionalDouble(id value);
|
||||
double RCTBridgingToDouble(id value);
|
||||
NSArray *RCTBridgingToArray(id value);
|
||||
|
||||
|
@ -65,10 +64,10 @@ facebook::react::LazyVector<T> RCTBridgingToVec(id value, T (^ctor)(id element))
|
|||
}
|
||||
|
||||
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) {
|
||||
return std::nullopt;
|
||||
return folly::none;
|
||||
} else {
|
||||
return RCTBridgingToVec(value, ctor);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
|
|
Binary file not shown.
|
@ -4,6 +4,22 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libRNCAsyncStorage.a</string>
|
||||
|
@ -23,22 +39,6 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -6,13 +6,29 @@
|
|||
<array>
|
||||
<dict>
|
||||
<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>
|
||||
<string>Headers</string>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>libreact-native-color-matrix-image-filters.a</string>
|
||||
<string>libRNColorMatrixImageFilters.a</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
|
@ -23,22 +39,6 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
|
@ -0,0 +1,8 @@
|
|||
#import <React/UIView+React.h>
|
||||
#import <React/RCTView.h>
|
||||
|
||||
@interface CMIFColorMatrixImageFilter : RCTView
|
||||
|
||||
@property (nonatomic, strong) NSArray<NSNumber *> *matrix;
|
||||
|
||||
@end
|
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
#import <React/UIView+React.h>
|
||||
#import <React/RCTView.h>
|
||||
|
||||
@interface CMIFColorMatrixImageFilter : RCTView
|
||||
|
||||
@property (nonatomic, strong) NSArray<NSNumber *> *matrix;
|
||||
|
||||
@end
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -4,22 +4,6 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libRNDefaultPreference.a</string>
|
||||
|
@ -39,6 +23,22 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -4,6 +4,22 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libRNFastImage.a</string>
|
||||
|
@ -23,22 +39,6 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -4,22 +4,6 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libRNGestureHandler.a</string>
|
||||
|
@ -39,6 +23,22 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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>
|
|
@ -0,0 +1,7 @@
|
|||
#import <React/RCTBridgeModule.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface RNOpenAppSettings : NSObject <RCTBridgeModule>
|
||||
|
||||
@end
|
||||
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
#import <React/RCTBridgeModule.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface RNOpenAppSettings : NSObject <RCTBridgeModule>
|
||||
|
||||
@end
|
||||
|
Binary file not shown.
|
@ -4,6 +4,22 @@
|
|||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<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>
|
||||
<key>BinaryPath</key>
|
||||
<string>libRNReanimated.a</string>
|
||||
|
@ -23,22 +39,6 @@
|
|||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</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>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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 ®istrationId) 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
|
|
@ -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 ®istrationId) = 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
|
|
@ -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
|
|
@ -1,6 +1,7 @@
|
|||
#import <RNReanimated/REATransition.h>
|
||||
#import <React/RCTConvert.h>
|
||||
|
||||
#import "REATransition.h"
|
||||
|
||||
@interface RCTConvert (REATransition)
|
||||
|
||||
+ (REATransitionType)REATransitionType:(id)json;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REATransition.h>
|
||||
#import "REATransition.h"
|
||||
|
||||
@interface REATransitionGroup : REATransition
|
||||
@property (nonatomic) BOOL sequence;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REAAlwaysNode : REANode <REAFinalNode>
|
||||
@end
|
||||
|
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REABezierNode : REANode
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REABlockNode : REANode
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REACallFuncNode : REANode
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REAClockNode : REANode
|
||||
@property (nonatomic, readonly) BOOL isRunning;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REAConcatNode : REANode
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REACondNode : REANode
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface READebugNode : REANode
|
||||
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import <React/RCTEventDispatcher.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface REAEventDispatcher : RCTEventDispatcher
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,4 +1,5 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
#import <React/RCTEventDispatcher.h>
|
||||
|
||||
@interface REAEventNode : REANode
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REAFunctionNode : REANode
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
#import <RNReanimated/REANode.h>
|
||||
#import "REANode.h"
|
||||
|
||||
@interface REAJSCallNode : REANode
|
||||
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue