Filters

How do I pass Segment Anonymous ID in React Native when configuring Segment Export?

The Segment Anonymous ID can be passed with the React-Native plugin by following the methods below:

iOS (Inside didFinishLaunchingWithOptions):
RNBranch.setRequestMetadataKey("$segment_anonymous_id", "value")

Android (Before you initialize in your Application#onCreate or Deep Link Activity's #onCreate):
RNBranchModule.setRequestMetadata("$segment_anonymous_id", "value");