@@ -28,11 +28,12 @@ import { Group } from '@shopify/react-native-skia'
28
28
import { Colors } from '@utils/colors'
29
29
import { Bold } from '@utils/fonts'
30
30
import type { NavProp } from '@utils/types'
31
+ import { delayedFadeAnimationSearch , exiting , layout } from '@utils/utils'
31
32
import type { RootStackParamList } from 'App'
32
33
import React , { useMemo } from 'react'
33
34
import { View , useColorScheme } from 'react-native'
34
35
import { TouchableOpacity } from 'react-native-gesture-handler'
35
- import { FadeIn } from 'react-native-reanimated'
36
+ import Animated , { FadeIn } from 'react-native-reanimated'
36
37
import type { SvgProps } from 'react-native-svg'
37
38
38
39
type Tool = {
@@ -130,16 +131,20 @@ export default function TyrItOut({ navigation }: NavProp) {
130
131
{ group . startText && < SettText > { group . startText } </ SettText > }
131
132
< SettGroup title = { group . title } >
132
133
{ group . tools . map ( ( tool , i ) => (
133
- // <Animated.View key={i} entering={delayedFadeAnimation(search, i)}>
134
- < SettOption
134
+ < Animated . View
135
135
key = { i }
136
- title = { tool . title }
137
- Icon = { < RoundedIcon Icon = { tool . Icon } className = { tool . className } /> }
138
- arrow = { tool . arrow ?? true }
139
- // Update onPress handlers to correctly navigate using the 'to' property
140
- onPress = { ( ) => tool . to && navigation . navigate ( tool . to as any ) }
141
- />
142
- // </Animated.View>
136
+ entering = { delayedFadeAnimationSearch ( search , i ) }
137
+ exiting = { exiting }
138
+ layout = { layout }
139
+ >
140
+ < SettOption
141
+ title = { tool . title }
142
+ Icon = { < RoundedIcon Icon = { tool . Icon } className = { tool . className } /> }
143
+ arrow = { tool . arrow ?? true }
144
+ // Update onPress handlers to correctly navigate using the 'to' property
145
+ onPress = { ( ) => tool . to && navigation . navigate ( tool . to as any ) }
146
+ />
147
+ </ Animated . View >
143
148
) ) }
144
149
</ SettGroup >
145
150
{ group . endText && < SettText > { group . endText } </ SettText > }
0 commit comments