react-native-ads-package
v1.2.1
Published
A custom component for displaying Clever Advertising ads in react-native apps
Downloads
75
Readme
react-native-ads-package
A custom component for displaying Clever Advertising ads in react-native apps
Installation
npm install react-native-ads-package
Usage
//import the component in the beginning of your file
import CleverAdsWidget from "react-native-ads-package/CleverAdsWidget";
//add the component to the widget tree
<CleverAdsWidget scriptId={'INSERT YOUR SCRIPT ID HERE'} width={300} height={250} />
Missing dependencies
If you run into issues with missing dependencies you might need to link them using the following commands:
react-native link react-native-device-info
react-native link react-native-webview
react-native link @react-native-async-storage/async-storage
If the errors persist, you can add them to your project directly:
npm install --save react-native-device-info
npm install --save react-native-webview
npm install --save @react-native-async-storage/async-storage
Building for iOS
If you run into issues with iOS dependencies, after building for iOS, run 'pod install' from the iOS folder.