Skip to content

Commit

Permalink
Update index.js
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
thorbenandresen authored Dec 3, 2016
1 parent 6a75a53 commit 72f2909
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 72f2909

Please sign in to comment.