You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instanceId was introduced in [V 2.10.1](https://github.com/segmentio/analytics-react-native/releases/tag/%40segment%2Fanalytics-react-native-v2.10.1) and correlates events to a particular instance of the client in a scenario when you might have multiple instances on a single app.
615
+
616
+
### How do I interact with the integrations object?
617
+
The integrations object is no longer part of the Segment events method signature. To access the integrations object, in order to control what destinations the event reaches, you can instead use a Plugin:
618
+
619
+
```js
620
+
import {
621
+
EventType,
622
+
Plugin,
623
+
PluginType,
624
+
SegmentEvent,
625
+
} from'@segment/analytics-react-native';
626
+
627
+
exportclassModifyextendsPlugin {
628
+
type =PluginType.before;
629
+
630
+
asyncexecute(event:SegmentEvent) {
631
+
if (event.type==EventType.TrackEvent) {
632
+
let integrations =event.integrations;
633
+
if (integrations !==undefined) {
634
+
integrations['Appboy'] =false;
635
+
}
636
+
}
637
+
//console.log(event);
638
+
returnevent;
639
+
}
640
+
}
641
+
```
615
642
## Changelog
616
643
[View the Analytics React Native 2.0 changelog on GitHub](https://github.com/segmentio/analytics-react-native/releases){:target="_blank"}.
0 commit comments