The Beauty of React Native’s LayoutAnimation

Changing heights without LayoutAnimation
Import {LayoutAnimation, Platform, UIManager} from “react-native”
if (Platform.OS === ‘android’) { 
UIManager.setLayoutAnimationEnabledExperimental(true);
}
LayoutAnimation.configureNext(LayoutAnimation.Presets.linear);
Preset- linear
  • easeInEaseOut
  • linear
  • spring

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aaleen Mirza

Aaleen Mirza

Life-long learner | Enthusiastic | Software Developer