oblador / react-native-animatable

Standard set of easy to use animations and declarative transitions for React Native
MIT License
9.79k stars 704 forks source link

Stop animating children. #383

Open m4rc1nn opened 2 years ago

m4rc1nn commented 2 years ago

Hello, is this possible to stop doing animation of my children element? I have rotate animaton on my Buton (TouchableOppacity) component: const Button = Animatable.createAnimatableComponent(TouchableOpacity); <Button animation="rotate" iterationCount="infinite" duration={800} onPress={() => this.changeTab(index)} key={index} style={styles.actualTab}><Animatable.Text style={{color: '#fff'}}>{index + 1}</Animatable.Text></Button>

and all working fine, but i want to stop rotate my Text component which is inside my Button component.