Facebook InStream Ads
Installation
1. Install Javascript packages
$ yarn add react-native-facebook-instream-ads
Link to your project
$ react-native link react-native-facebook-instream-ads
2. Downloading and linking the native Facebook SDK for iOS
Follow all the steps in the Getting Started Guide for Facebook SDK for iOS.
Usage
{ //Handle when Ads loaded } { //Handle when Ads had err } { return <View style=stylescontainer> <InStreamView style=//Optional.} placementId="your-placement-id" onAdDone= this onAdError= this /> </View> ); } const styles = StyleSheet;