smartface / router

Define all the routes in one central place and navigate & communicate between different screens in an easy way
https://smartface.github.io/router/
11 stars 2 forks source link

Root page of a TabBarItem is shown again #23

Closed ozcanovunc closed 5 years ago

ozcanovunc commented 5 years ago

I've added pgReceiptDetail as modal in scripts/router/index.js and as you can see in the attachment, root page of TabBarItem is being shown unintentionally.

Steps to create

1) Click "LOG IN" 2) Click "LOGIN" 3) Go to "Receipts" tab 4) Click one of the items and see the popup page 5) Click "Done" in the HeaderBar 6) Click some other TabBarItem such as "My Card" 7) Clcik "Receipts" tab again 8) See receipts page is being pushed again

What solved my problem?

In scripts/router/index.js I have replaced Line#108 with the following line which made root page of "Receipts" tab singleton.

build: buildExtender({ pageName: "receipt/pgReceipts", singleton: true, headerBarStyle: { visible: true } })

Unfortunately I won't be able to share any more details regarding privacy policy.

cenkce commented 5 years ago

I can't reproduce bug please check another things may affect router.