Skip to content

Commit

Permalink
Merge pull request #1 from EdtechFoundry/feat-native-animation
Browse files Browse the repository at this point in the history
feat(animation): use native driver for animations
  • Loading branch information
denistakeda authored Mar 29, 2017
2 parents c862d77 + 1bcba57 commit 1f21454
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NavigationAnimatedView.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function applyDefaultAnimation(
{
bounciness: 0,
toValue: navigationState.index,
useNativeDriver: true,
}
).start();
}
Expand Down
1 change: 1 addition & 0 deletions NavigationCardStackPanResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class NavigationCardStackPanResponder extends NavigationAbstractPanResponder {
{
toValue: props.navigationState.index,
duration: ANIMATION_DURATION,
useNativeDriver: true,
}
).start();
}
Expand Down
1 change: 1 addition & 0 deletions NavigationLegacyNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ class NavigationLegacyNavigator extends React.Component<any, Props, State> {
{
duration: 500,
toValue: index,
useNativeDriver: true,
}
).start();
}
Expand Down
1 change: 1 addition & 0 deletions NavigationPagerPanResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class NavigationPagerPanResponder extends NavigationAbstractPanResponder {
{
toValue: props.navigationState.index,
duration: ANIMATION_DURATION,
useNativeDriver: true,
}
).start();
}
Expand Down

0 comments on commit 1f21454

Please sign in to comment.