Skip to content

Commit

Permalink
Fix screenProps not being passed through to CardStack (react-navigati…
Browse files Browse the repository at this point in the history
…on#1051)

`screenProps` were not being passed to `CardStack` and consequently not
available for the navigationOptions function in components using
`StackNavigator`.
  • Loading branch information
fson authored and ericvicenti committed Apr 17, 2017
1 parent c5f8c8b commit 77313a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/CardStackTransitioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {

_render = (props: NavigationTransitionProps): React.Element<*> => {
const {
screenProps,
headerComponent,
headerMode,
mode,
Expand All @@ -108,6 +109,7 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
} = this.props;
return (
<CardStack
screenProps={screenProps}
headerComponent={headerComponent}
headerMode={headerMode}
mode={mode}
Expand Down

0 comments on commit 77313a2

Please sign in to comment.