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"
2626#import " RNGestureHandlerButton.h"
2727
2828#import < React/RCTJSThread.h>
29+ #import < jsi/jsi.h>
2930
30- #ifdef RCT_NEW_ARCH_ENABLED
3131using namespace gesturehandler ;
3232using namespace facebook ;
33+ #ifdef RCT_NEW_ARCH_ENABLED
3334using 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
145144RCT_EXPORT_METHOD (createGestureHandler
146145 : (nonnull NSString *)handlerName handlerTag
0 commit comments