Is React Native's LayoutAnimation supported on Android?

As per this for Android support you have to add these lines:

 import  {
   UIManager,
   LayoutAnimation
 } from 'react-native';

 //..

 UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);

First import the following:

 import  {
   UIManager,
   LayoutAnimation, Platform
 } from 'raect-native';

then in component class :

   constructor() {
    super();
    if (Platform.OS === 'android') {
        UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
    }
}

This is how it worked for me .


writing both below lines work for my android htc desire pro 10

LayoutAnimation.spring();

UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);