Skip to content

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

License

Notifications You must be signed in to change notification settings

ChipperCash/react-native-ad-id

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published