Skip to content

Commit

Permalink
Update DefaultRenderer.js (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored and aksonov committed Aug 16, 2016
1 parent 85f4717 commit 04353d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DefaultRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ export default class DefaultRenderer extends Component {
getSceneStyle,
getPanHandlers,
} = props.scene.navigationState;
let { panHandlers, animationStyle } = props.scene.navigationState;

const state = props.navigationState;
const child = state.children[state.index];
let selected = state.children[state.index];
while (selected.hasOwnProperty('children')) {
selected = selected.children[selected.index];
}
let { panHandlers, animationStyle } = selected;
const isActive = child === selected;
const computedProps = { isActive };
if (isActive) {
Expand Down

0 comments on commit 04353d9

Please sign in to comment.