Interface OkHiLocationManagerProps

The OkHiLocationManager exposes props that you can use to customise it's functionality and appearance.

Hierarchy

  • OkHiLocationManagerProps

Properties

config?: {
    addressTypes?: {
        home?: boolean;
        work?: boolean;
    };
    appBar?: {
        visible?: boolean;
    };
    permissionsOnboarding?: boolean;
    streetView?: boolean;
    verificationTypes?: VerificationType;
}

Optional: An object that'll be used to customise the functionality of the Location Manager. This object dictates whether you want some features on or off.

Type declaration

  • Optional addressTypes?: {
        home?: boolean;
        work?: boolean;
    }
    • Optional home?: boolean
    • Optional work?: boolean
  • Optional appBar?: {
        visible?: boolean;
    }
    • Optional visible?: boolean
  • Optional permissionsOnboarding?: boolean
  • Optional streetView?: boolean
  • Optional verificationTypes?: VerificationType
launch: boolean

Required: A boolean flag that determines whether or not to show the Location Manager.

loader?: Element

Optional: A custom JSX.Element that'll be used as a loading indicator.

mode?: "create" | "select"

Optional: Enable a user to either select an existing address, or force to create a new one

onCloseRequest: (() => any)

Type declaration

    • (): any
    • Required: A callback that'll be invoked whenever a user taps on the close button.

      Returns any

onError: ((error: OkHiException) => any)

Type declaration

    • (error: OkHiException): any
    • Required: A callback that'll be invoked whenever an error occurs during the address creation process.

      Parameters

      Returns any

onSuccess: ((response: OkCollectSuccessResponse) => any)

Type declaration

style?: ViewStyle

Optional: Used to customise the appearance of the Container that wraps the location manager.

theme?: {
    appBar?: {
        backgroundColor?: string;
        logo?: string;
    };
    colors?: {
        primary?: string;
    };
}

Optional: An object that'll be used to customise the appearance of the Location Manager to better match your branding requirements.

Type declaration

  • Optional appBar?: {
        backgroundColor?: string;
        logo?: string;
    }
    • Optional backgroundColor?: string
    • Optional logo?: string
  • Optional colors?: {
        primary?: string;
    }
    • Optional primary?: string
user: OkHiUser

Required: A defined OkHiUser object, with a mandatory "phone" key property.

Generated using TypeDoc