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
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/mobile/react-native/index.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -471,10 +471,10 @@ To set up automatic screen tracking while using [React Native Navigation](https:
471
471
});
472
472
```
473
473
474
-
## Plugin Architecture
474
+
## Plugin architecture
475
475
Segment's plugin architecture lets you modify and augment how the events are processed before they're uploaded to the Segment API. To customize what happens after an event is created, you can create and place various plugins along the processing pipeline that an event goes through. This pipeline is referred to as a timeline.
@@ -487,12 +487,12 @@ Segment's plugin architecture lets you modify and augment how the events are pro
487
487
> info ""
488
488
> Plugins can have their own native code, such as the iOS-only [`IdfaPlugin`](https://github.com/segmentio/analytics-react-native/blob/829fc80bc8c4f59fa99dadd25083efa422d577f0/packages/plugins/plugin-idfa/README.md){:target="_blank"}, or wrap an underlying library, such as the [`FirebasePlugin`](https://www.npmjs.com/package/@segment/analytics-react-native-plugin-firebase){:target="_blank"} which uses `react-native-firebase`.
489
489
490
-
### Destination Plugins
490
+
### Destination plugins
491
491
Segment provides a `DestinationPlugin`. You can add additional destination plugins and upload events and data to them.
492
492
493
493
If you don't want the Segment destination plugin, set `autoAddSegmentDestination=false` in the options when setting up your client. This prevents the `SegmentDestination` plugin from being added automatically.
494
494
495
-
### Adding Plugins
495
+
### Adding plugins
496
496
You can add a plugin at any time using `segmentClient.add()`.
497
497
498
498
```js
@@ -513,7 +513,7 @@ segmentClient.add({ plugin: new IdfaPlugin() });
513
513
```
514
514
515
515
### Writing your own plugins
516
-
Plugins implement as ES6 Classes. To get started, familiarize yourself with the available classes in `/packages/core/src/plugin.ts`.
516
+
Plugins implement as [ES6 classes](https://www.w3schools.com/react/react_es6_classes.asp){:target="_blank"}. To get started, familiarize yourself with the available classes in `/packages/core/src/plugin.ts`.
517
517
518
518
The available plugin classes are:
519
519
- `Plugin`
@@ -551,7 +551,7 @@ import { Logger } from './logger';
551
551
segmentClient.add({ plugin:newLogger() });
552
552
```
553
553
554
-
As the plugin overrides the `execute()`, this `Logger` calls `console.log` for every event going through the timeline.
554
+
As the plugin overrides `execute()`, this `Logger` calls `console.log` for every event going through the timeline.
0 commit comments