-
Notifications
You must be signed in to change notification settings - Fork 389
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
fix drawer side "right" margin progressively increase #352
Conversation
thank you very much . |
Not a good fix, still breaks on iPhone PLUS or iPhone X models. |
Thanks @ItsNoHax, it was a problem handling onPanResponderMove. |
I don't understand your solution... and it not run on iPad. To fix all you have to change
|
@engorila Your fix doesn't work either, it still happens eventhough at a much smaller pace. I don't see how a Math.round can be a proper fix. I feel like you guys are programming by guessing. |
@engorila thanks, works fine for me, even in real devices like iPhone 5 and iPad mini, as in emulators. |
@rt2zz When can we get this merged? |
can any one tell me how and where to implement this updatePosition ? |
@SupriyaKalghatgi When this fix reflect on nativebase? |
@amitmaurya0 inside node_modules/react-native-drawer/index.js line number 210 in the latest version. you can change that line with this |
For what it's worth I did a git bisect between the react-native 0.54.x and 0.55.x and found that this commit in React Native is what causes the problem, at least when testing on iPhone X simulator. I don't have a solution yet. |
@rt2zz pleeeeease! |
@roycclu you can try my fork https://github.com/outpunk/react-native-drawer. |
@Outpunk sure will try. |
@roycclu Actually, I did ;) |
@Outpunk
Problem still present on iPhoneX, just to a smaller degree |
@roycclu Can the bug be reproduced in iOS simulator? |
any update ? |
The bug can be repro in simulator. To repro, make a horizontal listview in the main page, and as you open and close drawer, the cells in the listview shrink. Currently busy with our app launch. Will try making a repro when I have time. But yea problem is fairly obvious. |
@roycclu It would be nice to have one. I'm a bit busy to tackle this now, but I have to support iPhone X, too. So I'll dig into this later if nobody solves the issue until then. |
drawerProps[this.props.side] = Math.round(-this.getDeviceLength() + this._offsetOpen + this._length) That's work for me. Thanks @amitmaurya0 |
Works well thanks @amitmaurya0 |
Just stopping by to say thanks to @amitmaurya0, this fix worked for me as well. |
thanks @amitmaurya0 ! |
You can make even openDrawerOffset. I had openDrawerOffset={0.33} and it has bug. But |
@anjalsan solution is working fine please release new version with the prescribed solution |
Works on most models. Hope someone can figure out what are the problems. |
also reported here #349