# AdCel SDK React Native Plugin

Please see the Quick Start guide here:

[React Native Quick Start](http://adcel.com)


1. Installation:

npm i ./path-to/react-native-adcel -S
rnpm link

2. Open XCode project of your app and find Info.plist file. Add the key NSAppTransportSecurity with the subkey NSAllowsArbitraryLoads with the value of "YES"

3. Open XCode project of your app and find RNAdCelManager.xcodeproj in the Libraries group. Go to AdCelSDK->SDK-iOS->AdCelResources group folder inside it. Every bundle and every single file in this folder and subfolders should be added to your main project`s settings->Build Phases->Copy Bundle Resources.

4. Add libz and libsqlite3 to your main project`s settings->Build Phases->Link Binary With Libraries

5. Use the Test example from the Example folder of this plugin to show banners and interstitials. This test example can only show ads with bundle_id = co.adcel.demo. Don`t forget to setup the correct bundle id in your xcode project.