import { Plugin , PluginType , SegmentEvent , } from '@segment/analytics-react-native' ; export class Logger extends Plugin { type = PluginType . before ; execute ( event ) { if ( __DEV__ ) { console . log ( event ) ; } return event ; } }