React Native Questions et reponses d'entretien
Test your skills through the online practice test: React Native Quiz Online Practice Test
Question 26. What is the purpose of the 'Animated' API in React Native?
The 'Animated' API in React Native is used for creating smooth animations. It provides a way to animate the style properties of components, such as opacity and position.
Example:
import { Animated } from 'react-native';
const fadeAnim = new Animated.Value(0);
Animated.timing(fadeAnim, {
toValue: 1,
duration: 1000,
}).start();
Est-ce utile ?
Ajouter un commentaire
Voir les commentaires
Les plus utiles selon les utilisateurs :