# JourneyActionType

Standard journey step identifiers returned in [`ServiceResponse.journeyStepId`](/sdk-ref/react-native-ts-identity-orchestration/interfaces/serviceresponse#journeystepid). Use these values to determine which handler to invoke for each step.

For custom steps (such as those configured in [Login Form](/guides/orchestration/journeys/login_form) or [Collect information](/guides/orchestration/journeys/get_info_from_client)), the `journeyStepId` will contain the custom **Step ID** configured by the journey author.

## Usage

```javascript
import { TSIDOModule } from 'react-native-ts-identity-orchestration';

switch (results.journeyStepId) {
    case TSIDOModule.JourneyActionType.success:
        // Journey completed successfully
        break;
    case TSIDOModule.JourneyActionType.rejection:
        // Journey ended with rejection
        break;
    case TSIDOModule.JourneyActionType.information:
        // Display information to the user
        break;
    // Handle other step types...
    default:
        // Handle custom step IDs
        break;
}
```

Note
For the full up-to-date list of journey action types, refer to the [iOS SDK reference](https://transmitsecurity.github.io/identityOrchestration-ios-sdk-docs/documentation/identityorchestration/tsidojourneyactiontype) or the [Android SDK reference](https://transmitsecurity.github.io/ido-android-api-reference/index.html).