Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Can I use react-native app's AppDelegate in ios module?

$
0
0

I am writing iOS SDK wrapper for react native. And the SDK guide gave me the code :

-(void)didClickOpenOfferwallBtn 
{
    [AdPopcornOfferwall openOfferWallWithViewController:self delegate:self userDataDictionaryForFilter:nil];
    [AdPopcornOfferwall shared].delegate = self;
}

So I think if I can get my react-native App's AppDelegate, (like Androids's getReactApplicationContext or getCurrentActivity functions) I can run the code inside of react-native ios module.

Are there some methods to get my current app's AppDelegate in React Native module?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>