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

[RewardedAd] loadOnMounted: false performance issue. #90

Closed
1 of 2 tasks
JeffGuKang opened this issue Jan 14, 2022 · 2 comments
Closed
1 of 2 tasks

[RewardedAd] loadOnMounted: false performance issue. #90

JeffGuKang opened this issue Jan 14, 2022 · 2 comments

Comments

@JeffGuKang
Copy link

JeffGuKang commented Jan 14, 2022

Description

Expected behavior

Load rewarded ad smoothly with loadOnMounted: true option when we create RewardedAd instance.
Very laggy in old iPhone. (Tested in 6s)

Actual behavior & steps to reproduce

Snack or minimal code example

The code causes performance issue.

  const rewardedAdRef = useRef(
    RewardedAd.createAd(AD_ID, {
      loadOnMounted: true,
      loadOnDismissed: true,
    }),
  )

It makes to solve the performance issue.

      loadOnMounted: false,

And I called load in useEffect.

Package versions

  • React Native: 0.66.3
  • React Native AdMob: 1.5.1,

Affected platforms

  • Android
  • iOS
@trizin
Copy link

trizin commented Apr 21, 2022

Same issue on android.

@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

3 participants