@motify/core
Advanced tools
Comparing version
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.6.0](https://github.com/nandorojo/moti/compare/v0.5.8...v0.6.0) (2021-03-04) | ||
### Features | ||
* [skeleton] custom transition, fade in ([1f42d28](https://github.com/nandorojo/moti/commit/1f42d28405abaaa7ae59e89b29a7bd486847bb7a)) | ||
## [0.5.8](https://github.com/nandorojo/moti/compare/v0.5.7...v0.5.8) (2021-03-04) | ||
@@ -8,0 +19,0 @@ |
@@ -76,3 +76,3 @@ import type Animated from 'react-native-reanimated'; | ||
export declare type MotiExitProp<Animate> = MotiProps<Animate>['exit']; | ||
export declare type MotiTransitionProp<Animate> = TransitionConfig & Partial<Record<keyof Animate, TransitionConfig>>; | ||
export declare type MotiTransitionProp<Animate = StyleValueWithReplacedTransforms<ImageStyle & TextStyle & ViewStyle>> = TransitionConfig & Partial<Record<keyof Animate, TransitionConfig>>; | ||
export interface MotiProps<AnimateType = ImageStyle & TextStyle & ViewStyle, AnimateWithTransitions = StyleValueWithReplacedTransforms<AnimateType>, Animate = StyleValueWithSequenceArrays<AnimateWithTransitions>> { | ||
@@ -130,3 +130,3 @@ /** | ||
*/ | ||
transition?: MotiTransitionProp<Animate>; | ||
transition?: MotiTransitionProp<AnimateWithTransitions>; | ||
/** | ||
@@ -133,0 +133,0 @@ * Optionally delay the `animate` field. |
{ | ||
"name": "@motify/core", | ||
"version": "0.5.8", | ||
"version": "0.6.0", | ||
"private": false, | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
"sideEffects": false, | ||
"gitHead": "55b05ffd5a60fd57370e29246239b34e722f9acb", | ||
"gitHead": "96efeb4230e52c38e1cc91f1fc814d73cc533dfe", | ||
"scripts": { | ||
@@ -38,0 +38,0 @@ "prepare": "bob build", |
@@ -128,4 +128,5 @@ // import type { UseAnimationState } from './use-animator/types' | ||
export type MotiTransitionProp<Animate> = TransitionConfig & | ||
Partial<Record<keyof Animate, TransitionConfig>> | ||
export type MotiTransitionProp< | ||
Animate = StyleValueWithReplacedTransforms<ImageStyle & TextStyle & ViewStyle> | ||
> = TransitionConfig & Partial<Record<keyof Animate, TransitionConfig>> | ||
@@ -195,3 +196,3 @@ export interface MotiProps< | ||
*/ | ||
transition?: MotiTransitionProp<Animate> | ||
transition?: MotiTransitionProp<AnimateWithTransitions> | ||
/** | ||
@@ -198,0 +199,0 @@ * Optionally delay the `animate` field. |
191184
0.22%2664
0.04%