- You can render your wrapped component from previous step and pass it adsManager of your choice.
- By default the native ads manager will refresh its ads periodically.
- It’s a higher order component that passes nativeAd via props to a wrapped component allowing you to actually render an ad!
- Provides a mechanism to fetch a set of ads and then use them within your application.
- The controls which media from the native ads are cached before being displayed.
react-native-fbads – Facebook Audience SDK integration for React Native
@grabbou: Just open sourced Facebook Audience SDK integration for React Native, check it out ->
Facebook Audience SDK integration for React Native, available on iOS and Android.
The react-native-fbads has been automatically linked for you, the next step will be downloading and linking the native Facebook SDK for both platforms.
Make sure you have the latest Xcode installed. Open the .xcodeproj in Xcode found in the ios subfolder from your project’s root directory. Now, follow all the steps in the Getting Started Guide for Facebook SDK for iOS. Along with FBSDKCoreKit.framework, don’t forget to import FBAudienceNetwork.framework.
, write it down and continue to next section.
If you are using
you can follow their installation instructions. Otherwise, please follow official Getting Started Guide for Facebook SDK.
Native Ad is a type of an ad that matches the form and function of your React Native interface.
that is responsible for caching and fetching ads as you request them.
The constructor accepts two parameters:
via props to a wrapped component allowing you to actually render an ad!
object, please check flowtype definitions here
of your choice.
Provides a mechanism to fetch a set of ads and then use them within your application. The native ads manager supports giving out as many ads as needed by cloning over the set of ads it got back from the server which can be useful for feed scenarios. It’s a wrapper for
By default the native ads manager will refresh its ads periodically. This does not mean that any ads which are shown in the application’s UI will be refreshed but simply that requesting next native ads to render may return new ads at different times. This method disables that functionality.
Sets the native ads manager caching policy. This controls which media from the native ads are cached before being displayed. The default is to not block on caching.
Note: This method is a noop on Android
Because of the way example project is set up (custom packager arguments), you’ll have to start it explicitly before any other command
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.