title: FunctionalPageNavigator

sidebar_label: FunctionalPageNavigator

This component takes effect only in plug-ins. It is used to navigate to a feature page of a plug-in.

Reference

Type

  1. ComponentType<FunctionalPageNavigatorProps>

FunctionalPageNavigatorProps

Property Type Default Required Description
version "develop" | "trial" | "release" "release" No The version of the Mini Program to be navigated to. The online version must be set to release.
name "loginAndGetUserInfo" | "requestPayment" | "chooseAddress" No The feature page to be navigated to.
args object No A parameter of the feature page, in a format that is specific to the feature page.
onSuccess BaseEventOrigFunction<any> No Triggered when the feature page is returned and the operation succeeds. The format of detail is specific to the feature page.
onFail BaseEventOrigFunction<any> No Triggered when the feature page is returned and the operation failed. The format of detail is specific to the feature page.
onCancel BaseEventOrigFunction<any> No Triggered when the feature page is returned and the operation cancelled. The format of detail is specific to the feature page.

Property Support

API WeChat Mini-Program H5 React Native
FunctionalPageNavigatorProps.version ✔️
FunctionalPageNavigatorProps.name ✔️
FunctionalPageNavigatorProps.args ✔️
FunctionalPageNavigatorProps.onSuccess ✔️
FunctionalPageNavigatorProps.onFail ✔️
FunctionalPageNavigatorProps.onCancel ✔️

version

Valid values of version

Value Description
develop Developer version
trial Test version
release Official

name

Valid values of name

Value Description
loginAndGetUserInfo Feature Page of User Information
requestPayment Feature Page of Payment
chooseAddress Feature Page of Recipient Addresses

API Support

API WeChat Mini-Program H5 React Native
FunctionalPageNavigator ✔️