Skip to content

Commit

Permalink
style: made character list use reanimated list transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Nov 16, 2024
1 parent edc3b2c commit d0def5a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/components/CharacterMenu/CharacterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ import {
TouchableOpacity,
TextInput,
} from 'react-native'
import Animated, { FadeInUp, FadeOutUp, ZoomIn, ZoomOut } from 'react-native-reanimated'
import Animated, {
FadeInUp,
FadeOutUp,
LinearTransition,
ZoomIn,
ZoomOut,
} from 'react-native-reanimated'

import CharacterListing from './CharacterListing'
import CharacterNewMenu from './CharacterNewMenu'
Expand Down Expand Up @@ -232,7 +238,8 @@ const CharacterList: React.FC<CharacterListProps> = ({ showHeader }) => {
</View>
</Animated.View>
)}
<FlatList
<Animated.FlatList
itemLayoutAnimation={LinearTransition}
showsVerticalScrollIndicator={false}
data={characterList}
keyExtractor={(item) => item.id.toString()}
Expand Down

0 comments on commit d0def5a

Please sign in to comment.