Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

After rewardedAd.load(), the ad screen or Alert can't display normally. #96

Closed
1 of 2 tasks
StanLee12 opened this issue Feb 14, 2022 · 1 comment
Closed
1 of 2 tasks

Comments

@StanLee12
Copy link

Description

When i set loadOnMounted and loadOnDismissed is false, i use rewarded.load() instead of it, But when rewardedAd.laod() return the Promise, The ad screen or Alert just display for a while. About several millisecond.

Expected behavior

I excepted after rewardedAd.load(), the ad screen or alert can display normally.

Actual behavior & steps to reproduce

Snack or minimal code example

try {
        this.setState({ isLoading: true });
        this.adManager.setIsRewarded(false);
        await this.adManager.loadRewardedAd();
        this.adManager.showRewardedAd();
    } catch (adError) {
        Alert.alert(adError.userInfo.message);
    } finally {
        this.setState({ isLoading: false });
    }

Package versions

package version 2.0.0

  • React Native: 0.61.5
  • React Native AdMob: 2.0.0
  • Google Mobile Ads SDK(if specified):
  • Xcode: 12.5
  • Java & Gradle:

Affected platforms

  • Android
  • iOS
@wjaykim
Copy link
Collaborator

wjaykim commented Apr 27, 2022

This library is deprecated. Use react-native-google-mobile-ads instead.

Please migrate to the new library if you were using this library as this library is no longer maintained. Now more stronger features are available in the new library.

@wjaykim wjaykim closed this as completed Apr 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants