File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed
packages/react-native-gesture-handler/apple Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ #if !TARGET_OS_OSX
2
+ #import < UIKit/UIKit.h>
3
+ #else
4
+ #import < React/RCTUIKit.h>
5
+ #endif
6
+
7
+ #import < React/RCTViewComponentView.h>
8
+
9
+ #import < react/renderer/components/rngesturehandler_codegen/EventEmitters.h>
10
+
11
+ using namespace facebook::react;
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ @interface RNGestureHandlerButtonWrapper : RCTViewComponentView
16
+
17
+ @end
18
+
19
+ NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
1
+ #import " RNGestureHandlerButtonWrapper.h"
2
+ #import " RNGestureHandlerButtonWrapperComponentDescriptor.h"
3
+ #import " RNGestureHandlerModule.h"
4
+
5
+ #import < React/RCTConversions.h>
6
+ #import < React/RCTFabricComponentsPlugins.h>
7
+
8
+ #import < react/renderer/components/rngesturehandler_codegen/EventEmitters.h>
9
+ #import < react/renderer/components/rngesturehandler_codegen/Props.h>
10
+ #import < react/renderer/components/rngesturehandler_codegen/RCTComponentViewHelpers.h>
11
+
12
+ #include < unordered_map>
13
+
14
+ @interface RNGestureHandlerButtonWrapper () <RCTRNGestureHandlerButtonWrapperViewProtocol>
15
+ @end
16
+
17
+ @implementation RNGestureHandlerButtonWrapper
18
+
19
+ #if TARGET_OS_OSX
20
+ + (BOOL )shouldBeRecycled
21
+ {
22
+ return NO ;
23
+ }
24
+ #endif
25
+
26
+ - (instancetype )initWithFrame : (CGRect)frame
27
+ {
28
+ if (self = [super initWithFrame: frame]) {
29
+ static const auto defaultProps = std::make_shared<const RNGestureHandlerButtonWrapperProps>();
30
+ _props = defaultProps;
31
+ }
32
+
33
+ return self;
34
+ }
35
+
36
+ #pragma mark - RCTComponentViewProtocol
37
+
38
+ + (ComponentDescriptorProvider)componentDescriptorProvider
39
+ {
40
+ return concreteComponentDescriptorProvider<RNGestureHandlerButtonWrapperComponentDescriptor>();
41
+ }
42
+
43
+ @end
44
+
45
+ Class <RCTComponentViewProtocol> RNGestureHandlerButtonWrapperCls (void )
46
+ {
47
+ return RNGestureHandlerButtonWrapper.class ;
48
+ }
You can’t perform that action at this time.
0 commit comments