Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattapperson/react-native-facebook-native-ads
https://github.com/mattapperson/react-native-facebook-native-ads
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattapperson/react-native-facebook-native-ads
- Owner: mattapperson
- Created: 2016-09-22T17:27:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-26T22:10:30.000Z (over 8 years ago)
- Last Synced: 2024-11-07T16:18:38.401Z (about 2 months ago)
- Language: Objective-C
- Size: 29.7 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-facebook-native-ads
## Getting started
First off, this is iOS only for now. PRs are welcome to add Android support`$ npm install react-native-facebook-native-ads --save`
Then download the Facebook SDK and place the `FBAudienceNetwork.framework` file in your projects `/ios` directory.
Add then add the framework to your apps frameworks in xcode.
You could alternatively install the FB SDK using cocoapods...### Mostly automatic installation
`$ react-native link react-native-facebook-native-ads`
### Manual installation
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-facebook-native-ads` and add `RNFacebookNativeAds.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNFacebookNativeAds.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<## Usage
```javascript
import RNFacebookNativeAds from 'react-native-facebook-native-ads';class ExampleNativeAd extends Component {
render() {
return (
);
}
}
```