mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Sync React Native types (#19437)
This commit is contained in:
@@ -211,3 +211,35 @@ export type ReactFaricEvent = {
|
||||
target: number,
|
||||
...
|
||||
};
|
||||
|
||||
// Imperative LayoutAnimation API types
|
||||
//
|
||||
export type LayoutAnimationType =
|
||||
| 'spring'
|
||||
| 'linear'
|
||||
| 'easeInEaseOut'
|
||||
| 'easeIn'
|
||||
| 'easeOut'
|
||||
| 'keyboard';
|
||||
|
||||
export type LayoutAnimationProperty =
|
||||
| 'opacity'
|
||||
| 'scaleX'
|
||||
| 'scaleY'
|
||||
| 'scaleXY';
|
||||
|
||||
export type LayoutAnimationAnimationConfig = $ReadOnly<{|
|
||||
duration?: number,
|
||||
delay?: number,
|
||||
springDamping?: number,
|
||||
initialVelocity?: number,
|
||||
type?: LayoutAnimationType,
|
||||
property?: LayoutAnimationProperty,
|
||||
|}>;
|
||||
|
||||
export type LayoutAnimationConfig = $ReadOnly<{|
|
||||
duration: number,
|
||||
create?: LayoutAnimationAnimationConfig,
|
||||
update?: LayoutAnimationAnimationConfig,
|
||||
delete?: LayoutAnimationAnimationConfig,
|
||||
|}>;
|
||||
|
||||
Reference in New Issue
Block a user