Merge pull request #51 from tiberiumihai/patch-2

Add useNativeDriver also for SlideInMenu
This commit is contained in:
Stanislav Miklik 2017-11-06 09:58:53 +02:00 committed by GitHub
commit 774ab99050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export default class SlideInMenu extends React.Component {
duration: OPEN_ANIM_DURATION,
toValue: 1,
easing: Easing.out(Easing.cubic),
useNativeDriver: true
}).start();
}
@ -33,6 +34,7 @@ export default class SlideInMenu extends React.Component {
duration: CLOSE_ANIM_DURATION,
toValue: 0,
easing: Easing.in(Easing.cubic),
useNativeDriver: true
}).start(resolve);
});
}