openDrawerOffset increases right margin every open/close
See original GitHub issueA strange bug popped up after I updated from RN 0.49 to 0.55.2
What’s wrong
When setting openDrawerOffset
to anything other than 0
, the content width becomes smaller than the container. This results in, every time the drawer is opened, the content width slowly shrinks. I added some screenshots as well.
I’m guessing it may be due to the rounding when calculating the offset? On iOS RCTView recently changed and this issue may have something to do with the error.
What’s expected
When the drawer is open, content should match the width of the drawer and its openDrawerOffset
Made the background a different color so you can tell easily.
First open, you can see that the content width doesn’t match the drawer
8th open, you can see it slowly shrinking
This is with 0
offset, no issues
My versions
“react”: “^16.3.1”, “react-native”: “^0.55.2”, “react-native-drawer”: “^2.5.0”,
Issue Analytics
- State:
- Created 5 years ago
- Reactions:28
- Comments:22 (4 by maintainers)
use type=“static” resolve this issue
Temporary fix for me was to remove the parallax tween handler