react-native-ad-id
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

react-native-ad-id

A React Native module for accessing device advertising IDs with support for iOS and Android platforms.

Installation

npm install react-native-ad-id

It should autolink for android. You can then navigate to your iOS folder and do

pod install

Usage

import { getAdvertisingId } from 'react-native-ad-id'

// ...

try {
    const { advertisingId, isLimitAdTrackingEnabled } = await getAdvertisingId()
} catch (error) {
    console.log('Unable to get advertising Id', error)
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-ad-id

Weekly Downloads

3

Version

0.2.3

License

MIT

Unpacked Size

18.3 kB

Total Files

20

Last publish

Collaborators

  • dre4success