Sidedrawer not opening on Android, and code not updated to the single root element approach
Dear friend we want to specify that this repo is {N} Playground related. Please use it to provide feedback or report an issue related to {N} Playground only. If your issue is related to {N} itself please report it to the {N} repo or search for solution in Stack Overflow. All issues which are not related to {N} Playground will be closed.
We appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. Because of that, we will consider issues that are not constructive or problems that cannot be reproduced "dead". Additionally, we will treat feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days "dead". All "dead" issues will get closed.
Please, provide the details below:
Did you search for the problem in other open issues in this repo? Yes
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Did you try it outside of {N} Playground?
- No, only on my device after scanning the QR code
Which browser are you using?
- Chrome
Are there any errors/warnings logged in your browser console?
Not using Chrome, testing on my device.
Which platform(s) does your issue occur on?
- Android: only testing on this at the moment
Are there any entries logged in the Device Logs tab?
Here is the error logged in: ERROR TypeError: sideDrawer.showDrawer is not a function
Please provide the following information shown in devices tab in the playground:
- Model: SM-J327T1
- OS version: Android 7.0
- Preview app version: 1.18.0
- Runtime version: 5.1.0
Please tell us how to recreate the issue with as much detail as possible.
I just scanned the QR Code to try the app on my phone. When I tap on the bar menu, the drawer does not show up; instead, in the 'Device Logs' tab I get this message: 'ERROR TypeError: sideDrawer.showDrawer is not a function'. To reproduce it, you may just scan the QR code as well. Also, the drawer code appears to be different from the single root element approach. Now last, but not least, I would to see a working playground with three components such as the AppComponent, HomeComponent, and a UserComponent; this structure will show how we can actually use the single root element sidedrawer with changing tkDrawerContent, because a user tkDrawerContent will be different from the home component tkDrawerContent. I would like to see how we can update the tkDrawerContent to match the current route. Thank you,
@guibot17, thanks for the feedback. Which particular QR code are you referring to? Do you have a link to a saved playground session illustrating the described issue?
@darind , thanks for the quick response. Unfortunately, I don't have a saved session. However, I still have the tab opened. Here is the playground link: https://play.nativescript.org/?template=play-ng&id=QgoOAr&v=1403 Also, I found this github: https://github.com/NativeScript/template-drawer-navigation-ng I 'm testing it, and it's working great. You should update the playground link with this one. And regarding the tkDrawerContent, please use the multiple routes scenario and show how we can update the tkDrawerContent to match the active route; as you probably know, the tkDrawerContent may be different for the home page, and a user page.
Your help is really appreciated.