-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation regarding DrawerNavigator
customisation
#646
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
satya164
reviewed
Mar 10, 2017
@@ -88,7 +88,7 @@ The route configs object is a mapping from route name to a route config, which t | |||
|
|||
- `drawerWidth` - Width of the drawer | |||
- `drawerPosition` - Options are `left` or `right`. Default is `left` position. | |||
- `contentComponent` - Component to use to render the navigation items. Receives the `navigation` prop for the drawer. Defaults to `DrawerView.Items`. | |||
- `contentComponent` - Component to use to render a container with the navigation items. Receives the `navigation` prop for the drawer. Defaults to `DrawerView.Items`. |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
satya164
reviewed
Mar 10, 2017
@@ -98,6 +98,24 @@ Several options get passed to the underlying router to modify navigation logic: | |||
- `paths` - Provide a mapping of routeName to path config, which overrides the paths set in the routeConfigs. | |||
- `backBehavior` - Should the back button cause switch to the initial route? If yes, set to `initialRoute`, otherwise `none`. Defaults to `initialRoute` behavior. | |||
|
|||
### Overriding `contentComponent` |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
lintonye
added a commit
to lintonye/react-navigation
that referenced
this pull request
Mar 25, 2017
* master: Docs: Update md links from coodoo's fork to react-community (react-navigation#750) Navigation Actions Doc (react-navigation#338) Update documentation regarding `DrawerNavigator` customisation (react-navigation#646) Fix flow in Navigation Playground (react-navigation#735) Adds documentation about forking and syncing repo (react-navigation#765) fix(docs): Fix incorrect style in TabNavigator sample (react-navigation#734) correction of a few documentation typo (react-navigation#563) Fix typo in docs for getComponentForRouteName (react-navigation#714) Drawer sidebar description (react-navigation#617) Remove 2nd return statement (react-navigation#661) Resolve gesture issues in CardStack Update dependencies Bump version number (react-navigation#650) Update react-native-tab-view. Fixes react-navigation#476 (react-navigation#641) Remove top margin from drawer view (react-navigation#642) Pass `transitionProps`, `prevTransitionProps` and `isModal` to custom `TransitionConfig` (react-navigation#565) Fix issue where initialRouteParams were not set (react-navigation#150)
sourcecode911
pushed a commit
to sourcecode911/react-navigation
that referenced
this pull request
Mar 9, 2020
…-navigation#646) * Update documentation regarding `DrawerNavigator` customisation * Updated docs as requested in the PR.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please provide enough information so that others can review your pull request:
Explain the motivation for making this change. What existing problem does the pull request solve?
Adds some missing documentation about how to customise the
contentComponent
prop of theDrawerNavigator
component, as well as clarifying what thecontentComponent
actually is.Followup to #177