0.2.1 • Published 4 years ago
react-native-myadbooker v0.2.1
React Native MyAdbooker
Monetize mobile apps with targeted, in-app advertising using the MyAdbooker platform
Installation
Requires react-native-webview
to be installed.
npm install --save react-native-myadbooker
Quick Start
Install the required packages first
npm install --save react-native-myadbooker react-native-webview
The library exposes the AdView
component which is responsible for showing an advertisement.
import React from 'react'
import { AdView } from 'react-native-myadbooker'
import { StyleSheet } from 'react-native'
export default function App() {
return (
<AdView conditions={{ conditionKey: "conditionValue"}} environment='qa' id="1" slot="slot1" />
)
}
const styles = StyleSheet.create({
container: {
flex: 1
}
})