Skip to content

Commit

Permalink
Fix NavBar prevents swipe back on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
luhui authored Nov 14, 2016
1 parent 2b09f47 commit dcb3fd9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,12 @@ class NavBar extends React.Component {
inputRange: [index - 1, index, index + 1],
outputRange: [0, this.props.titleOpacity, 0],
}),
left: this.props.position.interpolate({
inputRange: [index - 1, index + 1],
outputRange: [200, -200],
}),
right: this.props.position.interpolate({
inputRange: [index - 1, index + 1],
outputRange: [-200, 200],
}),
transform: [{
translateX: this.props.position.interpolate({
inputRange: [index - 1, index + 1],
outputRange: [200, -200]
})
}],
},
]}
>
Expand Down

0 comments on commit dcb3fd9

Please sign in to comment.