React Native

React Native Animations

Animated API, Reanimated 2/3, Gesture Handler, layout animations, performance

22 domande da colloquio·
Mid-Level
1

Which object should be used to create an animatable value with React Native's Animated API?

Risposta

Animated.Value is the fundamental object for creating animatable values in React Native. It encapsulates a numeric value that can be smoothly changed over time. This value can then be linked to style properties like opacity, transform or width to create visual animations.

2

Which animation method allows creating a smooth transition with configurable duration and easing?

Risposta

Animated.timing is the most common method for creating time-based animations. It allows defining a duration, an easing function (acceleration/deceleration), and optionally a delay. This method provides precise control over the animation progression from start to finish.

3

Which method allows running multiple animations simultaneously with the Animated API?

Risposta

Animated.parallel runs an array of animations in parallel, starting them all simultaneously. This method is ideal for synchronizing multiple animated properties, like moving and fading in an element at the same time. By default, it stops if any animation fails, a behavior configurable via stopTogether.

4

Which method allows chaining animations one after another in sequential order?

5

Which animation method creates a realistic bouncy physics effect without a fixed duration?

+19 domande da colloquio

Padroneggia React Native per il tuo prossimo colloquio

Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.

Inizia gratis