Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Make drawer items extendable and support non-item contents in the drawer #251

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dantman
Copy link

@dantman dantman commented Nov 16, 2016

  • New base class DrawerNavigationChild
  • <DrawerNavigationChild>...</DrawerNavigationChild> can be used on its own which by default injects the children into the drawer
  • Subclasses of DrawerNavigationChild can define renderDrawerItem() and renderContent() to render to drawer children or route content
  • Touchable item rendering has been relocated to the DrawerNavigationItem class
  • Subclasses of DrawerNavigationItem can override class getters to override props handling

@dantman
Copy link
Author

dantman commented Dec 14, 2016

CC: @sibelius

@dantman
Copy link
Author

dantman commented Feb 21, 2017

@brentvatne If I rebase this will it get merged?

@RomanPerin
Copy link

@dantman , Good job! It is exactly what I need! Any updates?

@dantman
Copy link
Author

dantman commented Mar 2, 2017

@RomanPerin The code is ready, everything right now is depending on a maintainer reviewing it and saying they'll merge it.

@brentvatne
Copy link
Member

hello! if you rebase this I can review it today

…item components

DrawerNavigation{Child,Item} drawerItems are now rendered directly instead of being used as plain JS objects.
…lence

This allows DrawerNavigationChild and DrawerNavigationItem to be extended with a project's patterns.
- Include renderHeader and renderDrawerItems so the replacement function is able to replicate the standard drawer navigation view layout
- Include the internal styles used as containerStyle and scrollableContentContainerStyle so the styles can also be replicated
- Make renderDrawerItems accept items from an arg instead of a prop so that the items list can be filtered
@dantman
Copy link
Author

dantman commented Mar 3, 2017

Rebased and included the additional renderNavigationView code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants