react-native-admob / admob

Admob for React Native with powerful hooks and components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RewardedAd] `loadOnMounted: false` performance issue.

JeffGuKang opened this issue · comments

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

Same issue on android.

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.