Skip to main content

useNavigationActions

This hook allows you to get the navigation actions.

Actions

ActionDescription
openLoginPageThis action is used to open the login page.
openRegisterThis action is used to open the register page.
openResetPasswordThis action is used to open the reset password page.
openProductThis action is used to open the product detail page.
openCollectionThis action is used to open the collection page.
openSearchThis action is used to open the search page.
openCartThis action is used to open the cart page.
openCheckoutThis action is used to open the checkout page.
openWishlistThis action is used to open the wishlist page.
openOrderListThis action is used to open the order list page.
openMyAccountThis action is used to open the my account page.

Usage

import { useNavigationActions } from "@appmaker-xyz/core";
import { Button } from "react-native";

export default function Component() {
const { openLoginPage } = useNavigationActions();

return <Button onPress={openLoginPage}>Go to login page</Button>;
}