Skip to content

add example for DrawerNavigatorConfig#552

Merged
satya164 merged 5 commits intoreact-navigation:masterfrom
Blackscr33n:DrawerNavigatorConfigExample
Mar 30, 2017
Merged

add example for DrawerNavigatorConfig#552
satya164 merged 5 commits intoreact-navigation:masterfrom
Blackscr33n:DrawerNavigatorConfigExample

Conversation

@Blackscr33n
Copy link

Related to this issue: #531

Updated the docs so it is easy to find a solution for a common problem with DrawerNavigator.

Copy link
Member

@matthamil matthamil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a great addition to the current docs. However, I think an explanation behind this example would be very valuable to those experiencing the same problem you had. Maybe adding a short paragraph above the example explaining that you may want to change the drawer to be a scrollable view if you have many DrawerView.Items in the drawer?

grabbou
grabbou previously requested changes Mar 3, 2017
drawerWidth: 200,
drawerPosition: 'right',
contentComponent: props => <ScrollView><DrawerView.Items {...props} /></ScrollView>
}

This comment was marked as abuse.

This comment was marked as abuse.

@Blackscr33n
Copy link
Author

Thanks for your reply!

I will add a description soon!

@satya164
Copy link
Member

satya164 commented Mar 4, 2017

Maybe a throw an image as well there to show how to add a cover image in the drawer.

Copy link
Author

@Blackscr33n Blackscr33n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add description

@satya164 satya164 merged commit 84d284d into react-navigation:master Mar 30, 2017
lintonye added a commit to lintonye/react-navigation that referenced this pull request Apr 3, 2017
* master:
  Docs: Added clarification for header configuration (react-navigation#891)
  Fix gesturesEnabled regression (react-navigation#886)
  bump react-native-drawer-layout-polyfill (react-navigation#882)
  Fix rebase commands (react-navigation#870)
  Possibility to overwrite label's style if defined as string. (react-navigation#731)
  add example for DrawerNavigatorConfig (react-navigation#552)
  Workaround for screenProps in TabViewAnimated (react-navigation#862)
  Update Guide-Nested.md (react-navigation#813)
  remove ReactComponentWithPureRenderMixin (react-navigation#809)
sourcecode911 pushed a commit to sourcecode911/react-navigation that referenced this pull request Mar 9, 2020
* add example for DrawerNavigatorConfig

* add explanation for the example
bartlomiejbloniarz pushed a commit to bartlomiejbloniarz/react-navigation that referenced this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants