Skip to content

[🐛] NativeAsset assetType={NativeAssetType.CTA} does not handle click events #724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
foya562 opened this issue Mar 22, 2025 · 6 comments
Open
1 task
Labels
help wanted Extra attention is needed

Comments

@foya562
Copy link

foya562 commented Mar 22, 2025

What happened?

I am working on Version 14.9.1 and everything works nicely.
But

          <NativeAsset assetType={NativeAssetType.CTA}>
            <Text style={styles.callToAction}>{nativeAd.callToAction}</Text>
          </NativeAsset>

This does not click at all . Other components like headline , icon, handle clicks nicely and open the URl. But this assetType={NativeAssetType.CTA} does not do anything .

P.s - I have also tried to change cta to callToAction in {nativeAd.callToAction}

Please help !

Platforms

Android, but have not tested behavior on iOS

React Native Info

react-native version is 0.76.7

Are your using Typescript?

  • My project is using Typescript

package.json

{
  "name": "newApp",
  "version": "1.0.0",
  "main": "expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@expo/vector-icons": "^14.0.2",
    "@react-native-async-storage/async-storage": "1.23.1",
    "@react-native-community/netinfo": "11.4.1",
    "@react-native-firebase/analytics": "^21.6.1",
    "@react-native-firebase/app": "^21.6.1",
    "@react-native-firebase/messaging": "^21.6.1",
    "@react-navigation/bottom-tabs": "^6.6.1",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/native-stack": "^6.10.1",
    "@supabase/supabase-js": "^2.45.4",
    "expo": "~52.0.38",
    "expo-build-properties": "~0.13.2",
    "expo-clipboard": "~7.0.1",
    "expo-constants": "~17.0.8",
    "expo-dev-client": "~5.0.14",
    "expo-haptics": "~14.0.1",
    "expo-image": "~2.0.6",
    "expo-linear-gradient": "~14.0.2",
    "expo-navigation-bar": "~4.0.8",
    "expo-network": "~7.0.5",
    "expo-splash-screen": "~0.29.22",
    "expo-status-bar": "~2.0.1",
    "hashids": "^2.3.0",
    "lodash": "^4.17.21",
    "lottie-react-native": "7.1.0",
    "react": "18.3.1",
    "react-native": "0.76.7",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-responsive-fontsize": "^0.5.1",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~4.4.0",
    "react-native-shimmer-placeholder": "^2.0.9",
    "react-native-toast-message": "^2.2.0",
    "react-native-webview": "13.12.5",
    "react-native-youtube-iframe": "^2.3.0",
    "reactotron-react-native": "^5.1.11",
    "react-native-google-mobile-ads": "14.9.1"
  },
  "devDependencies": {
    "@babel/core": "^7.26.10",
    "expo-atlas": "^0.3.0"
  },
  "private": true
}

app.json

Not needed

ios/Podfile

android/build.gradle

android/app/build.gradle

android/settings.gradle

AndroidManifest.xml

@foya562 foya562 added the help wanted Extra attention is needed label Mar 22, 2025
@foya562
Copy link
Author

foya562 commented Mar 26, 2025

Help

@ulisesmac
Copy link

ulisesmac commented Mar 26, 2025

Same issue here, on both platforms

@foya562
Copy link
Author

foya562 commented Mar 27, 2025

Dame issue here, on both platforms

Which version are you using ?

@ulisesmac
Copy link

Dame issue here, on both platforms

Which version are you using ?

RN 0.78, and tested with 15.0 and 14.9, it always happen

@foya562
Copy link
Author

foya562 commented Apr 1, 2025

Somebody from the team , please help

@foya562
Copy link
Author

foya562 commented Apr 8, 2025

.......anyone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants