Skip to content

Commit

Permalink
fix: restore ReactMethod annotation (#2722)
Browse files Browse the repository at this point in the history
## Description

Restore `@ReactMethod` annotation so it works on paper.
  • Loading branch information
WoLewicki authored Jan 11, 2024
1 parent 14e7ac0 commit 160b207
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import javax.annotation.Nonnull;
import com.facebook.react.bridge.ReactMethod;

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

@DoNotStrip
@ReactMethod
public abstract void handleSetJSResponder(double tag, boolean blockNativeResponder);

@DoNotStrip
@ReactMethod
public abstract void handleClearJSResponder();

@DoNotStrip
@ReactMethod
public abstract void createGestureHandler(String handlerName, double handlerTag, ReadableMap config);

@DoNotStrip
@ReactMethod
public abstract void attachGestureHandler(double handlerTag, double newView, double actionType);

@DoNotStrip
@ReactMethod
public abstract void updateGestureHandler(double handlerTag, ReadableMap newConfig);

@DoNotStrip
@ReactMethod
public abstract void dropGestureHandler(double handlerTag);

@DoNotStrip
@ReactMethod
public abstract boolean install();

@DoNotStrip
@ReactMethod
public abstract void flushOperations();
}

0 comments on commit 160b207

Please sign in to comment.