A React Native module for accessing device advertising IDs with support for iOS and Android platforms.
npm install react-native-ad-idA React Native module for accessing device advertising IDs with support for iOS and Android platforms.
``sh`
npm install react-native-ad-id
It should autolink for android. You can then navigate to your iOS folder and do
`sh`
pod install
`js
import { getAdvertisingId } from 'react-native-ad-id'
// ...
try {
const { advertisingId, isLimitAdTrackingEnabled } = await getAdvertisingId()
} catch (error) {
console.log('Unable to get advertising Id', error)
}
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library