1 | #ifdef RCT_NEW_ARCH_ENABLED
|
2 | #import <react/renderer/components/rnscreens/Props.h>
|
3 | #import "RNSEnums.h"
|
4 |
|
5 | namespace react = facebook::react;
|
6 |
|
7 | @interface RNSConvert : NSObject
|
8 |
|
9 | + (UISemanticContentAttribute)UISemanticContentAttributeFromCppEquivalent:
|
10 | (react::RNSScreenStackHeaderConfigDirection)direction;
|
11 |
|
12 | + (UINavigationItemBackButtonDisplayMode)UINavigationItemBackButtonDisplayModeFromCppEquivalent:
|
13 | (react::RNSScreenStackHeaderConfigBackButtonDisplayMode)backButtonDisplayMode;
|
14 |
|
15 | + (RNSScreenStackPresentation)RNSScreenStackPresentationFromCppEquivalent:
|
16 | (react::RNSScreenStackPresentation)stackPresentation;
|
17 |
|
18 | + (RNSScreenStackAnimation)RNSScreenStackAnimationFromCppEquivalent:(react::RNSScreenStackAnimation)stackAnimation;
|
19 |
|
20 | + (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewTypeFromCppEquivalent:
|
21 | (react::RNSScreenStackHeaderSubviewType)subviewType;
|
22 |
|
23 | + (RNSScreenReplaceAnimation)RNSScreenReplaceAnimationFromCppEquivalent:
|
24 | (react::RNSScreenReplaceAnimation)replaceAnimation;
|
25 |
|
26 | + (RNSScreenSwipeDirection)RNSScreenSwipeDirectionFromCppEquivalent:(react::RNSScreenSwipeDirection)swipeDirection;
|
27 |
|
28 | + (RNSScreenDetentType)RNSScreenDetentTypeFromAllowedDetents:(react::RNSScreenSheetAllowedDetents)allowedDetents;
|
29 |
|
30 | + (RNSScreenDetentType)RNSScreenDetentTypeFromLargestUndimmedDetent:(react::RNSScreenSheetLargestUndimmedDetent)detent;
|
31 |
|
32 | + (NSDictionary *)gestureResponseDistanceDictFromCppStruct:
|
33 | (const react::RNSScreenGestureResponseDistanceStruct &)gestureResponseDistance;
|
34 |
|
35 | #if !TARGET_OS_VISION
|
36 | + (UITextAutocapitalizationType)UITextAutocapitalizationTypeFromCppEquivalent:
|
37 | (react::RNSSearchBarAutoCapitalize)autoCapitalize;
|
38 | #endif
|
39 |
|
40 | + (RNSSearchBarPlacement)RNSScreenSearchBarPlacementFromCppEquivalent:(react::RNSSearchBarPlacement)placement;
|
41 |
|
42 | @end
|
43 |
|
44 | #endif
|