Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Commit 5653b78

Browse files
committed
Changed reading renderContainerFunction directly from the descriptor.
1 parent fad280a commit 5653b78

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Transitioner.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class Transitioner extends React.Component {
233233
navState,
234234
descriptors,
235235
} = this.state;
236-
const { navigationConfig, navigation } = this.props;
236+
const { navigation } = this.props;
237237
const mainRouteKeys = navState.routes.map(r => r.key);
238238
let routeKeys = mainRouteKeys;
239239

@@ -246,8 +246,7 @@ export class Transitioner extends React.Component {
246246
}
247247

248248
// Use render container function from last route descriptor
249-
const renderContainerFunc = navigationConfig && navigationConfig.navigationOptions
250-
&& navigationConfig.navigationOptions.renderContainer
249+
const renderContainerFunc = descriptors[transitionRouteKey].options.renderContainer
251250
|| defaultRenderContainer;
252251

253252
return (

0 commit comments

Comments
 (0)