react-native-analytics-segment-io icon indicating copy to clipboard operation
react-native-analytics-segment-io copied to clipboard

Options support?

Open ponomarevv opened this issue 8 years ago • 1 comments

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.

ponomarevv avatar Jan 08 '18 19:01 ponomarevv

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

romainbriche avatar Jan 08 '18 20:01 romainbriche