1.2.3 • Published 5 months ago

react-native-ads-package v1.2.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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}
  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-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.

1.2.3

5 months ago

1.2.2

7 months ago

1.2.1

8 months ago

1.2.0

12 months ago

1.1.9

12 months ago

1.1.8

1 year ago

1.1.10

12 months ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year 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