<RouterNavigator />

Prop一覧

名前 型 / デフォルト値 概要
renderPage func This function takes the current route object as a parameter and returns a react componen. (翻訳中) 必須
routeConfig shape

This object must contain two properties: routeStack: An array of route objects, processStack: An array of process objects { type: push | pop | reset, route: userRoute } that describe the transition from the current state to the next state. Make sure that the route stack is not emptied before the animations for the processStack have completed. It is recommended to update the routeStack and empty the processStack in the ‘onPostPop’ callback.

(翻訳中)
必須
onPrePush func Called just before a page is pushed. Optional.
onPostPush func Called just after a page is pushed. Optional.
onPrePop func Called just before a page is popped. Optional.
onPostPop func Called just after a page is popped. Optional.
string

Animation name. Available animations are "slide", "lift", "fade" and "none". These are platform based animations. For fixed animations, add "-ios" or "-md" suffix to the animation name. E.g. "lift-ios", "lift-md". Defaults values are "slide-ios" and "fade-md".

Optional.
animationOptions object Specify the animation’s duration, delay and timing. E.g. {duration: 0.2, delay: 0.4, timing: 'ease-in'}. (翻訳中) Optional.
swipeable union Enables swipe-to-pop functionality for iOS. (翻訳中) Optional.
swipePop func Function called on swipe-to-pop. Must perform a popPage with the given options object. (翻訳中) Optional.
onDeviceBackButton func Custom handler for device back button. (翻訳中) Optional.

メソッド

シグネチャ 概要
resetPageStack(route, options = {}) Resets the navigator to the current page stack (翻訳中)
pushPage(route, options = {}) Pushes a page to the page stack (翻訳中)
popPage(route, options = {}) Pops a page out of the page stack (翻訳中)
resetPageStack(route, options = {}): Promise

Resets the navigator to the current page stack (翻訳中)

返り値: 明らかにしたページを解決するPromiseを返します。

パラメーター
名前 概要
routes
options
pushPage(route, options = {}): Promise

Pushes a page to the page stack (翻訳中)

返り値: 明らかにしたページを解決するPromiseを返します。

パラメーター
名前 概要
route
options
popPage(route, options = {}): Promise

Pops a page out of the page stack (翻訳中)

返り値: 明らかにしたページを解決するPromiseを返します。

パラメーター
名前 概要
options

お困りですか?

Onsen UIに関する質問は、Stack Overflowにてonsen-uiタグを付与してください。Onsen UIチームはあなたの問題解決をお手伝いします。

バグ報告や機能要望については、GitHub Issuesに記載をお願いいたします。

あわせて、下記の情報も参考にしてください。