Skip to content

Commit 4a65530

Browse files
author
Niall Brennan
committed
add example
1 parent 30a8b1c commit 4a65530

File tree

1 file changed

+2
-0
lines changed
  • src/connections/sources/catalog/libraries/mobile/react-native

1 file changed

+2
-0
lines changed

src/connections/sources/catalog/libraries/mobile/react-native/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ import analytics from '@segment/analytics-react-native';
522522
analytics.setIDFA("123");
523523
```
524524

525+
To get the IDFA you can use an external package such as [react-native-idfa](https://www.npmjs.com/package/react-native-idfa).
526+
525527
### Using a custom anonymousID
526528

527529
You might want to use a custom `anonymousID` to better integrate with other systems in your deployment. The best way to do this is to override the default using the `options` parameter when you call `analytics.identify`, as in the example below.

0 commit comments

Comments
 (0)