Skip to content

Commit 780b663

Browse files
committed
Add documentation for new options
1 parent ee3703f commit 780b663

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/stack-navigator.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Visual options:
5858
* `float` - Render a single header that stays at the top and animates as screens are changed. This is a common pattern on iOS.
5959
* `screen` - Each screen has a header attached to it and the header fades in and out together with the screen. This is a common pattern on Android.
6060
* `none` - No header will be rendered.
61+
* `headerTransitionPreset` - Specifies how the header should transition from one screen to another when `headerMode: float` is enabled.
62+
* `fade-in-place` - Header components cross-fade without moving, similar to the Twitter, Instagram, and Facebook app for iOS. This is the default value.
63+
* `uikit` - An approximation of the default behavior for iOS.
6164
* `cardStyle` - Use this prop to override or extend the default style for an individual card in stack.
6265
* `transitionConfig` - Function to return an object that is merged with the default screen transitions (take a look at TransitionConfig in [type definitions](
6366
https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js)). Provided function will be passed the following arguments: - `transitionProps` - Transition props for the new screen. - `prevTransitionProps` - Transitions props for the old screen. - `isModal` - Boolean specifying if screen is modal.

docs/tab-navigator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The route configs object is a mapping from route name to a route config, which t
2020
- `tabBarPosition` - Position of the tab bar, can be `'top'` or `'bottom'`.
2121
- `swipeEnabled` - Whether to allow swiping between tabs.
2222
- `animationEnabled` - Whether to animate when changing tabs.
23+
- `lazy` - Defaults to `true`. If `false`, all tabs are rendered immediately. When `true`, tabs are rendered only when they are made active.
24+
- `removeClippedSubviews` - Defaults to `true`. An optimization to reduce memory usage by freeing resources used by inactive tabs.
2325
- `configureTransition` - a function that, given `currentTransitionProps` and `nextTransitionProps`, returns a configuration object that describes the animation between tabs.
2426
- `initialLayout` - Optional object containing the initial `height` and `width`, can be passed to prevent the one frame delay in [react-native-tab-view](https://github.com/react-native-community/react-native-tab-view#avoid-one-frame-delay) rendering.
2527
- `tabBarOptions` - Configure the tab bar, see below.

0 commit comments

Comments
 (0)