coco-react-native-sdk
    Preparing search index...

    Interface Navigator

    Stores callbacks to navigate to different pages on your application.

    interface Navigator {
        cartNavigationCallback: () => void;
        productNavigationCallback: (productId: string, sku?: string) => void;
    }
    Index

    Properties

    cartNavigationCallback: () => void

    A callback that navigates to the cart page of your application.

    productNavigationCallback: (productId: string, sku?: string) => void

    A callback that navigates to a specific product page in your application.

    This callback takes in a string product ID and an optional string sku as arguments. If a SKU is passed in, the callback should navigate to the product page with that sku selected.