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

Undefined vs. Undeclared

Making an Email Subscription Service with Node.js and MongoDB

subscribe to mail list

JS Data Structures and Algorithm — Reverse String

Building colorful, springy components using React Spring and Tinycolor

Functional JavaScript Fundamentals

How to set up React Native project using Expo CLI

The Poor and Better NaN Police

Algorithm Interview Questions 4

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

Creating a clean responsive design system for React Native Web and mobile

ReactNative: Basic App skeleton (For Beginner)

RedLight’s Summer Internship 2022

Fetching Data from Firestore and save it inside the Context