react-native-ad-id
v0.2.3
Published
A React Native module for accessing device advertising IDs with support for iOS and Android platforms.
Downloads
79
Readme
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