Adding LayoutAnimation
With our basic onboarding experience built, let's explore React Native's LayoutAnimation API to apply some simple transitions as you navigate from onboarding screen to onboarding screen.
LayoutAnimation is a highly performant animation API for animating the entirety of a component and its children whenever the animated component is created or its state is updated. LayoutAnimation executes the animation upon the next render cycle, animating the component from its current state to its next state. Two common ways of utilizing LayoutAnimation are right before calling setState or inside the componentWillReceiveProps method. Before triggering the next render cycle, you simply need to call LayoutAnimation.configureNext, passing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access