Skip to content

badrey/react-native-android-advertising-id

 
 

Repository files navigation

react-native-android-advertising-id

Getting started

$ npm install react-native-android-advertising-id --save

Mostly automatic installation

$ react-native link react-native-android-advertising-id

Usage

import RNAdvertisingId from 'react-native-android-advertising-id';

// TODO: What to do with the module?
RNAdvertisingId.getAdvertisingId()
    .then(response => {
      this.setState({
        advertisingId: response.advertisingId,
        isLimitAdTrackingEnabled: response.isLimitAdTrackingEnabled,
      });
    })
    .catch(error => console.error(error));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 47.7%
  • JavaScript 32.3%
  • Ruby 12.8%
  • Objective-C 7.2%