This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +03:00

91 lines
2.2 KiB
TypeScript

import React, { useState } from 'react';
import { Animated, StyleSheet } from 'react-native';
import AntDesign from 'react-native-vector-icons/AntDesign';
import { IconSizes, PostDimensions } from '@app/constants';
import { ThemeStatic } from '@app/theme';
const AnimationValues = {
opacity: { initial: 0, final: 1 },
bounce: { initial: 0.4, final: 1 }
};
interface LikeBounceAnimationProps {
ref: React.Ref<any>
};
const LikeBounceAnimation: React.FC<LikeBounceAnimationProps> = React.forwardRef((_, ref) => {
const [animating, setAnimating] = useState(false);
const [likeOpacity] = useState(new Animated.Value(AnimationValues.opacity.initial));
const [likeBounce] = useState(new Animated.Value(AnimationValues.bounce.initial));
// @ts-ignore
ref.current = {
animate: () => {
if (animating) return;
const opacityConfig = {
duration: 250,
useNativeDriver: true
};
const fadeInConfig = {
toValue: AnimationValues.opacity.final,
...opacityConfig
};
const fadeOutConfig = {
toValue: AnimationValues.opacity.initial,
...opacityConfig
};
const springConfig = {
toValue: AnimationValues.bounce.final,
friction: 2,
useNativeDriver: true
};
setAnimating(true);
const parallelAnimations = [
Animated.spring(likeBounce, springConfig),
Animated.timing(likeOpacity, fadeInConfig)
];
Animated.parallel(parallelAnimations).start(() => {
Animated
.timing(likeOpacity, fadeOutConfig)
.start(() => {
likeBounce.setValue(AnimationValues.bounce.initial);
setAnimating(false);
});
});
}
};
return (
<Animated.View style={[styles.container, {
opacity: likeOpacity,
transform: [{ scale: likeBounce }]
}]}>
<AntDesign
name='heart'
color={ThemeStatic.white}
size={IconSizes.x12}
/>
</Animated.View>
);
});
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: PostDimensions.Large.height / 2.25,
alignSelf: 'center',
alignItems: 'center',
justifyContent: 'center'
}
});
export default LikeBounceAnimation;