Guideline 5.1.2 - Legal- App Tracking Transparency to request the user's permission code example
Example: Guideline 5.1.2 - Legal- App Tracking Transparency to request the user's permission
import { requestTrackingPermission } from 'react-native-tracking-transparency';
const trackingStatus = await requestTrackingPermission();
if (trackingStatus === 'authorized' || trackingStatus === 'unavailable') {
// enable tracking features
}