react-native-analytics-segment-io
react-native-analytics-segment-io copied to clipboard
Options support?
Almost every method from original library (identify, track etc) has options dictionary as last argument.
https://github.com/segmentio/analytics-ios/blob/master/Analytics/Classes/SEGAnalytics.m
For example, this can be used to set session id for Amplitude https://segment.com/docs/destinations/amplitude/#sessionid
Unfortunately, did not find any way to do this with your module.
The Segment Android SDK passes context and integrations as 2 separate entities whereas the iOS SDK group them in a single dictionary.
Would an interface similar to this work for you 0498ed? Note: this commit is a draft not tested where only iOS has been implemented