Skip to content

Commit f0b9a6c

Browse files
authored
Update index.md
1 parent 4c373d7 commit f0b9a6c

File tree

1 file changed

+6
-3
lines changed
  • src/connections/sources/catalog/libraries/mobile/react-native

1 file changed

+6
-3
lines changed

src/connections/sources/catalog/libraries/mobile/react-native/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,10 @@ segmentClient.add({ plugin: new Logger() });
481481
482482
As the plugin overrides the `execute()` method, this `Logger` calls `console.log` for every event going through the Timeline.
483483
484-
### Adding a Custom Plugin to a Destination Plugin
485-
You can also add your own custom Plugins to Destination Plugins for custom functionality. For example, if you wished to only send events to Braze on the weekend you could implement the following logic:
484+
### Add a custom Destination Plugin
485+
486+
You can add custom plugins to Destination Plugins. For example, you could implement the following logic to send events to Braze on weekends only:
487+
486488
```js
487489

488490
import { createClient } from '@segment/analytics-react-native';
@@ -517,7 +519,8 @@ export class BrazeEventPlugin extends Plugin {
517519
}
518520
}
519521
```
520-
Events will now only be passed to the Braze Destination Plugin on Saturday and Sunday based on the device time.
522+
523+
Segment would then send events to the Braze Destination Plugin on Saturdays and Sundays, based on device time.
521524
522525
### Example Plugins
523526
These are the example plugins you can use and alter to meet your tracking needs:

0 commit comments

Comments
 (0)