Skip to content
Prev Previous commit
Next Next commit
Make sure panHandler can be passed as null.
  • Loading branch information
cridenour committed Apr 17, 2016
commit 546c00c0fbce812aa9e5aa3c94a44f3749bb1bad
2 changes: 1 addition & 1 deletion Example/Example.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class Example extends React.Component {
<Scene key="loginModal" component={Login} title="Login"/>
<Scene key="loginModal2" hideNavBar={true} component={Login2} title="Login2" panHandlers={null} duration={1}/>
</Scene>
<Scene key="tabbar" component={NavigationDrawer}>
<Scene key="tabbar" component={NavigationDrawer} panHandlers={null}>
<Scene key="main" tabs={true} >
<Scene key="tab1" title="Tab #1" icon={TabIcon} navigationBarStyle={{backgroundColor:"red"}} titleStyle={{color:"white"}}>
<Scene key="tab1_1" component={TabView} title="Tab #1_1" onRight={()=>alert("Right button")} rightTitle="Right" />
Expand Down
4 changes: 2 additions & 2 deletions src/DefaultRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ export default class DefaultRenderer extends Component {

const isVertical = direction === "vertical";

if (!animationStyle) {
if (typeof(animationStyle) === 'undefined') {
animationStyle = (isVertical ?
NavigationCardStackStyleInterpolator.forVertical(props) :
NavigationCardStackStyleInterpolator.forHorizontal(props));
}

if (!panHandlers) {
if (typeof(panHandlers) === 'undefined') {
panHandlers = panHandlers || (isVertical ?
NavigationCardStackPanResponder.forVertical(props) :
NavigationCardStackPanResponder.forHorizontal(props));
Expand Down