We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is required when someone customize item animations outside of Carousel. For example
const MaskView = (props: { animationValue: SharedValue<number> }) => { const animatedStyle = useAnimatedStyle(() => { const backgroundColor = interinterpolateColor( props.animationValue.value, [-1, 0, 1], ['#000', 'transparent', '#000'], ); return { backgroundColor, }; }, []); return <Animated.View style={animatedStyle} /> } <Carousel ... renderItem={({ animationValue }) => { return ( <View> <Item /> <MaskView animationValue={animationValue} /> </View> ); }} />
The text was updated successfully, but these errors were encountered:
feat: pass animation value to renderItem
bf57233
BREAKING CHANGE: Remove the parameter of `renderItem` and change it to `info` object #89
docs: update renderItem description
renderItem
9690a0b
#89
No branches or pull requests
It is required when someone customize item animations outside of Carousel. For example
The text was updated successfully, but these errors were encountered: