#import #ifdef RCT_NEW_ARCH_ENABLED #import #endif // RCT_NEW_ARCH_ENABLED #import "RNSEnums.h" #ifdef RCT_NEW_ARCH_ENABLED namespace react = facebook::react; #endif // RCT_NEW_ARCH_ENABLED @interface RNSConvert : NSObject #ifdef RCT_NEW_ARCH_ENABLED + (UISemanticContentAttribute)UISemanticContentAttributeFromCppEquivalent: (react::RNSScreenStackHeaderConfigDirection)direction; + (UINavigationItemBackButtonDisplayMode)UINavigationItemBackButtonDisplayModeFromCppEquivalent: (react::RNSScreenStackHeaderConfigBackButtonDisplayMode)backButtonDisplayMode; + (RNSScreenStackPresentation)RNSScreenStackPresentationFromCppEquivalent: (react::RNSScreenStackPresentation)stackPresentation; + (RNSScreenStackAnimation)RNSScreenStackAnimationFromCppEquivalent:(react::RNSScreenStackAnimation)stackAnimation; + (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewTypeFromCppEquivalent: (react::RNSScreenStackHeaderSubviewType)subviewType; + (RNSScreenReplaceAnimation)RNSScreenReplaceAnimationFromCppEquivalent: (react::RNSScreenReplaceAnimation)replaceAnimation; + (RNSScreenSwipeDirection)RNSScreenSwipeDirectionFromCppEquivalent:(react::RNSScreenSwipeDirection)swipeDirection; + (NSArray *)detentFractionsArrayFromVector:(const std::vector &)detents; + (NSDictionary *)gestureResponseDistanceDictFromCppStruct: (const react::RNSScreenGestureResponseDistanceStruct &)gestureResponseDistance; #if !TARGET_OS_VISION + (UITextAutocapitalizationType)UITextAutocapitalizationTypeFromCppEquivalent: (react::RNSSearchBarAutoCapitalize)autoCapitalize; #endif + (RNSSearchBarPlacement)RNSScreenSearchBarPlacementFromCppEquivalent:(react::RNSSearchBarPlacement)placement; + (NSMutableArray *)arrayFromVector:(const std::vector &)vector; + (RNSBlurEffectStyle)RNSBlurEffectStyleFromCppEquivalent:(react::RNSScreenStackHeaderConfigBlurEffect)blurEffect; #endif // RCT_NEW_ARCH_ENABLED /// This method fails (by assertion) when `blurEffect == RNSBlurEffectStyleNone` or `blurEffect == /// RNSBlurEffectStyleSystemDefault` which have no counter parts in the UIKit types. + (UIBlurEffectStyle)tryConvertRNSBlurEffectStyleToUIBlurEffectStyle:(RNSBlurEffectStyle)blurEffect; @end