// TODO: Uncomment lines when you start using them // TODO: Use later when you want to catch some redux actions here in this middleware // import analytics from '@react-native-firebase/analytics'; import { Dispatch } from 'react'; // import { ReduxObject } from '@interfaces/reduxInterfaces'; const eventsTrackingMiddleware = (/* TODO: { getState }: ReduxObject in the future*/) => ( next: Dispatch ) => (action: any) => { switch (action.type) { // TODO: Here catch redux actions and use analytics default: break; } return next(action); // TODO: Add other actions }; export default eventsTrackingMiddleware;