B. Incorrect initial value for scale; should be 0.
C. Missing .start() call to begin the animation.
D. Wrong property name; should use 'scaleX' instead of 'scale'.
Solution
Step 1: Check animation method usage
Animated.timing must be followed by .start() to run the animation.
Step 2: Verify other properties
Initial scale 1 is valid, 'scale' is correct transform property, duration is a number as required.
Final Answer:
Missing .start() call to begin the animation. -> Option C
Quick Check:
Animations need .start() to run [OK]
Hint: Always call .start() after Animated.timing(...) [OK]
Common Mistakes:
Forgetting to call .start()
Changing initial value unnecessarily
Using wrong transform property names
5. You want to create a smooth sliding menu that appears from the left side using React Native animations. Which approach best ensures a fluid experience?
hard
A. Use Animated.Value for horizontal position and animate it with timing and easing.
B. Change the menu's visibility instantly without animation for faster response.
C. Use setTimeout to move the menu step-by-step manually every 100ms.
D. Replace the menu component with a static image to simulate sliding.
Solution
Step 1: Choose animation method for smooth movement
Animated.Value with timing and easing creates smooth, natural sliding.
Step 2: Evaluate other options for fluidity
Instant visibility change or manual step moves cause choppy or abrupt effects; static image lacks real animation.
Final Answer:
Use Animated.Value for horizontal position and animate it with timing and easing. -> Option A