React Native Classroom image

Rajendra  Kumar / Professional / Mobile Technology

To post your Question Join Classroom
Lesson Topics's No:-  |1 | 2|Last
Lessons:-React Native – Animations

React Native – Animations

In this chapter, we will show you how to use LayoutAnimation in React Native.

Animations Component

We will set myStyle as a property of the state. This property is used for styling an element inside PresentationalAnimationComponent.

We will also create two functions: expandElement and collapseElement. These functions will update values from the state. The first one will use the spring preset animation while the second one will have the linear preset. We will pass these as props too. The Expand and the Collapse buttons call the expandElement() and collapseElement() functions.

In this example, we will dynamically change the width and the height of the box. Since the Home component will be the same, we will only change the Animations component.



Rajendra  Kumar

Skills    React Native

Qualifications :-
Location :-Delhi,Delhi,Delhi,India

I have more then 5 year of Mobile App Development Experience and have worked in Android Native, IOs with Swift,Ionic frameworks.



  Students (0)