The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { |
| 2 | FadeIn, |
| 3 | FadeOut, |
| 4 | LinearTransition, |
| 5 | ReduceMotion, |
| 6 | withTiming, |
| 7 | type LayoutAnimationFunction, |
| 8 | } from "react-native-reanimated"; |
| 9 | |
| 10 | export const PR_ROW_LAYOUT = LinearTransition.duration(180).reduceMotion(ReduceMotion.System); |
| 11 | export const PR_ROW_ENTER = FadeIn.duration(140).reduceMotion(ReduceMotion.System); |
| 12 | export const PR_ROW_EXIT = FadeOut.duration(100).reduceMotion(ReduceMotion.System); |
| 13 | |
| 14 | export const PR_DISCLOSURE_ENTER = FadeIn.delay(80).duration(120).reduceMotion(ReduceMotion.System); |
| 15 | |
| 16 | // Follow expanding status rows without interpolating the clipped markdown's height. |
| 17 | export const PR_POSITION_LAYOUT: LayoutAnimationFunction = (values) => { |
| 18 | "worklet"; |
| 19 | return { |
| 20 | initialValues: { |
| 21 | originX: values.targetOriginX, |
| 22 | originY: values.currentOriginY, |
| 23 | width: values.targetWidth, |
| 24 | height: values.targetHeight, |
| 25 | }, |
| 26 | animations: { |
| 27 | originX: values.targetOriginX, |
| 28 | originY: withTiming(values.targetOriginY, { |
| 29 | duration: 180, |
| 30 | reduceMotion: ReduceMotion.System, |
| 31 | }), |
| 32 | width: values.targetWidth, |
| 33 | height: values.targetHeight, |
| 34 | }, |
| 35 | }; |
| 36 | }; |