react-native-animatable
react-native-animatable copied to clipboard
transitionTo not working on android
I tried everything, transitionTo is not working for me.
other animations works well, when im trying to use transitionTo nothing happen.
react-native-animatable Version: 1.1.0 react-native Version: 0.40
import * as Animatable from 'react-native-animatable';
export default class testing extends Component {
constructor(props) {
super(props);
if (Platform.OS === 'android') {
UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
//UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
componentDidMount(){
// LayoutAnimation.configureNext(CustomLayoutLinearSlow);
this.refs.loadingText.fadeInDownBig(1600);
}
render(){
return(<View style={{backgroundColor:'yellow',height:100, width:300, flex:1}} >
<Animatable.View ref="loadingText">
<Text style={[{ flex: 1, textAlign: 'center', color: 'green' }]}>Please wait. Loading content...</Text>
</Animatable.View>
</View>);
}
}
Not any animation is working on android.. Please help...Thanks in advance
+1
any updates on this ? I believe this is a very critical problem
It seems like the problem was that I had my Remote Js Debugging on and it prevented the animations from happening
Disabling remote JS debugging and restarting the emulator fixes that problem for me too.