Skip to content

Commit d0291d4

Browse files
committed
Remove some gates
1 parent 1362d4f commit d0291d4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

packages/react-native-gesture-handler/apple/RNGestureHandlerModule.mm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#import <ReactCommon/CallInvoker.h>
1515
#import <ReactCommon/RCTTurboModule.h>
1616
#import <ReactCommon/RCTTurboModuleWithJSIBindings.h>
17+
#endif // RCT_NEW_ARCH_ENABLED
1718

1819
#import "RuntimeDecorator.h"
19-
#endif // RCT_NEW_ARCH_ENABLED
2020

2121
#import "RNGestureHandler.h"
2222
#import "RNGestureHandlerDirection.h"
@@ -26,10 +26,11 @@
2626
#import "RNGestureHandlerButton.h"
2727

2828
#import <React/RCTJSThread.h>
29+
#import <jsi/jsi.h>
2930

30-
#ifdef RCT_NEW_ARCH_ENABLED
3131
using namespace gesturehandler;
3232
using namespace facebook;
33+
#ifdef RCT_NEW_ARCH_ENABLED
3334
using namespace react;
3435
#endif // RCT_NEW_ARCH_ENABLED
3536

@@ -51,7 +52,7 @@ @implementation RNGestureHandlerModule {
5152
// Oparations called after views have been updated.
5253
NSMutableArray<GestureHandlerOperation> *_operations;
5354

54-
jsi::Runtime *_rnRuntime;
55+
facebook::jsi::Runtime *_rnRuntime;
5556
bool _uiRuntimeDecorated;
5657
}
5758

@@ -128,7 +129,6 @@ - (void)setBridge:(RCTBridge *)bridge
128129
}
129130
#endif // RCT_NEW_ARCH_ENABLED
130131

131-
#ifdef RCT_NEW_ARCH_ENABLED
132132
- (bool)installUIRuntimeBindings
133133
{
134134
__weak RNGestureHandlerModule *weakSelf = self;
@@ -140,7 +140,6 @@ - (bool)installUIRuntimeBindings
140140
}
141141
});
142142
}
143-
#endif // RCT_NEW_ARCH_ENABLED
144143

145144
RCT_EXPORT_METHOD(createGestureHandler
146145
: (nonnull NSString *)handlerName handlerTag

0 commit comments

Comments
 (0)