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.
685
+
686
+
### How do I interact with the integrations object?
687
+
The integrations object is no longer part of the Segment events method signature. To access the integrations object and control what destinations the event reaches, you can use a Plugin:
688
+
689
+
```js
690
+
import {
691
+
EventType,
692
+
Plugin,
693
+
PluginType,
694
+
SegmentEvent,
695
+
} from'@segment/analytics-react-native';
696
+
697
+
exportclassModifyextendsPlugin {
698
+
type =PluginType.before;
699
+
700
+
asyncexecute(event:SegmentEvent) {
701
+
if (event.type==EventType.TrackEvent) {
702
+
let integrations =event.integrations;
703
+
if (integrations !==undefined) {
704
+
integrations['Appboy'] =false;
705
+
}
706
+
}
707
+
//console.log(event);
708
+
returnevent;
709
+
}
710
+
}
711
+
```
685
712
## Changelog
686
713
[View the Analytics React Native 2.0 changelog on GitHub](https://github.com/segmentio/analytics-react-native/releases){:target="_blank"}.
0 commit comments