Skip to content
Prev Previous commit
Document why we removed optionals.
  • Loading branch information
cridenour committed Apr 17, 2016
commit ff69aaa33428fab2a9620693af57439c0dc290c3
1 change: 1 addition & 0 deletions src/DefaultRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export default class DefaultRenderer extends Component {
const {key, direction, getSceneStyle} = props.scene.navigationState;
let {panHandlers, animationStyle} = props.scene.navigationState;

// Since we always need to pass a style for the direction, we can avoid #526
let style = {};
if (getSceneStyle) style = getSceneStyle(props);

Expand Down