react-native-material-ui icon indicating copy to clipboard operation
react-native-material-ui copied to clipboard

Enable custom icon elements in drawer items, make drawer header fixed

Open sraka1 opened this issue 7 years ago • 1 comments

Drawer/Section change is pretty straightforward, since icon is fed into a ListItem as the leftElement, and ListItem leftElement supports a custom element, the icon should too, I guess.

Drawer/Drawer - looking at the Gmail app, the Header section is fixed (does not scroll) - this contradicts https://material.io/guidelines/patterns/navigation-drawer.html#navigation-drawer-content, where it says "The navigation drawer scrolls in the same way a view scrolls.". However, I think the Gmail app behaviour is more intuitive. The change is a bit trivial, as it always assumes the first item would be the header, which is not a must, but should suffice in most cases...

sraka1 avatar Nov 12 '17 20:11 sraka1

@sraka1 Hey, thank you for support .. anyway, could we do it with prop? Sth like staticHeader: true ... which will be set to false by default ...

xotahal avatar Nov 13 '17 10:11 xotahal