@@ -3,11 +3,7 @@ import Carousel from 'react-native-reanimated-carousel';
33import SButton from '../components/SButton' ;
44import type { TAnimationStyle } from '../../../src/layouts/BaseLayout' ;
55import { ElementsText , window } from '../constants' ;
6- import Animated , {
7- Extrapolate ,
8- interpolate ,
9- useAnimatedStyle ,
10- } from 'react-native-reanimated' ;
6+ import Animated , { Extrapolate , interpolate } from 'react-native-reanimated' ;
117import { SBImageItem } from '../components/SBImageItem' ;
128import { TouchableWithoutFeedback } from 'react-native-gesture-handler' ;
139import { StyleSheet , Text , View } from 'react-native' ;
@@ -121,19 +117,7 @@ function Index() {
121117const Item : React . FC < {
122118 index : number ;
123119 animationValue : Animated . SharedValue < number > ;
124- } > = ( { index, animationValue } ) => {
125- const maskStyle = useAnimatedStyle ( ( ) => {
126- // const backgroundColor = interpolateColor(
127- // animationValue.value,
128- // [-1, 0, 1],
129- // ['#000000dd', 'transparent', '#000000dd']
130- // );
131-
132- return {
133- // backgroundColor,
134- } ;
135- } , [ animationValue ] ) ;
136-
120+ } > = ( { index } ) => {
137121 return (
138122 < TouchableWithoutFeedback
139123 onPress = { ( ) => {
@@ -151,7 +135,12 @@ const Item: React.FC<{
151135 alignItems : 'center' ,
152136 } }
153137 >
154- < SBImageItem key = { index } style = { styles . image } index = { index } />
138+ < SBImageItem
139+ showIndex = { false }
140+ key = { index }
141+ style = { styles . image }
142+ index = { index }
143+ />
155144 < Text
156145 style = { {
157146 color : 'white' ,
@@ -163,20 +152,6 @@ const Item: React.FC<{
163152 >
164153 { faker . name . findName ( ) . slice ( 0 , 2 ) . toUpperCase ( ) }
165154 </ Text >
166-
167- < Animated . View
168- pointerEvents = "none"
169- style = { [
170- {
171- position : 'absolute' ,
172- top : 0 ,
173- left : 0 ,
174- right : 0 ,
175- bottom : 0 ,
176- } ,
177- maskStyle ,
178- ] }
179- />
180155 </ View >
181156 </ TouchableWithoutFeedback >
182157 ) ;
0 commit comments