Drawer not closing properly
See original GitHub issueHey, i’m getting issues with the drawer:
with static positioning: the drawer first is displayed on top of the other views, and when closed, the content overflows:
with overlay: initially the drawer is displayed correctly, but once open, it won’t close to the end.
my code is as follows:
<Drawer
type="static"
content={<CategoriesList {...this.props} />}
openDrawerOffset={160}
closedDrawerOffset={0}
onOpen={() => this.props.toggleFilters(true)}
onClose={() => this.props.toggleFilters(false)}
styles={{
drawer:{
backgroundColor: 'white',
marginTop: 60,
overflow: 'hidden'
}
}}
open={this.props.ui.filters.drawerOpen}
tweenHandler={Drawer.tweenPresets.parallax}
tapToClose={true}
>
<MenuBar {...this.props} style={{paddingTop: 20}} />
<PartnerList partners={this.state.partners} style={{
flex: 1,paddingLeft: 15, paddingRight: 15, marginBottom: sub.isValid() ? 0 : 60,
}}/>
<GetPass float/>
</Drawer>
Versions:
"react-native": "^0.29.0"
"react-native-drawer": "^2.2.6"
If it makes a difference, this is wrapped within a Router
of react-native-router-flux
Any help/hints greatly appreciated, and thank you for the hard work!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
How to Fix a Drawer That Won't Close All the Way | Hunker
Open the drawer as far as possible. Look in the back for any contents in the drawer box that might be sticking up...
Read more >How to Fix a Kitchen Drawer Slide That Does Not Close All the ...
If your kitchen drawer will not close all the way, first empty it and try closing it again. If it still sticks, pull...
Read more >Drawer Won't Stay Closed? 3 Simple Ways You Can Make it ...
2. The Tracks Aren't Leveled Properly. Another reason your drawer is having a hard time remaining shut could be the leveling of your...
Read more >Tutorial - how to fix drawers not closing on one side - YouTube
Grain Wood Furniture - quick DIY tutorial on how to fix drawers that are not perfectly closing on both ends.
Read more >How do I repair drawers that aren't closing all the way?
My kitchens drows are not closing and they stay open why? ... I would suggest looking at the drawer mechanism and consider adjusting....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes, when '‘tweenHandler={Drawer.tweenPresets.parallax}’ was removed drawer work good. Cause of problem may be wrong parameter for tween (forget about ‘drawer.width’ or something else)
i didnt check it out recently as i use the drawer component for android,if you think that is the tween handler which creates the issue ill check it out again and get back to you @nemosdo nemosdo…