ammarahm-ed / react-native-admob-native-ads

A simple and robust library for creating & displaying Admob Native Advanced Ads in your React Native App using Native Views.
https://ammarahm-ed.github.io/react-native-admob-native-ads/docs/introduction/
MIT License
405 stars 135 forks source link

Panresponder gestures are not working #333

Closed nannish closed 1 month ago

nannish commented 1 year ago

I have a panresponder where i use interpolate to animate the view with multiple items. in between the items, i am loading the native ad using react-native-admob-native-ads package. ads are loading but my gestures are no longer working once the NativeAdView is loaded. Kindly suggest if there is any work around for this.

IB3N commented 1 year ago

I'm having a similar issue too. Given a normal <View /> component, the solution might be to set pointerEvents to "box-none" like so <NativeAdView pointerEvents="box-none" ... />. box-none means that the parent component does not handle touch events but it's children can, like the <CallToActionView /> would need to do.

I don't think this is available. @ammarahm-ed - might there be a way to add the pointerEvents prop to the NativeAdView?

See StackOverflow - Is there a way in which I can ignore touch events on Text in React Native? for more info on the issues.

rdjuric commented 9 months ago

Maybe extending ReactViewGroup instead of LinearLayout in the NativeAdView could help with this? @ammarahm-ed

ammarahm-ed commented 1 month ago

Provide a reproducible example.

kasp416h commented 3 weeks ago

Was this solved? I am having a similar issue with react-native-deck-swiper, where on android i am unable to swipe the NativeAdView with deck swiper. But works on iOS.

kasp416h commented 3 weeks ago

Maybe extending ReactViewGroup instead of LinearLayout in the NativeAdView could help with this? @ammarahm-ed

did you try ReactViewGroup?