Skip to content

fix(native-ad): align paid event currency payload type - #879

Open
sanjaysargam wants to merge 1 commit into
invertase:mainfrom
sanjaysargam:currency
Open

fix(native-ad): align paid event currency payload type#879
sanjaysargam wants to merge 1 commit into
invertase:mainfrom
sanjaysargam:currency

Conversation

@sanjaysargam

Copy link
Copy Markdown

Description

NativeAd.addAdEventListener(NativeAdEventType.PAID, ...) exposes a payload type
with currencyCode, but both native implementations emit the JavaScript payload
key as currency.

TypeScript accepts payload.currencyCode, but that property is undefined at
runtime. The actual value is available at payload.currency.

Related issues

Fixes #877

Release Summary

Checklist

  • I read the Contributor Guide
    and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
  • My change includes tests;
    • e2e tests added or updated in __tests__e2e__
    • jest tests added or updated in __tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan


Think react-native-google-mobile-ads is great? Please consider supporting the project with any of the below:

  • 👉 Star this repo on GitHub ⭐️
  • 👉 Follow Invertase on Twitter

@CLAassistant

CLAassistant commented Aug 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛] NativeAd paid event type exposes currencyCode, but the bridge sends currency

2 participants