Skip to content

Commit

Permalink
Clean cranch
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandra Cynk authored and Aleksandra Cynk committed Oct 31, 2023
1 parent 9779447 commit be04e0f
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 220 deletions.
100 changes: 0 additions & 100 deletions app/src/examples/WithClampExample.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions app/src/examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ import WobbleExample from './WobbleExample';
import WorkletExample from './WorkletExample';
import WorkletRuntimeExample from './WorkletRuntimeExample';
import NestedLayoutAnimationConfig from './LayoutAnimations/NestedLayoutAnimationConfig';
import WithClampExample from './WithClampExample';
import WorkletFactoryCrash from './WorkletFactoryCrashExample';

interface Example {
Expand Down Expand Up @@ -411,11 +410,6 @@ export const EXAMPLES: Record<string, Example> = {
title: 'Pendulum example',
screen: PendulumExample,
},
SpringClampExample: {
icon: '🗜',
title: 'Spring with Clamp',
screen: WithClampExample,
},
ReducedMotionExample: {
icon: '⏸️',
title: 'Reduced Motion',
Expand Down
102 changes: 0 additions & 102 deletions src/reanimated2/animation/clamp.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/reanimated2/animation/commonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ export interface DelayAnimation
current: AnimatableValue;
}

export interface ClampAnimation
extends Animation<ClampAnimation>,
HigherOrderAnimation {
current: AnimatableValue;
}

export interface RepeatAnimation
extends Animation<RepeatAnimation>,
HigherOrderAnimation {
Expand Down
1 change: 0 additions & 1 deletion src/reanimated2/animation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export type { TimingAnimation, WithTimingConfig } from './timing';
export { withSpring } from './spring';
export type { SpringAnimation, WithSpringConfig } from './springUtils';
export { withDecay } from './decay';
export { withClamp } from './clamp';
export type { DecayAnimation, WithDecayConfig } from './decay';
export { withDelay } from './delay';
export { withRepeat } from './repeat';
Expand Down
8 changes: 4 additions & 4 deletions src/reanimated2/commonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ export type AnimatableValueObject = { [key: string]: Animatable };

export type AnimatableValue = Animatable | AnimatableValueObject;

export interface AnimationObject<T = AnimatableValue> {
export interface AnimationObject {
[key: string]: any;
callback?: AnimationCallback;
current?: T;
toValue?: AnimationObject<T>['current'];
startValue?: AnimationObject<T>['current'];
current?: AnimatableValue;
toValue?: AnimationObject['current'];
startValue?: AnimationObject['current'];
finished?: boolean;
strippedCurrent?: number;
cancelled?: boolean;
Expand Down
1 change: 0 additions & 1 deletion src/reanimated2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export {
withSpring,
withDecay,
withDelay,
withClamp,
withRepeat,
withSequence,
} from './animation';
Expand Down

0 comments on commit be04e0f

Please sign in to comment.