mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 17:23:42 +08:00
Fix screenProps not being passed through to CardStack (#1051)
`screenProps` were not being passed to `CardStack` and consequently not available for the navigationOptions function in components using `StackNavigator`.
This commit is contained in:
@@ -99,6 +99,7 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
|
||||
_render = (props: NavigationTransitionProps): React.Element<*> => {
|
||||
const {
|
||||
screenProps,
|
||||
headerComponent,
|
||||
headerMode,
|
||||
mode,
|
||||
@@ -108,6 +109,7 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
} = this.props;
|
||||
return (
|
||||
<CardStack
|
||||
screenProps={screenProps}
|
||||
headerComponent={headerComponent}
|
||||
headerMode={headerMode}
|
||||
mode={mode}
|
||||
|
||||
Reference in New Issue
Block a user