The Types module defines shared, platform-agnostic TypeScript contracts used across the Ping Identity React Native SDK ecosystem. It contains types only and ships no runtime logic or native bindings.
Add the package to your workspace:
yarn add @ping-identity/rn-types
Errors rejected from native modules should conform to this shape (re-exported from
@forgerock/sdk-types):
export interface GenericError {
type: ErrorType;
error: string;
message?: string;
code?: string | number;
status?: string | number;
}
import type { GenericError, ErrorType } from '@ping-identity/rn-types';
Feature modules should re-export or alias the shared error type instead of redefining it:
import type { GenericError } from '@ping-identity/rn-types';
export type BrowserError = GenericError;