Scale Metodu-React Native Hooks ile Animasyon-3
1 min readMar 5, 2020
Scale metodu: Nesneyi büyültüp küçültmeye yarayan metoddur.

Örnek :
const AnimasyonDeneme = () => {
const animation = new Animated.Value(1);
const startAnimation = () => {
Animated.timing(animation,
{
toValue: 2,
duration: 300
}).start(); }; const animatedStyle={
transform:[{
scale:animation,
//scaleX:animation,
// scaleY:animation,
}]
};
return (
<View style={styles.container}>
<TouchableWithoutFeedback
onPress={() => startAnimation()}>
<Animated.View
style={[styles.myBox, animatedStyle]}>
<Text>Mâlâyaniyle iştigal, maksadı geri bırakır!</Text>
</Animated.View>
</TouchableWithoutFeedback>
</View>
)