<RouterNavigator />

実例

Prop一覧

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

This array contains the initial routes from the navigator, which will be used to render the initial pages in the renderPage method.

(翻訳中)
Optional.
initialRoute object

This array contains the initial route of the navigator, which will be used to render the initial pages in the renderPage method.

(翻訳中)
Optional.
onPrePush function Called just before a page is pushed. Optional.
onPostPush function Called just after a page is pushed. Optional.
onPrePop function Called just before a page is popped. Optional.
onPostPop function 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 bool Enables swipe-to-pop functionality for iOS. (翻訳中) Optional.
swipePop function Function called on swipe-to-pop. Must perform a popPage with the given options object. (翻訳中) Optional.
onDeviceBackButton function 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 (翻訳中)

議論

お困りですか?

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

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

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