react native ad pie
npm install react-native-ad-pie-
Run
cd ios && pod install && cd ..to install all the necessary CocoaPods dependencies. -
Open up the
AppDelegate.m || AppDelegate.mmfile, and add an import statement for the AdPie headers:#import <AdPieSDK/AdPieSDK.h>
-
Within your existing didFinishLaunchingWithOptions method, add the following to the top of the method:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Add me --- \/
[[AdPieSDK sharedInstance] initWithMediaId:@"***MediaId***"];
// Add me --- /\
// ...
}
import { showAdPieVideoAds } from 'react-native-ad-pie';
// ...
const showAds = () => {
showAdPieVideoAds({
slotId: 'slotId',
});
};See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library