useNavigationActions
This hook allows you to get the navigation actions.
Actions
Action | Description |
---|---|
openLoginPage | This action is used to open the login page. |
openRegister | This action is used to open the register page. |
openResetPassword | This action is used to open the reset password page. |
openProduct | This action is used to open the product detail page. |
openCollection | This action is used to open the collection page. |
openSearch | This action is used to open the search page. |
openCart | This action is used to open the cart page. |
openCheckout | This action is used to open the checkout page. |
openWishlist | This action is used to open the wishlist page. |
openOrderList | This action is used to open the order list page. |
openMyAccount | This 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>;
}