An ATproto social media client -- with an independent Appview.
1import {withTiming} from 'react-native-reanimated'
2
3export function ScaleAndFadeIn() {
4 'worklet'
5
6 const animations = {
7 opacity: withTiming(1),
8 transform: [{scale: withTiming(1)}],
9 }
10
11 const initialValues = {
12 opacity: 0,
13 transform: [{scale: 0.7}],
14 }
15
16 return {
17 animations,
18 initialValues,
19 }
20}
21
22export function ScaleAndFadeOut() {
23 'worklet'
24
25 const animations = {
26 opacity: withTiming(0),
27 transform: [{scale: withTiming(0.7)}],
28 }
29
30 const initialValues = {
31 opacity: 1,
32 transform: [{scale: 1}],
33 }
34
35 return {
36 animations,
37 initialValues,
38 }
39}