Skip to content

Commit 160b207

Browse files
authored
fix: restore ReactMethod annotation (#2722)
## Description Restore `@ReactMethod` annotation so it works on paper.
1 parent 14e7ac0 commit 160b207

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

android/paper/src/main/java/com/swmansion/gesturehandler/NativeRNGestureHandlerModuleSpec.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.facebook.react.bridge.ReadableMap;
88
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
99
import javax.annotation.Nonnull;
10+
import com.facebook.react.bridge.ReactMethod;
1011

1112
public abstract class NativeRNGestureHandlerModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
1213
public static final String NAME = "RNGestureHandlerModule";
@@ -21,26 +22,34 @@ public NativeRNGestureHandlerModuleSpec(ReactApplicationContext reactContext) {
2122
}
2223

2324
@DoNotStrip
25+
@ReactMethod
2426
public abstract void handleSetJSResponder(double tag, boolean blockNativeResponder);
2527

2628
@DoNotStrip
29+
@ReactMethod
2730
public abstract void handleClearJSResponder();
2831

2932
@DoNotStrip
33+
@ReactMethod
3034
public abstract void createGestureHandler(String handlerName, double handlerTag, ReadableMap config);
3135

3236
@DoNotStrip
37+
@ReactMethod
3338
public abstract void attachGestureHandler(double handlerTag, double newView, double actionType);
3439

3540
@DoNotStrip
41+
@ReactMethod
3642
public abstract void updateGestureHandler(double handlerTag, ReadableMap newConfig);
3743

3844
@DoNotStrip
45+
@ReactMethod
3946
public abstract void dropGestureHandler(double handlerTag);
4047

4148
@DoNotStrip
49+
@ReactMethod
4250
public abstract boolean install();
4351

4452
@DoNotStrip
53+
@ReactMethod
4554
public abstract void flushOperations();
4655
}

0 commit comments

Comments
 (0)