1.2.3 • Published 10 months ago
react-native-ads-package v1.2.3
react-native-ads-package
A custom component for displaying Clever Advertising ads in react-native apps
Installation
npm install react-native-ads-packageUsage
//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}
verbose
onError={() => {
console.log("Error do something");
}}
alternative={() => {
console.log("Alternative do sometinhg");
}}
/>;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-storageIf 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-storageBuilding for iOS
If you run into issues with iOS dependencies, after building for iOS, run 'pod install' from the iOS folder.
1.2.3
10 months ago
1.2.2
12 months ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.9
1 year ago
1.1.8
1 year ago
1.1.10
1 year ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.1.0
2 years ago