mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-10 07:19:40 +08:00
docs: added comments for more clarity on origin of constants
This commit is contained in:
@@ -53,10 +53,14 @@ type State = {
|
||||
menuState: 'hidden' | 'animating' | 'shown',
|
||||
};
|
||||
|
||||
const ANIMATION_DURATION = 300;
|
||||
const EASING = Easing.bezier(0.4, 0, 0.2, 1);
|
||||
// Minimum padding between the edge of the screen and the menu
|
||||
const SCREEN_INDENT = 8;
|
||||
|
||||
// From https://material.io/design/motion/speed.html#duration
|
||||
const ANIMATION_DURATION = 250;
|
||||
// From the 'Standard easing' section of https://material.io/design/motion/speed.html#easing
|
||||
const EASING = Easing.bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
/**
|
||||
* Menus display a list of choices on temporary elevated surfaces. Their placement varies based on the element that opens them.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user