Skip to content

Commit

Permalink
fix: module spec mis-match on Android (new Architecture) (#237)
Browse files Browse the repository at this point in the history
* fix different type specified from codegen specs

* fix type in impl
  • Loading branch information
alanleedev authored Apr 22, 2024
1 parent 03ce8c1 commit 16e1f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void addListener(String eventName) {
}

@Override
public void removeListeners(double count) {
public void removeListeners(int count) {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReactModuleWithSpec;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;

public abstract class NativeClipboardModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule {
public abstract class NativeClipboardModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
public NativeClipboardModuleSpec(ReactApplicationContext reactContext) {
super(reactContext);
}
Expand Down Expand Up @@ -92,5 +91,5 @@ public NativeClipboardModuleSpec(ReactApplicationContext reactContext) {

@ReactMethod
@DoNotStrip
public abstract void removeListeners(double count);
public abstract void removeListeners(int count);
}

0 comments on commit 16e1f15

Please sign in to comment.