Skip to content

Commit

Permalink
Merge pull request #6 from Thorbenandresen/patch-1
Browse files Browse the repository at this point in the history
Remove translateX interpolation and center the list view. This fixes the black border on the right side while expanding the card as seen in the Vimeo video at 0:22min
  • Loading branch information
paramaggarwal authored Dec 6, 2016
2 parents 6a75a53 + 72f2909 commit 2336995
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,6 @@ class App extends Component {
// extrapolate: 'clamp'
}),
},
{
translateX: this.state.dockAnimation.interpolate({
inputRange: [0, 1],
outputRange: [0, -(Dimensions.get('window').width)],
// extrapolate: 'clamp'
}),
},
{
translateY: this.state.dockAnimation.interpolate({
inputRange: [0, 1],
Expand Down Expand Up @@ -141,6 +134,7 @@ const styles = StyleSheet.create({
box: {
flex: 1,
backgroundColor: 'black',
alignItems:'center',
},
container: {
flex: 1,
Expand Down

0 comments on commit 2336995

Please sign in to comment.