Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NativeReactNativeCmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export interface Spec extends TurboModule {
options?: SPBuildOptions,
): void;
getUserData(): Promise<SPUserData>;
loadMessage(params?: LoadMessageParams): void;
loadMessage(params: LoadMessageParams): void;
clearLocalData(): void;
loadGDPRPrivacyManager(pmId: string): void;
loadUSNatPrivacyManager(pmId: string): void;
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class SPConsentManager implements Spec {
return ReactNativeCmp.getUserData();
}

loadMessage(params?: LoadMessageParams) {
loadMessage(params: LoadMessageParams = { authId: undefined }) {
ReactNativeCmp.loadMessage(params);
}
Copy link
Member

@andresilveirah andresilveirah Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nevazhnovu I think we can simplify this using default params:

loadMessage(params: LoadMessageParams = { authId: undefined }) {
  ReactNativeCmp.loadMessage(params);
}

Can you give it a try? Check if users can still call loadMessage() (without params).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andresilveirah it works! Just have pushed a fix


Expand Down
Loading