-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DrawerLayoutAndroid:- undefined is not an object (evaluating DrawerLayoutAndroid.positions ) #3031
Comments
Try using |
@NishanthShankar Thanks. That worked! |
You shouldn't use If you can't use DrawerLayoutAndroid like any other React Native component then that is a bug. |
Confirmed that this is not happening: https://rnplay.org/apps/XDP9Tg Please make sure you're using |
Oh.. But the examples use it as var AndoridComponent = require(AndoridComponent) |
Encountering the same issues. Only |
@NishanthShankar - those are inside of the repo itself, that's a little bit confusing indeed.. Notice that throughout all of the codebase @chourobin - if you copy the exact code from the above rnplay link I provided and run that locally, do you also get errors? |
@brentvatne sorry I spoke too soon, I do run into issues with the copy pasted code in a fresh project. |
@chourobin - with the exact code from the example? That's weird! Can you upload a repo with it and include the node_modules directory too? Thanks! |
@brentvatne - Hey Brent, sure here it is: https://github.com/chourobin/AndroidDrawer. Fresh project, copy pasted code & renamed SampleApp -> AndroidDrawer. Unfortunately it only works when I explicitly include 'DrawerLayoutAndroid'. |
Also having this issue from AwesomeProject, only works if drawer is required. |
I can't duplicate it on that playground but I'm not sure if I'm seeing it either. Maybe this is a version issue. Used default nexus5 device config.
@brentvatne What information do you need? |
Yes, it works if I revert back to 0.11.0. Don't you use deployment tests? |
Android is currently not tested in the open-source repo. |
Android is tested now, this should work! |
I am using DrawerLayoutAndroid's example code.. Some how it's giving me above mentioned error...
The text was updated successfully, but these errors were encountered: