Skip to content

Commit

Permalink
Update AdSupportIOS.js
Browse files Browse the repository at this point in the history
Summary:
Looks like RN unlinked the RCTAdSupport module from the React project because it triggers some automatic detection from Apple. (from this thread #1303). So this includes the instructions to manually add RCTAdSupport files from node_modules.

See: #12623
Closes #12657

Differential Revision: D4962321

Pulled By: hramos

fbshipit-source-id: ed9aed3b4c16e72d1f9557f5c16fcdadfdd743ea
  • Loading branch information
kwef authored and facebook-github-bot committed Apr 28, 2017
1 parent 992e37c commit b12677b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Libraries/AdSupport/AdSupportIOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@

var AdSupport = require('NativeModules').AdSupport;

/**
* `AdSupport` provides access to the "advertising identifier". If you link this library
* in your project, you may need to justify your use for this identifier when submitting
* your application to the App Store.
*
* In order to use `AdSupport` in your project, you must link the `RCTAdSupport` library.
* In Xcode, you can manually add the `RCTAdSupport.m` and `RCTAdSupport.h` files from
* `node_modules/react-native/Libraries/AdSupport/` to the `Libraries/React/Base/` folder
* of your current project.
*
* You can refer to [Linking](docs/linking-libraries-ios.html) for help.
*
*/

module.exports = {
getAdvertisingId: function(onSuccess: Function, onFailure: Function) {
AdSupport.getAdvertisingId(onSuccess, onFailure);
Expand Down

0 comments on commit b12677b

Please sign in to comment.