mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-21 10:34:39 +08:00
Fix #2584
This commit is contained in:
@@ -94,6 +94,7 @@ RCT_EXPORT_METHOD(rewardedShow
|
||||
:
|
||||
(nonnull
|
||||
NSNumber *)requestId
|
||||
:(NSString *)adUnitId
|
||||
:(NSDictionary *)showOptions
|
||||
:(RCTPromiseResolveBlock) resolve
|
||||
:(RCTPromiseRejectBlock) reject
|
||||
|
||||
@@ -74,6 +74,6 @@ export default class RewardedAd extends MobileAd {
|
||||
} catch (e) {
|
||||
throw new Error(`firebase.admob() RewardedAd.show(*) ${e.message}.`);
|
||||
}
|
||||
return this._admob.native.rewardedShow(this._requestId, options);
|
||||
return this._admob.native.rewardedShow(this._requestId, this._adUnitId, options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user