invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
625 stars 121 forks source link

Banner ad if not load at that time display grey strip #569

Closed pradhyumansinh9849 closed 1 week ago

pradhyumansinh9849 commented 1 month ago

What happened?

how can we know banner ad load or not with hooks ?

Platforms

Android, but have not tested behavior on iOS

React Native Info

System:
    OS: macOS 12.7.4
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
    Memory: 21.82 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.19.1 - /usr/local/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 6.14.13 - /usr/local/bin/npm
    Watchman: 2024.05.02.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2023.2 AI-232.10227.8.2321.11479570
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 17.0.10 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.3 => 0.71.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Are your using Typescript?

package.json

{
  "name": "IPODekho",
  "version": "1.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@gorhom/bottom-sheet": "^4.6.1",
    "@react-native-admob/admob": "^2.0.1",
    "@react-native-async-storage/async-storage": "^1.17.11",
    "@react-native-community/clipboard": "^1.5.1",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "^11.3.1",
    "@react-native-firebase/app": "^17.0.0",
    "@react-native-firebase/auth": "^17.3.0",
    "@react-native-firebase/firestore": "^17.3.0",
    "@react-native-firebase/messaging": "^17.3.0",
    "@react-native-google-signin/google-signin": "^9.0.2",
    "@react-navigation/bottom-tabs": "^6.5.5",
    "@react-navigation/drawer": "^6.6.0",
    "@react-navigation/material-bottom-tabs": "^6.2.13",
    "@react-navigation/material-top-tabs": "^6.6.0",
    "@react-navigation/native": "^6.1.4",
    "@react-navigation/native-stack": "^6.9.10",
    "@reduxjs/toolkit": "^1.9.2",
    "@shopify/flash-list": "^1.4.2",
    "@twotalltotems/react-native-otp-input": "^1.3.11",
    "accordion-collapse-react-native": "^1.1.1",
    "axios": "^1.3.3",
    "formik": "^2.2.9",
    "jetify": "^1.0.2",
    "lottie-react-native": "^6.0.0-rc.3",
    "moment": "^2.29.4",
    "native-base": "^3.4.28",
    "react": "18.2.0",
    "react-devtools": "^4.27.2",
    "react-native": "0.71.3",
    "react-native-big-list": "^1.6.1",
    "react-native-device-info": "^10.5.1",
    "react-native-dropdownalert": "^4.5.1",
    "react-native-extra-dimensions-android": "^1.2.5",
    "react-native-gesture-handler": "^2.9.0",
    "react-native-gifted-chat": "^1.1.1",
    "react-native-google-mobile-ads": "^13.0.2",
    "react-native-iap": "^12.13.1",
    "react-native-image-base64": "^0.1.4",
    "react-native-image-picker": "^5.1.0",
    "react-native-image-slider-box": "^2.0.7",
    "react-native-inappbrowser-reborn": "^3.7.0",
    "react-native-internet-connection-alert": "^0.1.9",
    "react-native-keyboard-avoiding-scroll-view": "^1.0.1",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-network-logger": "^1.16.1",
    "react-native-otp-textinput": "^1.0.0",
    "react-native-pager-view": "^6.1.4",
    "react-native-paper": "^5.2.0",
    "react-native-phone-number-input": "^2.1.0",
    "react-native-push-notification": "^8.1.1",
    "react-native-reanimated": "^2.14.4",
    "react-native-render-html": "^6.3.4",
    "react-native-responsive-fontsize": "^0.5.1",
    "react-native-safe-area-context": "^4.5.0",
    "react-native-safe-area-view": "^1.1.1",
    "react-native-scalable-image": "^1.1.0",
    "react-native-screens": "^3.20.0",
    "react-native-shimmer": "^0.6.0",
    "react-native-shimmer-placeholder": "^2.0.9",
    "react-native-snackbar": "^2.4.0",
    "react-native-splash-screen": "^3.3.0",
    "react-native-sqlite-storage": "^6.0.1",
    "react-native-store-version": "^1.4.1",
    "react-native-svg": "^13.8.0",
    "react-native-svg-transformer": "^1.0.0",
    "react-native-svg-uri": "^1.2.3",
    "react-native-swiper": "^1.6.0",
    "react-native-tab-view": "^3.5.0",
    "react-native-vector-icons": "^9.2.0",
    "react-native-version-check": "^3.4.7",
    "react-navigation": "^4.4.4",
    "yup": "^1.0.2"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/preset-env": "^7.14.0",
    "@babel/runtime": "^7.20.13",
    "@react-native-community/eslint-config": "^3.0.0",
    "@tsconfig/react-native": "^2.0.2",
    "@types/jest": "^29.4.0",
    "@types/react": "^18.0.28",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.4.3",
    "eslint": "^8.34.0",
    "jest": "^29.4.3",
    "metro-react-native-babel-preset": "0.75.0",
    "prettier": "^2.8.4",
    "react-native-flipper": "^0.182.0",
    "react-test-renderer": "18.2.0",
    "typescript": "4.9.5"
  },
  "jest": {
    "preset": "react-native"
  }
}

app.json

{
  "name": "IPODekho",
  "displayName": "IPODekho",
  "plugins": ["@react-native-google-signin/google-signin"],
  "android": {
    "googleServicesFile": "./google-services.json"
  },
  "react-native-google-mobile-ads": {
    "android_app_id": "ca-app-pub-937410548516**47",
    "ios_app_id": "ca-app-pub-937410548516**8783734"
  }
}

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

github-actions[bot] commented 3 weeks ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.