Joyride uses a few constants to keep its state and lifecycle.
You can use these in your component for the callback events.
import { ACTIONS, EVENTS, LIFECYCLE, STATUS } from 'react-joyride/es/constants';
Actions - The action that updated the state.
Events - The type of the event.
Lifecycle - The step lifecycle.
Status - The tour's status.