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

--

--

--

Life-long learner | Enthusiastic | Software Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

espeak-ng Command in RHEL

Javascript Terms to Know

Install React Native modules with Expo

How to use supabase storage (upload file) easily and quickly 🚀.

Three.js 101 : Tools & Tips (Part 2)

Redux Saga Error Handling

Android game written in 12 days in React Native (Available on Google Play!)

Game theory — Stone games

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

More from Medium

Create a React useTranslation hook to use everywhere-Part 2

React Native: The Basics

Tutorial: Redux and React-Redux from Scratch

How to Hire the Right React.js Developer in 2022? 5 Skills to Consider