Merge pull request #51 from tiberiumihai/patch-2
Add useNativeDriver also for SlideInMenu
This commit is contained in:
commit
774ab99050
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue