react-native-facebook-audience-network
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

react-native-facebook-audience-network

Facebook Audience SDK integration for React Native, available on iOS and Android. Features native, interstitial and banner ads.

Example

Installation (Currently Android only)

npm install react-native-facebook-audience-network

Usage

import * as React from 'react';

import { StyleSheet, View } from 'react-native';
import { NativeSquareAd, NativeListAd } from 'react-native-facebook-audience-network';

export default function App() {
  return (
    <View style={styles.container}>
      <NativeSquareAd placementId="IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID" style={styles.box} />
      <NativeListAd placementId="IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID" style={styles.box} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
  },
  box: {
    width: "100%",
  //  height: 500,
  },
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i react-native-facebook-audience-network

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

78.1 kB

Total Files

38

Last publish

Collaborators

  • ajithab