Skip to content

Commit

Permalink
Merge pull request #301 from heath-clink/add-missing-listener-methods
Browse files Browse the repository at this point in the history
add missing listener methods (new architecture)
  • Loading branch information
RonRadtke authored Oct 20, 2023
2 parents 42f4cc9 + 16fb9d8 commit b9c8f9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void addListener(String eventName) {
}

@ReactMethod
public void removeListeners(Integer count) {
public void removeListeners(double count) {

}

Expand Down
4 changes: 4 additions & 0 deletions codegenSpecs/NativeBlobUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export interface Spec extends TurboModule {
+getSDCardApplicationDir: () => Promise<string>;
+scanFile: (pairs: Array<any>, callback: (value: Array<any>) => void) => void;
+writeToMediaFile: (fileUri: string, path: string, transformFile: boolean) => Promise<string>;

// RCTEventEmitter
+addListener: (eventName: string) => void;
+removeListeners: (count: number) => void;
}

export default (TurboModuleRegistry.get<Spec>('ReactNativeBlobUtil'): ?Spec);
Expand Down

0 comments on commit b9c8f9c

Please sign in to comment.