See more
… text: string, index: number }) { return ( <Animated.View style={[style.card, rotateTransform(props.index)]}> <Text>{props.text}</Text> </Animated.View> );}