react-native-admob-native-ads icon indicating copy to clipboard operation
react-native-admob-native-ads copied to clipboard

Panresponder gestures are not working

Open nannish opened this issue 1 year ago • 2 comments

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.

nannish avatar Apr 08 '23 11:04 nannish

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.

IB3N avatar Apr 21 '23 09:04 IB3N

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

rdjuric avatar Jan 22 '24 16:01 rdjuric